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 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 TypeMethodDescriptionintReturns 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.booleanA utility function to check if this event is an Attribute.booleanreturns true if this attribute declares the default namespacebooleanA utility function to check if this event is a Namespace.toString()Methods inherited from class 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, writeEncodedCharMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Attribute
getDTDType, getName, getValue, isSpecifiedMethods inherited from interface 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.XMLEventReturns an integer code for this event.- Specified by:
getEventTypein interfaceXMLEvent- Overrides:
getEventTypein classAttributeBase- See Also:
-
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 interfaceXMLEvent- Overrides:
isAttributein classAttributeBase- See Also:
-
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 interfaceXMLEvent- Overrides:
isNamespacein classAttributeBase- See Also:
-
getPrefix
Description copied from interface:javax.xml.stream.events.NamespaceGets the prefix, returns "" if this is a default namespace declaration. -
getNamespaceURI
Description copied from interface:javax.xml.stream.events.NamespaceGets the uri bound to the prefix of this namespace- Specified by:
getNamespaceURIin interfaceNamespace- 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 interfaceNamespace
-
toString
- Overrides:
toStringin classAttributeBase
-