Package com.bea.xml.stream
Class NamespaceBase
java.lang.Object
com.bea.xml.stream.AttributeBase
com.bea.xml.stream.NamespaceBase
- All Implemented Interfaces:
Attribute
,Namespace
,XMLEvent
,Location
,XMLStreamConstants
The default implementation of the namespace class
-
Field Summary
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
ConstructorsConstructorDescriptionNamespaceBase
(String namespaceURI) NamespaceBase
(String prefix, String namespaceURI) -
Method Summary
Modifier and TypeMethodDescriptionint
Returns an integer code for this event.Gets the uri bound to the prefix of this namespaceGets the prefix, returns "" if this is a default namespace declaration.boolean
A utility function to check if this event is an Attribute.boolean
returns true if this attribute declares the default namespaceboolean
A utility function to check if this event is a Namespace.toString()
Methods inherited from class com.bea.xml.stream.AttributeBase
asCharacters, asEndElement, asStartElement, getCharacterOffset, getColumnNumber, getDTDType, getLineNumber, getLocalName, getLocation, getLocationURI, getName, getPublicId, getSchemaType, getSourceName, getSystemId, getValue, hasName, isCharacters, isDefault, isEndDocument, isEndElement, isEndEntity, isEntityReference, isNamespaceDeclaration, isProcessingInstruction, isSpecified, isStartDocument, isStartElement, isStartEntity, recycle, setCharacterOffset, setColumnNumber, setLineNumber, setLocationURI, setNamespaceURI, writeAsEncodedUnicode, writeEncodedChar
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, 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, isCharacters, isEndDocument, isEndElement, isEntityReference, isProcessingInstruction, isStartDocument, isStartElement, writeAsEncodedUnicode
-
Constructor Details
-
NamespaceBase
-
NamespaceBase
-
-
Method Details
-
getEventType
public int getEventType()Description copied from interface:javax.xml.stream.events.XMLEvent
Returns an integer code for this event.- Specified by:
getEventType
in interfaceXMLEvent
- Overrides:
getEventType
in classAttributeBase
- See Also:
-
isAttribute
public boolean isAttribute()Description copied from interface:javax.xml.stream.events.XMLEvent
A utility function to check if this event is an Attribute.- Specified by:
isAttribute
in interfaceXMLEvent
- Overrides:
isAttribute
in classAttributeBase
- See Also:
-
isNamespace
public boolean isNamespace()Description copied from interface:javax.xml.stream.events.XMLEvent
A utility function to check if this event is a Namespace.- Specified by:
isNamespace
in interfaceXMLEvent
- Overrides:
isNamespace
in classAttributeBase
- See Also:
-
getPrefix
Description copied from interface:javax.xml.stream.events.Namespace
Gets the prefix, returns "" if this is a default namespace declaration. -
getNamespaceURI
Description copied from interface:javax.xml.stream.events.Namespace
Gets the uri bound to the prefix of this namespace- Specified by:
getNamespaceURI
in interfaceNamespace
- Overrides:
getNamespaceURI
in classAttributeBase
-
isDefaultNamespaceDeclaration
public boolean isDefaultNamespaceDeclaration()Description copied from interface:javax.xml.stream.events.Namespace
returns true if this attribute declares the default namespace- Specified by:
isDefaultNamespaceDeclaration
in interfaceNamespace
-
toString
- Overrides:
toString
in classAttributeBase
-