com.ibm.broker.plugin
Class MbXMLNSC
- java.lang.Object
-
- com.ibm.broker.plugin.MbXMLNSC
-
public class MbXMLNSC extends java.lang.ObjectThis 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 intATTRIBUTEThis is the specific type value for an XML attribute.static intBASE64BINARYThis is the specific type value for a base64binary field.static intBITSTREAMThis 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 intCDATA_FIELDstatic intCDATA_VALUEstatic intCOMMENTThis is the specific type value for an XML comment.static intDOCUMENT_TYPEThis is the specific type value for an XML document type declaration.static intDOUBLE_ATTRIBUTEThis is similar to attribute, but will generate double quotes round the attribute valuestatic intDOUBLE_ENTITYstatic intDOUBLE_NAMESPACE_DECLARATIONThis is the same as namespace_declarationstatic intENTITYstatic intENTITY_REFERENCEstatic intFIELDThis is the specific type value for an optimized XML element containing a text value only.static intFOLDERThis is the specific type value for an XML element that contains more than just a text node (element content).static intHYBRID_FIELDstatic intHYBRID_VALUEstatic intNAMESPACE_DECLARATIONThis is the specific type value for an XML namespace declaration.static intOPAQUEThis 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.StringPARSER_NAMEThe is the name of the parser as used bycreateElementAsLastChild()static intPCDATA_FIELDstatic intPCDATA_VALUEstatic intPROCESSING_INSTRUCTIONThis is the specific type value for an XML processing instruction.static java.lang.StringROOT_ELEMENT_NAMEThis is the name of the element at the root of the sub-tree owned by this parser.static intSINGLE_ATTRIBUTEThis is the same as attribute.static intSINGLE_ENTITYstatic intSINGLE_NAMESPACE_DECLARATIONThis is similar to namespace_declaration, but will generate single quotes round the namespace declaration valuestatic intVALUEThis is the specific type value for an XML text node (the element context).static intXML_DECLARATIONThis is the specific type value for an XML declaration element.
-
Constructor Summary
Constructors Constructor and Description MbXMLNSC()
-
-
-
Field Detail
-
PARSER_NAME
public static final java.lang.String PARSER_NAME
The is the name of the parser as used bycreateElementAsLastChild()- See Also:
- Constant Field Values
-
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
-
PCDATA_VALUE
public static final int PCDATA_VALUE
- See Also:
- Constant Field Values
-
CDATA_VALUE
public static final int CDATA_VALUE
- See Also:
- Constant Field Values
-
HYBRID_VALUE
public static final int HYBRID_VALUE
- See Also:
- Constant Field Values
-
ENTITY_REFERENCE
public static final int ENTITY_REFERENCE
- 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
-
PCDATA_FIELD
public static final int PCDATA_FIELD
- See Also:
- Constant Field Values
-
CDATA_FIELD
public static final int CDATA_FIELD
- See Also:
- Constant Field Values
-
HYBRID_FIELD
public static final int HYBRID_FIELD
- 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);will create the following XML sub-tree:
ref2.createElementAsLastChild(MbXMLNSC.ATTRIBUTE, "ijk", "xyz");<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);will create the following XML sub-tree:
ref3 = ref2.createElementAsLastChild(MbXMLNSC.NAMESPACE_DECLARATION, "ibmNS", "www.ibm.com");
ref3.setNamespace("xmlns")<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
-
ENTITY
public static final int ENTITY
- See Also:
- Constant Field Values
-
SINGLE_ENTITY
public static final int SINGLE_ENTITY
- See Also:
- Constant Field Values
-
DOUBLE_ENTITY
public static final int DOUBLE_ENTITY
- 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
-
-