Namespace. Only returned via accessors in
actual "first class" event objects (start element, end element); never
directly via event reader.
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final String | |
| pack-priv final String |
| Access | Constructor and Description |
|---|---|
| protected | |
| protected | NamespaceEventImpl(Location loc, String nsPrefix, String nsURI)
Constructor for non-default namespace declaration. |
| Modifier and Type | Method and Description |
|---|---|
| public static NamespaceEventImpl | |
| public static NamespaceEventImpl | |
| public int | getEventType()
Overrides org. Implements javax. |
| public String | getNamespaceURI()
Implements javax. |
| public String | getPrefix()
Implements javax. |
| public boolean | isDefaultNamespaceDeclaration()
Implements javax. |
| public boolean | isNamespace()
Overrides org. Implements javax. |
| mPrefix | back to summary |
|---|---|
| pack-priv final String mPrefix | |
| mURI | back to summary |
|---|---|
| pack-priv final String mURI | |
| NamespaceEventImpl | back to summary |
|---|---|
| protected NamespaceEventImpl(Location loc, String nsURI) Constructor for default namespace declaration. Such declarations don't have namespace prefix/URI, although semantically it would belong to XML namespace URI... | |
| NamespaceEventImpl | back to summary |
|---|---|
| protected NamespaceEventImpl(Location loc, String nsPrefix, String nsURI) Constructor for non-default namespace declaration. Such declarations belong to "XML namespace" namespace. | |
| constructDefaultNamespace | back to summary |
|---|---|
| public static NamespaceEventImpl constructDefaultNamespace(Location loc, String nsURI) | |
| constructNamespace | back to summary |
|---|---|
| public static NamespaceEventImpl constructNamespace(Location loc, String nsPrefix, String nsURI) | |
| getEventType | back to summary |
|---|---|
| public int getEventType() Overrides org. Implements javax. Doc from javax. Returns an integer code for this event.
| |
| getNamespaceURI | back to summary |
|---|---|
| public String getNamespaceURI() Implements javax. Doc from javax. Gets the uri bound to the prefix of this namespace | |
| getPrefix | back to summary |
|---|---|
| public String getPrefix() Implements javax. Doc from javax. Gets the prefix, returns "" if this is a default namespace declaration. | |
| isDefaultNamespaceDeclaration | back to summary |
|---|---|
| public boolean isDefaultNamespaceDeclaration() Implements javax. Doc from javax. returns true if this attribute declares the default namespace
| |
| isNamespace | back to summary |
|---|---|
| public boolean isNamespace() Overrides org. Implements javax. Doc from javax. A utility function to check if this event is a Namespace.
| |