com.sun.xml.fastinfoset.stax.events
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
public class NamespaceBase
- extends AttributeBase
- implements Namespace
| 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 |
| Methods inherited from class com.sun.xml.fastinfoset.stax.events.EventBase |
asCharacters, asEndElement, asStartElement, getEventType, getLocation, getSchemaType, getSystemId, isAttribute, isCharacters, isEndDocument, isEndElement, isEntityReference, isProcessingInstruction, isStartDocument, isStartElement, setEventType, setLocation, writeAsEncodedUnicode |
| Methods inherited from interface javax.xml.stream.events.XMLEvent |
asCharacters, asEndElement, asStartElement, getEventType, getLocation, getSchemaType, isAttribute, isCharacters, isEndDocument, isEndElement, isEntityReference, isProcessingInstruction, isStartDocument, isStartElement, writeAsEncodedUnicode |
NamespaceBase
public NamespaceBase(String namespaceURI)
- a namespace attribute has a form: xmlns:NCName="URI reference"
NamespaceBase
public NamespaceBase(String prefix,
String namespaceURI)
- Create a new Namespace
- Parameters:
prefix - prefix of a namespace is the local name for an attributenamespaceURI - the uri reference of a namespace is the value for an attribute
getPrefix
public String getPrefix()
- Specified by:
getPrefix in interface Namespace
getNamespaceURI
public String getNamespaceURI()
- Specified by:
getNamespaceURI in interface Namespace
isNamespace
public boolean isNamespace()
- Description copied from class:
EventBase
- A utility function to check if this event is a Namespace.
- Specified by:
isNamespace in interface XMLEvent- Overrides:
isNamespace in class EventBase
- See Also:
Namespace
isDefaultNamespaceDeclaration
public boolean isDefaultNamespaceDeclaration()
- Specified by:
isDefaultNamespaceDeclaration in interface Namespace
Copyright © 2005-2015 Oracle Corporation. All Rights Reserved.