Package com.bea.xml.stream
Class NamespaceBase
- java.lang.Object
-
- com.bea.xml.stream.AttributeBase
-
- com.bea.xml.stream.NamespaceBase
-
- All Implemented Interfaces:
javax.xml.stream.events.Attribute,javax.xml.stream.events.Namespace,javax.xml.stream.events.XMLEvent,javax.xml.stream.Location,javax.xml.stream.XMLStreamConstants
public class NamespaceBase extends AttributeBase implements javax.xml.stream.events.Namespace
The default implementation of the namespace class
-
-
Constructor Summary
Constructors Constructor Description NamespaceBase(java.lang.String namespaceURI)NamespaceBase(java.lang.String prefix, java.lang.String namespaceURI)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetEventType()Returns an integer code for this event.java.lang.StringgetNamespaceURI()Gets the uri bound to the prefix of this namespacejava.lang.StringgetPrefix()Gets the prefix, returns "" if this is a default namespace declaration.booleanisAttribute()A utility function to check if this event is an Attribute.booleanisDefaultNamespaceDeclaration()returns true if this attribute declares the default namespacebooleanisNamespace()A utility function to check if this event is a Namespace.java.lang.StringtoString()-
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
-
-
-
-
Method Detail
-
getEventType
public int getEventType()
Description copied from interface:javax.xml.stream.events.XMLEventReturns an integer code for this event.- Specified by:
getEventTypein interfacejavax.xml.stream.events.XMLEvent- Overrides:
getEventTypein classAttributeBase- See Also:
XMLStreamConstants.START_ELEMENT,XMLStreamConstants.END_ELEMENT,XMLStreamConstants.CHARACTERS,XMLStreamConstants.ATTRIBUTE,XMLStreamConstants.NAMESPACE,XMLStreamConstants.PROCESSING_INSTRUCTION,XMLStreamConstants.COMMENT,XMLStreamConstants.START_DOCUMENT,XMLStreamConstants.END_DOCUMENT,XMLStreamConstants.DTD
-
isAttribute
public boolean isAttribute()
Description copied from interface:javax.xml.stream.events.XMLEventA utility function to check if this event is an Attribute.- Specified by:
isAttributein interfacejavax.xml.stream.events.XMLEvent- Overrides:
isAttributein classAttributeBase- See Also:
Attribute
-
isNamespace
public boolean isNamespace()
Description copied from interface:javax.xml.stream.events.XMLEventA utility function to check if this event is a Namespace.- Specified by:
isNamespacein interfacejavax.xml.stream.events.XMLEvent- Overrides:
isNamespacein classAttributeBase- See Also:
Namespace
-
getPrefix
public java.lang.String getPrefix()
Description copied from interface:javax.xml.stream.events.NamespaceGets the prefix, returns "" if this is a default namespace declaration.- Specified by:
getPrefixin interfacejavax.xml.stream.events.Namespace
-
getNamespaceURI
public java.lang.String getNamespaceURI()
Description copied from interface:javax.xml.stream.events.NamespaceGets the uri bound to the prefix of this namespace- Specified by:
getNamespaceURIin interfacejavax.xml.stream.events.Namespace- Overrides:
getNamespaceURIin classAttributeBase
-
isDefaultNamespaceDeclaration
public boolean isDefaultNamespaceDeclaration()
Description copied from interface:javax.xml.stream.events.Namespacereturns true if this attribute declares the default namespace- Specified by:
isDefaultNamespaceDeclarationin interfacejavax.xml.stream.events.Namespace
-
toString
public java.lang.String toString()
- Overrides:
toStringin classAttributeBase
-
-