public class ExpandedNameTable extends Object
Modifier and Type | Field and Description |
---|---|
static int |
ATTRIBUTE |
static int |
CDATA_SECTION |
static int |
COMMENT |
static int |
DOCUMENT |
static int |
DOCUMENT_FRAGMENT |
static int |
DOCUMENT_TYPE |
static int |
ELEMENT |
static int |
ENTITY |
static int |
ENTITY_REFERENCE |
static int |
NAMESPACE |
static int |
NOTATION |
static int |
PROCESSING_INSTRUCTION |
static int |
TEXT |
Constructor and Description |
---|
ExpandedNameTable()
Create an expanded name table.
|
Modifier and Type | Method and Description |
---|---|
int |
getExpandedTypeID(int type)
Given a type, return an expanded name ID.Any additional nodes that are
created that have this expanded name will use this ID.
|
int |
getExpandedTypeID(String namespace,
String localName,
int type)
Given an expanded name represented by namespace, local name and node type,
return an ID.
|
int |
getExpandedTypeID(String namespace,
String localName,
int type,
boolean searchOnly)
Given an expanded name represented by namespace, local name and node type,
return an ID.
|
ExtendedType[] |
getExtendedTypes()
Return the array of extended types
|
String |
getLocalName(int ExpandedNameID)
Given an expanded-name ID, return the local name part.
|
int |
getLocalNameID(int ExpandedNameID)
Given an expanded-name ID, return the local name ID.
|
String |
getNamespace(int ExpandedNameID)
Given an expanded-name ID, return the namespace URI part.
|
int |
getNamespaceID(int ExpandedNameID)
Given an expanded-name ID, return the namespace URI ID.
|
int |
getSize()
Return the size of the ExpandedNameTable
|
short |
getType(int ExpandedNameID)
Given an expanded-name ID, return the local name ID.
|
public static final int ELEMENT
public static final int ATTRIBUTE
public static final int TEXT
public static final int CDATA_SECTION
public static final int ENTITY_REFERENCE
public static final int ENTITY
public static final int PROCESSING_INSTRUCTION
public static final int COMMENT
public static final int DOCUMENT
public static final int DOCUMENT_TYPE
public static final int DOCUMENT_FRAGMENT
public static final int NOTATION
public static final int NAMESPACE
public int getExpandedTypeID(String namespace, String localName, int type)
namespace
- The namespacelocalName
- The local nametype
- The node typepublic int getExpandedTypeID(String namespace, String localName, int type, boolean searchOnly)
If searchOnly is true, we will return -1 if the name is not found in the table, otherwise the name is added to the table and the expanded name id of the new entry is returned.
namespace
- The namespacelocalName
- The local nametype
- The node typesearchOnly
- If it is true, we will only search for the expanded name.
-1 is return is the name is not found.public int getExpandedTypeID(int type)
public String getLocalName(int ExpandedNameID)
ExpandedNameID
- an ID that represents an expanded-name.public final int getLocalNameID(int ExpandedNameID)
ExpandedNameID
- an ID that represents an expanded-name.public String getNamespace(int ExpandedNameID)
ExpandedNameID
- an ID that represents an expanded-name.public final int getNamespaceID(int ExpandedNameID)
ExpandedNameID
- an ID that represents an expanded-name.public final short getType(int ExpandedNameID)
ExpandedNameID
- an ID that represents an expanded-name.public int getSize()
public ExtendedType[] getExtendedTypes()
Copyright © 2018 JBoss by Red Hat. All rights reserved.