com.ibm.broker.plugin

Class MbXMLNSC

  • java.lang.Object
    • com.ibm.broker.plugin.MbXMLNSC


  • public class MbXMLNSC
    extends java.lang.Object
    This class contains constants for the compact XML parser. The integer constants are the specific type values used by the logical tree to represent XML specific constructs in the bitstream.
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static int ATTRIBUTE
      This is the specific type value for an XML attribute.
      static int BASE64BINARY
      This is the specific type value for a base64binary field.
      static int BITSTREAM
      This is the specific type value for an XML element that contains the bytes that represent a portion of a bit-stream ready for writing.
      static int CDATA_FIELD 
      static int CDATA_VALUE 
      static int COMMENT
      This is the specific type value for an XML comment.
      static int DOCUMENT_TYPE
      This is the specific type value for an XML document type declaration.
      static int DOUBLE_ATTRIBUTE
      This is similar to attribute, but will generate double quotes round the attribute value
      static int DOUBLE_ENTITY 
      static int DOUBLE_NAMESPACE_DECLARATION
      This is the same as namespace_declaration
      static int ENTITY 
      static int ENTITY_REFERENCE 
      static int FIELD
      This is the specific type value for an optimized XML element containing a text value only.
      static int FOLDER
      This is the specific type value for an XML element that contains more than just a text node (element content).
      static int HYBRID_FIELD 
      static int HYBRID_VALUE 
      static int NAMESPACE_DECLARATION
      This is the specific type value for an XML namespace declaration.
      static int OPAQUE
      This is the specific type value for an XML element that contains the text for an unparsed folder of the XML message as specified on the Opaque elements section of the Parser options.
      static java.lang.String PARSER_NAME
      The is the name of the parser as used by createElementAsLastChild()
      static int PCDATA_FIELD 
      static int PCDATA_VALUE 
      static int PROCESSING_INSTRUCTION
      This is the specific type value for an XML processing instruction.
      static java.lang.String ROOT_ELEMENT_NAME
      This is the name of the element at the root of the sub-tree owned by this parser.
      static int SINGLE_ATTRIBUTE
      This is the same as attribute.
      static int SINGLE_ENTITY 
      static int SINGLE_NAMESPACE_DECLARATION
      This is similar to namespace_declaration, but will generate single quotes round the namespace declaration value
      static int VALUE
      This is the specific type value for an XML text node (the element context).
      static int XML_DECLARATION
      This is the specific type value for an XML declaration element.
    • Constructor Summary

      Constructors 
      Constructor and Description
      MbXMLNSC() 
    • Method Summary

      • Methods inherited from class java.lang.Object

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

      • ROOT_ELEMENT_NAME

        public static final java.lang.String ROOT_ELEMENT_NAME
        This is the name of the element at the root of the sub-tree owned by this parser.
        See Also:
        Constant Field Values
      • FOLDER

        public static final int FOLDER
        This is the specific type value for an XML element that contains more than just a text node (element content). It is generic type 'NAME'
        See Also:
        Constant Field Values
      • DOCUMENT_TYPE

        public static final int DOCUMENT_TYPE
        This is the specific type value for an XML document type declaration.
        See Also:
        Constant Field Values
      • XML_DECLARATION

        public static final int XML_DECLARATION
        This is the specific type value for an XML declaration element.
        See Also:
        Constant Field Values
      • VALUE

        public static final int VALUE
        This is the specific type value for an XML text node (the element context). It is generic type 'VALUE' so the name is ignored.
        See Also:
        Constant Field Values
      • FIELD

        public static final int FIELD
        This is the specific type value for an optimized XML element containing a text value only. For example,

        ref.createElementAsLastChild(MbXMLNSC.FIELD, "abc", "xyz");

        generates the following XML sub-tree:

        <abc>xyz</abc>
        See Also:
        Constant Field Values
      • ATTRIBUTE

        public static final int ATTRIBUTE
        This is the specific type value for an XML attribute. It is generic type 'NAME/VALUE', where the name is the attribute name and (String) value is the attribute value. For example,

        ref2 = ref.createElementAsLastChild(MbXMLNSC.FOLDER, "abc", null);
        ref2.createElementAsLastChild(MbXMLNSC.ATTRIBUTE, "ijk", "xyz");

        will create the following XML sub-tree:

        <abc ijk='xyz'/>
        See Also:
        Constant Field Values
      • BASE64BINARY

        public static final int BASE64BINARY
        This is the specific type value for a base64binary field. It is a name-value type, where the name is the element name and the value is base64Binary. This can be used to set an element as a candidate for outbound MTOM processing. For example,

        MbElement e1 = soapPayload.createElementAsLastChild(MbXMLNSC.BASE64BINARY,"e1",outputStream.toByteArray());

        See Also:
        Constant Field Values
      • SINGLE_ATTRIBUTE

        public static final int SINGLE_ATTRIBUTE
        This is the same as attribute.
        See Also:
        Constant Field Values
      • DOUBLE_ATTRIBUTE

        public static final int DOUBLE_ATTRIBUTE
        This is similar to attribute, but will generate double quotes round the attribute value
        See Also:
        Constant Field Values
      • NAMESPACE_DECLARATION

        public static final int NAMESPACE_DECLARATION
        This is the specific type value for an XML namespace declaration. It is generic type 'NAME/VALUE', where the name is the namespace name and (String) value is the namespace value. For example,

        ref2 = ref.createElementAsLastChild(MbXMLNSC.FOLDER, "abc", null);
        ref3 = ref2.createElementAsLastChild(MbXMLNSC.NAMESPACE_DECLARATION, "ibmNS", "www.ibm.com");
        ref3.setNamespace("xmlns")

        will create the following XML sub-tree:

        <abc xmlns:ibmNS='www.ibm.com'/>
        See Also:
        Constant Field Values
      • DOUBLE_NAMESPACE_DECLARATION

        public static final int DOUBLE_NAMESPACE_DECLARATION
        This is the same as namespace_declaration
        See Also:
        Constant Field Values
      • SINGLE_NAMESPACE_DECLARATION

        public static final int SINGLE_NAMESPACE_DECLARATION
        This is similar to namespace_declaration, but will generate single quotes round the namespace declaration value
        See Also:
        Constant Field Values
      • BITSTREAM

        public static final int BITSTREAM
        This is the specific type value for an XML element that contains the bytes that represent a portion of a bit-stream ready for writing.
        See Also:
        Constant Field Values
      • OPAQUE

        public static final int OPAQUE
        This is the specific type value for an XML element that contains the text for an unparsed folder of the XML message as specified on the Opaque elements section of the Parser options.
        See Also:
        Constant Field Values
      • COMMENT

        public static final int COMMENT
        This is the specific type value for an XML comment. It is of generic type 'VALUE' so the name is ignored. For example,

        ref.createElementAsLastChild(MbXMLNSC.COMMENT, null, "Coment text");

        produces the XML sub-tree:

        <!-- comment text -->
        See Also:
        Constant Field Values
      • PROCESSING_INSTRUCTION

        public static final int PROCESSING_INSTRUCTION
        This is the specific type value for an XML processing instruction. It is of generic type 'NAME/VALUE'. For example,

        ref.createElementAsLastChild(MbXMLNSC.PROCESSING_INSTRUCTION, "target", "data");

        will create the following XML sub-tree:

        <? target data ?>
        See Also:
        Constant Field Values
    • Constructor Detail

      • MbXMLNSC

        public MbXMLNSC()
IBM Integration BusTM
JavaTM Plugin Node API