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 that 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)
|
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 documentConfExceptionpublic ConfXMLParam[] toXMLParam() throws ConfException
ConfExceptionpublic ConfXMLParam[] toXMLParam(int mode) throws ConfException
MODE_GET or MODE_SET respectively.mode - one of MODE_GET or MODE_SETConfException