Package com.ctc.wstx.evt
Class BaseStartElement
java.lang.Object
org.codehaus.stax2.ri.evt.BaseEventImpl
com.ctc.wstx.evt.BaseStartElement
- All Implemented Interfaces:
StartElement
,XMLEvent
,XMLStreamConstants
,org.codehaus.stax2.evt.XMLEvent2
- Direct Known Subclasses:
CompactStartElement
,SimpleStartElement
abstract class BaseStartElement
extends org.codehaus.stax2.ri.evt.BaseEventImpl
implements StartElement
Shared base class of
StartElement
implementations Wstx uses.-
Field Summary
FieldsFields inherited from class org.codehaus.stax2.ri.evt.BaseEventImpl
mLocation
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
ConstructorsModifierConstructorDescriptionprotected
BaseStartElement
(Location loc, QName name, BaseNsContext nsCtxt) -
Method Summary
Modifier and TypeMethodDescriptionboolean
abstract Attribute
getAttributeByName
(QName name) int
final QName
getName()
getNamespaceURI
(String prefix) int
hashCode()
boolean
protected abstract void
protected abstract void
void
void
writeUsing
(org.codehaus.stax2.XMLStreamWriter2 w) Methods inherited from class org.codehaus.stax2.ri.evt.BaseEventImpl
addHash, asCharacters, asEndElement, getLocation, getSchemaType, isAttribute, isCharacters, isEndDocument, isEndElement, isEntityReference, isNamespace, isProcessingInstruction, isStartDocument, iteratedEquals, stringsWithNullsEqual, throwFromIOE, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface javax.xml.stream.events.XMLEvent
asCharacters, asEndElement, getLocation, getSchemaType, isAttribute, isCharacters, isEndDocument, isEndElement, isEntityReference, isNamespace, isProcessingInstruction, isStartDocument
-
Field Details
-
mName
-
mNsCtxt
-
-
Constructor Details
-
BaseStartElement
-
-
Method Details
-
getAttributeByName
- Specified by:
getAttributeByName
in interfaceStartElement
-
getAttributes
- Specified by:
getAttributes
in interfaceStartElement
-
getName
- Specified by:
getName
in interfaceStartElement
-
getNamespaces
- Specified by:
getNamespaces
in interfaceStartElement
-
getNamespaceContext
- Specified by:
getNamespaceContext
in interfaceStartElement
-
getNamespaceURI
- Specified by:
getNamespaceURI
in interfaceStartElement
-
asStartElement
- Specified by:
asStartElement
in interfaceXMLEvent
- Overrides:
asStartElement
in classorg.codehaus.stax2.ri.evt.BaseEventImpl
-
getEventType
public int getEventType()- Specified by:
getEventType
in interfaceXMLEvent
- Specified by:
getEventType
in classorg.codehaus.stax2.ri.evt.BaseEventImpl
-
isStartElement
public boolean isStartElement()- Specified by:
isStartElement
in interfaceXMLEvent
- Overrides:
isStartElement
in classorg.codehaus.stax2.ri.evt.BaseEventImpl
-
writeAsEncodedUnicode
- Specified by:
writeAsEncodedUnicode
in interfaceXMLEvent
- Specified by:
writeAsEncodedUnicode
in classorg.codehaus.stax2.ri.evt.BaseEventImpl
- Throws:
XMLStreamException
-
writeUsing
- Specified by:
writeUsing
in interfaceorg.codehaus.stax2.evt.XMLEvent2
- Specified by:
writeUsing
in classorg.codehaus.stax2.ri.evt.BaseEventImpl
- Throws:
XMLStreamException
-
outputNsAndAttr
- Throws:
IOException
-
outputNsAndAttr
- Throws:
XMLStreamException
-
equals
- Specified by:
equals
in classorg.codehaus.stax2.ri.evt.BaseEventImpl
-
hashCode
public int hashCode()- Specified by:
hashCode
in classorg.codehaus.stax2.ri.evt.BaseEventImpl
-