|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.bea.xml.stream.AttributeBase
com.bea.xml.stream.NamespaceBase
public class NamespaceBase
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 | |
---|---|
NamespaceBase(java.lang.String namespaceURI)
|
|
NamespaceBase(java.lang.String prefix,
java.lang.String namespaceURI)
|
Method Summary | |
---|---|
int |
getEventType()
Returns an integer code for this event. |
java.lang.String |
getNamespaceURI()
Gets the uri bound to the prefix of this namespace |
java.lang.String |
getPrefix()
Gets the prefix, returns "" if this is a default namespace declaration. |
boolean |
isAttribute()
A utility function to check if this event is an Attribute. |
boolean |
isDefaultNamespaceDeclaration()
returns true if this attribute declares the default namespace |
boolean |
isNamespace()
A utility function to check if this event is a Namespace. |
java.lang.String |
toString()
|
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 Detail |
---|
public NamespaceBase(java.lang.String prefix, java.lang.String namespaceURI)
public NamespaceBase(java.lang.String namespaceURI)
Method Detail |
---|
public int getEventType()
javax.xml.stream.events.XMLEvent
getEventType
in interface javax.xml.stream.events.XMLEvent
getEventType
in class AttributeBase
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
public boolean isAttribute()
javax.xml.stream.events.XMLEvent
isAttribute
in interface javax.xml.stream.events.XMLEvent
isAttribute
in class AttributeBase
Attribute
public boolean isNamespace()
javax.xml.stream.events.XMLEvent
isNamespace
in interface javax.xml.stream.events.XMLEvent
isNamespace
in class AttributeBase
Namespace
public java.lang.String getPrefix()
javax.xml.stream.events.Namespace
getPrefix
in interface javax.xml.stream.events.Namespace
public java.lang.String getNamespaceURI()
javax.xml.stream.events.Namespace
getNamespaceURI
in interface javax.xml.stream.events.Namespace
getNamespaceURI
in class AttributeBase
public boolean isDefaultNamespaceDeclaration()
javax.xml.stream.events.Namespace
isDefaultNamespaceDeclaration
in interface javax.xml.stream.events.Namespace
public java.lang.String toString()
toString
in class AttributeBase
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |