java.lang.Object com.ibm.broker.plugin.MbXML
public class MbXML
extends Object
This class contains constants for the generic XML parser. The integer constants are the specific type values used by the logical tree to represent XML specific constructs in the bitstream.
Field | Description |
---|---|
ASIS_ELEMENT_CONTENT | |
ATTRIBUTE | This is the specific type value for an XML attribute. |
ATTRIBUTE_DEF | |
ATTRIBUTE_DEF_DEFAULT_TYPE | |
ATTRIBUTE_DEF_TYPE | |
ATTRIBUTE_DEF_VALUE | |
ATTRIBUTE_LIST | |
BITSTREAM | |
CDATA_SECTION | This is the specific type value for an XML CDATA section |
COMMENT | This is the specific type value for an XML comment. |
DOC_TYPE_DECL | This is the specific type value for an XML document type declaration. |
DOC_TYPE_WHITESPACE | |
DOCTYPE_COMMENT | |
DOCTYPE_PI | |
ELEMENT | This is the specific type value for an XML element. |
ELEMENT_CONTENT | This is the specific type value for an XML text node (the element context). |
ELEMENT_DEF | |
ENCODING | |
ENTITY_DECL | |
ENTITY_DECL_VALUE | |
ENTITY_REFERENCE_END | |
ENTITY_REFERENCE_START | |
ENTITY_VALUE | |
EXT_SUBSET | |
EXTERNAL_ENTITY_DECL | |
EXTERNAL_PARAMETER_ENTITY_DECL | |
INT_SUBSET | |
NOTATION_DECL | |
NOTATION_REFERENCE | |
PARAMETER_ENTITY_DECL | |
PARSER_NAME | The is the name of the parser as used by createElementAsLastChild |
PARSER_ROOT | This is the specific type value for the XML root node. |
PROCESSING_INSTRUCTION | This is the specific type value for an XML processing instruction. |
PUBLIC_ID | |
REQUESTED_DOMAIN_TYPE | |
ROOT_ELEMENT_NAME | This is the name of the element at the root of the sub-tree owned by this parser. |
STANDALONE | |
SYSTEM_ID | |
UNPARSED_ENTITY_DECL | |
VERSION | |
WHITESPACE | |
XML_DECL | This is the specific type value for an XML declaration element. |
Constructor | Description |
---|---|
MbXML() |
public static final int ASIS_ELEMENT_CONTENT
public static final int ATTRIBUTEThis 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(MbXML.ELEMENT, "abc", null);
will create the following XML sub-tree:
ref2.createElementAsLastChild(MbXML.ATTRIBUTE, "ijk", "xyz");<abc ijk="xyz"/>
public static final int ATTRIBUTE_DEF
public static final int ATTRIBUTE_DEF_DEFAULT_TYPE
public static final int ATTRIBUTE_DEF_TYPE
public static final int ATTRIBUTE_DEF_VALUE
public static final int ATTRIBUTE_LIST
public static final int BITSTREAM
public static final int CDATA_SECTIONThis is the specific type value for an XML CDATA section
public static final int COMMENTThis is the specific type value for an XML comment. It is of generic type 'VALUE' so the name is ignored. For example,
ref.createElementAsLastChild(MbXML.COMMENT, null, "Coment text");
produces the XML sub-tree:<!-- comment text -->
public static final int DOC_TYPE_DECLThis is the specific type value for an XML document type declaration.
public static final int DOC_TYPE_WHITESPACE
public static final int DOCTYPE_COMMENT
public static final int DOCTYPE_PI
public static final int ELEMENTThis is the specific type value for an XML element. It is generic type 'NAME', but setting the value for an element of this type will cause a child MbElement to be created of type MbXML.ELEMENT_CONTENT. For example,
ref.createElementAsLastChild(MbXML.ELEMENT, "abc", "xyz")
will create the following XML sub-tree:<abc>xyz</abc>
public static final int ELEMENT_CONTENTThis is the specific type value for an XML text node (the element context). It is generic type 'VALUE' so the name is ignored.
public static final int ELEMENT_DEF
public static final int ENCODING
public static final int ENTITY_DECL
public static final int ENTITY_DECL_VALUE
public static final int ENTITY_REFERENCE_END
public static final int ENTITY_REFERENCE_START
public static final int ENTITY_VALUE
public static final int EXT_SUBSET
public static final int EXTERNAL_ENTITY_DECL
public static final int EXTERNAL_PARAMETER_ENTITY_DECL
public static final int INT_SUBSET
public static final int NOTATION_DECL
public static final int NOTATION_REFERENCE
public static final int PARAMETER_ENTITY_DECL
public static final java.lang.String PARSER_NAMEThe is the name of the parser as used by createElementAsLastChild
public static final int PARSER_ROOTThis is the specific type value for the XML root node. It is represented by the top level MbElement named 'XML' or 'XMLNS'.
public static final int PROCESSING_INSTRUCTIONThis is the specific type value for an XML processing instruction. It is of generic type 'NAME/VALUE'. For example,
ref.createElementAsLastChild(MbXML.PROCESSING_INSTRUCTION, "target", "data");
will create the following XML sub-tree:<? target data ?>
public static final int PUBLIC_ID
public static final int REQUESTED_DOMAIN_TYPE
public static final java.lang.String ROOT_ELEMENT_NAMEThis is the name of the element at the root of the sub-tree owned by this parser.
public static final int STANDALONE
public static final int SYSTEM_ID
public static final int UNPARSED_ENTITY_DECL
public static final int VERSION
public static final int WHITESPACE
public static final int XML_DECLThis is the specific type value for an XML declaration element.
public MbXML()