Package com.tailf.util
Class XMLtoConfXMLParam
Object
com.tailf.util.XMLtoConfXMLParam
Convenience utility class for transformation from
a XML String to a ConfXMLParam[] structure.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intparse xml as preparation for a getValues() callstatic final intparse xml as preparation for a setValues() callstatic final intparse xml as preparation for a setValues() call for action's or rpc's parametersstatic final intparse xml as preparation for a setValues() call for action's or rpc's result -
Constructor Summary
ConstructorsConstructorDescriptionXMLtoConfXMLParam(String xml, ConfPath path) Main constructor for initializing the xml parser. -
Method Summary
Modifier and TypeMethodDescriptionConverts the xml to corresponding ConfXMLParam[] The resulting ConfXMLParam[] is prepared for a getValues() call.toXMLParam(int mode)
-
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_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
-
XMLtoConfXMLParam
Main constructor for initializing the xml parser.- Parameters:
xml- well formed XML string that represent a instance document rooted by the pathpath- Start node (or root path) of the XML document- Throws:
ConfException
-
-
Method Details
-
toXMLParam
Converts the xml to corresponding ConfXMLParam[] The resulting ConfXMLParam[] is prepared for a getValues() call.- Returns:
- The resulting ConfXMLParam[]
- Throws:
ConfException
-
toXMLParam
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 usingMODE_GETorMODE_SETrespectively.- Parameters:
mode- one ofMODE_GET,MODE_SET,MODE_SET_ACTION_PARAMorMODE_SET_ACTION_RESULT- Returns:
- the resulting ConfXMLParam[]
- Throws:
ConfException
-