|
||||||||||
| 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
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.XMLEventgetEventType in class AttributeBasepublic boolean isAttribute()
javax.xml.stream.events.XMLEvent
isAttribute in interface javax.xml.stream.events.XMLEventisAttribute in class AttributeBasepublic boolean isNamespace()
javax.xml.stream.events.XMLEvent
isNamespace in interface javax.xml.stream.events.XMLEventisNamespace in class AttributeBasepublic java.lang.String getPrefix()
javax.xml.stream.events.Namespace
getPrefix in interface javax.xml.stream.events.Namespacepublic java.lang.String getNamespaceURI()
javax.xml.stream.events.Namespace
getNamespaceURI in interface javax.xml.stream.events.NamespacegetNamespaceURI in class AttributeBasepublic boolean isDefaultNamespaceDeclaration()
javax.xml.stream.events.Namespace
isDefaultNamespaceDeclaration in interface javax.xml.stream.events.Namespacepublic java.lang.String toString()
toString in class AttributeBase
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||