public class XMLtoConfXMLParam extends Object
Modifier and Type | Field and Description |
---|---|
static int |
MODE_GET
parse xml as preparation for a getValues() call
|
static int |
MODE_SET
parse xml as preparation for a setValues() call
|
Constructor and Description |
---|
XMLtoConfXMLParam(String xml,
ConfPath path)
Main constructor for initializing the xml parser.
|
Modifier and Type | Method and Description |
---|---|
ConfXMLParam[] |
toXMLParam()
Converts the xml to corresponding ConfXMLParam[]
The resulting ConfXMLParam[] is prepared for a getValues() call.
|
ConfXMLParam[] |
toXMLParam(int mode)
Converts the xml to corresponding ConfXMLParam[]
The mode parameter controls whether this ConfXMLParam[] should be
prepared for a getValues() call or for a setValues() call using
using
XMLtoConfXMLParam.MODE_GET or XMLtoConfXMLParam.MODE_SET respectively. |
public static final int MODE_GET
public static final int MODE_SET
public XMLtoConfXMLParam(String xml, ConfPath path) throws ConfException
xml
- well formed XML string that represent
a instance document rooted by the pathpath
- Start node (or root path) of the XML documentConfException
public ConfXMLParam[] toXMLParam() throws ConfException
ConfException
public ConfXMLParam[] toXMLParam(int mode) throws ConfException
XMLtoConfXMLParam.MODE_GET
or XMLtoConfXMLParam.MODE_SET
respectively.mode
- one of XMLtoConfXMLParam.MODE_GET
or XMLtoConfXMLParam.MODE_SET
ConfException