org.codehaus.stax2.ri.evt
Class NamespaceEventImpl
java.lang.Object
org.codehaus.stax2.ri.evt.BaseEventImpl
org.codehaus.stax2.ri.evt.AttributeEventImpl
org.codehaus.stax2.ri.evt.NamespaceEventImpl
- All Implemented Interfaces:
- javax.xml.stream.events.Attribute, javax.xml.stream.events.Namespace, javax.xml.stream.events.XMLEvent, javax.xml.stream.XMLStreamConstants, XMLEvent2
public class NamespaceEventImpl
- extends AttributeEventImpl
- implements javax.xml.stream.events.Namespace
Implementation of Namespace. Only returned via accessors in
actual "first class" event objects (start element, end element); never
directly via event reader.
| Fields inherited from interface javax.xml.stream.XMLStreamConstants |
ATTRIBUTE, CDATA, CHARACTERS, COMMENT, DTD, END_DOCUMENT, END_ELEMENT, ENTITY_DECLARATION, ENTITY_REFERENCE, NAMESPACE, NOTATION_DECLARATION, PROCESSING_INSTRUCTION, SPACE, START_DOCUMENT, START_ELEMENT |
|
Constructor Summary |
protected |
NamespaceEventImpl(javax.xml.stream.Location loc,
java.lang.String nsURI)
Constructor for default namespace declaration. |
protected |
NamespaceEventImpl(javax.xml.stream.Location loc,
java.lang.String nsPrefix,
java.lang.String nsURI)
Constructor for non-default namespace declaration. |
| Methods inherited from class org.codehaus.stax2.ri.evt.BaseEventImpl |
addHash, asCharacters, asEndElement, asStartElement, getLocation, getSchemaType, isCharacters, isEndDocument, isEndElement, isEntityReference, isProcessingInstruction, isStartDocument, isStartElement, iteratedEquals, stringsWithNullsEqual, throwFromIOE, toString |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface javax.xml.stream.events.Attribute |
getDTDType, getName, getValue, isSpecified |
| Methods inherited from interface javax.xml.stream.events.XMLEvent |
asCharacters, asEndElement, asStartElement, getLocation, getSchemaType, isAttribute, isCharacters, isEndDocument, isEndElement, isEntityReference, isProcessingInstruction, isStartDocument, isStartElement, writeAsEncodedUnicode |
NamespaceEventImpl
protected NamespaceEventImpl(javax.xml.stream.Location loc,
java.lang.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
protected NamespaceEventImpl(javax.xml.stream.Location loc,
java.lang.String nsPrefix,
java.lang.String nsURI)
- Constructor for non-default namespace declaration. Such declarations
belong to "XML namespace" namespace.
constructDefaultNamespace
public static NamespaceEventImpl constructDefaultNamespace(javax.xml.stream.Location loc,
java.lang.String nsURI)
constructNamespace
public static NamespaceEventImpl constructNamespace(javax.xml.stream.Location loc,
java.lang.String nsPrefix,
java.lang.String nsURI)
getNamespaceURI
public java.lang.String getNamespaceURI()
- Specified by:
getNamespaceURI in interface javax.xml.stream.events.Namespace
getPrefix
public java.lang.String getPrefix()
- Specified by:
getPrefix in interface javax.xml.stream.events.Namespace
isDefaultNamespaceDeclaration
public boolean isDefaultNamespaceDeclaration()
- Specified by:
isDefaultNamespaceDeclaration in interface javax.xml.stream.events.Namespace
getEventType
public int getEventType()
- Specified by:
getEventType in interface javax.xml.stream.events.XMLEvent- Overrides:
getEventType in class AttributeEventImpl
isNamespace
public boolean isNamespace()
- Specified by:
isNamespace in interface javax.xml.stream.events.XMLEvent- Overrides:
isNamespace in class BaseEventImpl
Copyright © 2005-2013 Oracle Corporation. All Rights Reserved.