com.ctc.wstx.evt
Class CompactStartElement
java.lang.Object
org.codehaus.stax2.ri.evt.BaseEventImpl
com.ctc.wstx.evt.CompactStartElement
- All Implemented Interfaces:
- javax.xml.stream.events.StartElement, javax.xml.stream.events.XMLEvent, javax.xml.stream.XMLStreamConstants, XMLEvent2
public class CompactStartElement
- extends BaseEventImpl
Wstx StartElement implementation used when directly creating
events from a stream reader.
| 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 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 |
mName
protected final javax.xml.namespace.QName mName
mNsCtxt
protected final BaseNsContext mNsCtxt
CompactStartElement
protected CompactStartElement(javax.xml.stream.Location loc,
javax.xml.namespace.QName name,
BaseNsContext nsCtxt,
ElemAttrs attrs)
getAttributeByName
public javax.xml.stream.events.Attribute getAttributeByName(javax.xml.namespace.QName name)
- Specified by:
getAttributeByName in interface javax.xml.stream.events.StartElement
getAttributes
public java.util.Iterator getAttributes()
- Specified by:
getAttributes in interface javax.xml.stream.events.StartElement
outputNsAndAttr
protected void outputNsAndAttr(java.io.Writer w)
throws java.io.IOException
- Throws:
java.io.IOException
outputNsAndAttr
protected void outputNsAndAttr(javax.xml.stream.XMLStreamWriter w)
throws javax.xml.stream.XMLStreamException
- Throws:
javax.xml.stream.XMLStreamException
constructAttr
public javax.xml.stream.events.Attribute constructAttr(java.lang.String[] raw,
int rawIndex,
boolean isDef)
getName
public final javax.xml.namespace.QName getName()
- Specified by:
getName in interface javax.xml.stream.events.StartElement
getNamespaces
public java.util.Iterator getNamespaces()
- Specified by:
getNamespaces in interface javax.xml.stream.events.StartElement
getNamespaceContext
public javax.xml.namespace.NamespaceContext getNamespaceContext()
- Specified by:
getNamespaceContext in interface javax.xml.stream.events.StartElement
getNamespaceURI
public java.lang.String getNamespaceURI(java.lang.String prefix)
- Specified by:
getNamespaceURI in interface javax.xml.stream.events.StartElement
asStartElement
public javax.xml.stream.events.StartElement asStartElement()
- Specified by:
asStartElement in interface javax.xml.stream.events.XMLEvent- Overrides:
asStartElement in class BaseEventImpl
getEventType
public int getEventType()
- Specified by:
getEventType in interface javax.xml.stream.events.XMLEvent- Specified by:
getEventType in class BaseEventImpl
isStartElement
public boolean isStartElement()
- Specified by:
isStartElement in interface javax.xml.stream.events.XMLEvent- Overrides:
isStartElement in class BaseEventImpl
writeAsEncodedUnicode
public void writeAsEncodedUnicode(java.io.Writer w)
throws javax.xml.stream.XMLStreamException
- Specified by:
writeAsEncodedUnicode in interface javax.xml.stream.events.XMLEvent- Specified by:
writeAsEncodedUnicode in class BaseEventImpl
- Throws:
javax.xml.stream.XMLStreamException
writeUsing
public void writeUsing(XMLStreamWriter2 w)
throws javax.xml.stream.XMLStreamException
- Specified by:
writeUsing in interface XMLEvent2- Specified by:
writeUsing in class BaseEventImpl
- Throws:
javax.xml.stream.XMLStreamException
equals
public boolean equals(java.lang.Object o)
- Description copied from class:
BaseEventImpl
- Declared abstract to force redefinition by sub-classes
- Specified by:
equals in class BaseEventImpl
hashCode
public int hashCode()
- Description copied from class:
BaseEventImpl
- Declared abstract to force redefinition by sub-classes
- Specified by:
hashCode in class BaseEventImpl