Class NavuParser
NavuNode.getValues(String)
, NavuNode.setValues(String)
and
PreparedXMLStatement
will give necessary support for xml snippets.-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
parse xml as preparation for a getValues callstatic final int
parse xml as preparation for a setValues callstatic final int
parse xml as preparation for a setValues() call for action's or rpc's parametersstatic final int
parse xml as preparation for a setValues() call for action's or rpc's resultstatic final int
parse xml with "?" arguments as preparation for a setValues call -
Constructor Summary
ConstructorDescriptionNavuParser
(String xml, MaapiSchemas.CSNode node, ConfPath path, int mode) Constructor for the XML parser The xml snippet must have root tag that corresponds to the root CSNode The parser works in one of five modes:MODE_GET
-
Method Summary
Modifier and TypeMethodDescriptionHelper array for parser modeMODE_SET_PREPARE
needed to superpose "?" arguments.parse()
Parses the xml and produces ConfXMLParam[]
-
Field Details
-
MODE_GET
public static final int MODE_GETparse xml as preparation for a getValues call- See Also:
-
MODE_SET
public static final int MODE_SETparse xml as preparation for a setValues call- See Also:
-
MODE_SET_PREPARE
public static final int MODE_SET_PREPAREparse xml with "?" arguments as preparation for a setValues call- See Also:
-
MODE_SET_ACTION_PARAM
public static final int MODE_SET_ACTION_PARAMparse xml as preparation for a setValues() call for action's or rpc's parameters- See Also:
-
MODE_SET_ACTION_RESULT
public static final int MODE_SET_ACTION_RESULTparse xml as preparation for a setValues() call for action's or rpc's result- See Also:
-
-
Constructor Details
-
NavuParser
public NavuParser(String xml, MaapiSchemas.CSNode node, ConfPath path, int mode) throws NavuException Constructor for the XML parser The xml snippet must have root tag that corresponds to the root CSNode The parser works in one of five modes:MODE_GET
Parsing the xml as preparation for a
NavuNode.getValues(ConfXMLParam[])
request.MODE_SET
Parsing the xml as preparation for a
NavuNode.setValues(ConfXMLParam[])
request.MODE_SET_PREPARE
Parsing the xml as preparation for a
NavuNode.setValues(ConfXMLParam[])
request. In this mode the xml snippet is expected to contain "?" as leaf values to be superposed before using the output. This superposing is handled by thePreparedXMLStatement
class which should be used in this caseMODE_SET_ACTION_PARAM
Parsing the xml as preparation for a
NavuNode.setValues(ConfXMLParam[])
request. In this mode the xml is an action's or rpc's parametersMODE_SET_ACTION_RESULT
Parsing the xml as preparation for a
NavuNode.setValues(ConfXMLParam[])
request. In this mode the xml is an action's or rpc's result
- Parameters:
xml
- the xml snippetnode
- the root node start parsing frommode
- one ofMODE_GET
,MODE_SET
,MODE_SET_PREPARE
,MODE_SET_ACTION_PARAM
orMODE_SET_ACTION_RESULT
- Throws:
NavuException
-
-
Method Details
-
parse
Parses the xml and produces ConfXMLParam[]- Returns:
- ConfXMLParam[] array corresponding to the xml snippet.
- Throws:
NavuException
-
getParamIndexes
Helper array for parser modeMODE_SET_PREPARE
needed to superpose "?" arguments.
-