Class NamespaceBase
java.lang.Object
com.sun.xml.fastinfoset.stax.events.EventBase
com.sun.xml.fastinfoset.stax.events.AttributeBase
com.sun.xml.fastinfoset.stax.events.NamespaceBase
- All Implemented Interfaces:
Attribute, Namespace, XMLEvent, XMLStreamConstants
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final Stringprivate boolean(package private) static final String(package private) static final String(package private) static final String(package private) static final String(package private) static final String(package private) static final StringFields inherited from class EventBase
_eventType, _locationFields 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) a namespace attribute has a form: xmlns:NCName="URI reference"NamespaceBase(String prefix, String namespaceURI) Create a new Namespace -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanA utility function to check if this event is a Namespace.(package private) voidsetNamespaceURI(String uri) set Namespace URI reference (xmlns:prefix = "uri")(package private) voidMethods inherited from class AttributeBase
getDTDType, getLocalName, getName, getValue, isSpecified, setAttributeType, setName, setSpecified, setValue, toStringMethods inherited from class EventBase
asCharacters, asEndElement, asStartElement, getEventType, getLocation, getSchemaType, getSystemId, isAttribute, isCharacters, isEndDocument, isEndElement, isEntityReference, isProcessingInstruction, isStartDocument, isStartElement, setEventType, setLocation, writeAsEncodedUnicodeMethods 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, getEventType, getLocation, getSchemaType, isAttribute, isCharacters, isEndDocument, isEndElement, isEntityReference, isProcessingInstruction, isStartDocument, isStartElement, writeAsEncodedUnicode
-
Field Details
-
DEFAULT_NS_PREFIX
- See Also:
-
XML_NS_URI
- See Also:
-
XML_NS_PREFIX
- See Also:
-
XMLNS_ATTRIBUTE_NS_URI
- See Also:
-
XMLNS_ATTRIBUTE
- See Also:
-
W3C_XML_SCHEMA_NS_URI
- See Also:
-
W3C_XML_SCHEMA_INSTANCE_NS_URI
- See Also:
-
defaultDeclaration
private boolean defaultDeclaration
-
-
Constructor Details
-
NamespaceBase
a namespace attribute has a form: xmlns:NCName="URI reference" -
NamespaceBase
-
-
Method Details
-
setPrefix
-
getPrefix
-
setNamespaceURI
set Namespace URI reference (xmlns:prefix = "uri")- Parameters:
uri- the uri reference of a namespace is the value for an attribute
-
getNamespaceURI
- Specified by:
getNamespaceURIin interfaceNamespace
-
isNamespace
public boolean isNamespace()Description copied from class:EventBaseA utility function to check if this event is a Namespace.- Specified by:
isNamespacein interfaceXMLEvent- Overrides:
isNamespacein classEventBase- See Also:
-
isDefaultNamespaceDeclaration
public boolean isDefaultNamespaceDeclaration()- Specified by:
isDefaultNamespaceDeclarationin interfaceNamespace
-