Class XMLtoConfXMLParam

Object
com.tailf.util.XMLtoConfXMLParam

public class XMLtoConfXMLParam extends Object
Convenience utility class for transformation from a XML String to a ConfXMLParam[] structure. Handler class for SAX Parser. Contains callback methods that invokes by the (SAX) parser. The callback methods validates and creates ConfXMLParam from the parsed XML document. Validation occures with help of the loaded MaapiSchema.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    parse xml as preparation for a getValues() call
    static final int
    parse xml as preparation for a setValues() call
    static final int
    parse xml as preparation for a setValues() call for action's or rpc's parameters
    static final int
    parse xml as preparation for a setValues() call for action's or rpc's result
  • Constructor Summary

    Constructors
    Constructor
    Description
    Main constructor for initializing the xml parser.
  • Method Summary

    Modifier and Type
    Method
    Description
    Converts the xml to corresponding ConfXMLParam[] The resulting ConfXMLParam[] is prepared for a getValues() call.
    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 MODE_GET or MODE_SET respectively.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • MODE_GET

      public static final int MODE_GET
      parse xml as preparation for a getValues() call
      See Also:
    • MODE_SET

      public static final int MODE_SET
      parse xml as preparation for a setValues() call
      See Also:
    • MODE_SET_ACTION_PARAM

      public static final int MODE_SET_ACTION_PARAM
      parse 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_RESULT
      parse xml as preparation for a setValues() call for action's or rpc's result
      See Also:
  • Constructor Details

    • XMLtoConfXMLParam

      public XMLtoConfXMLParam(String xml, ConfPath path) throws ConfException
      Main constructor for initializing the xml parser.
      Parameters:
      xml - well formed XML string that represent a instance document rooted by the path
      path - Start node (or root path) of the XML document
      Throws:
      ConfException
  • Method Details