Package com.ctc.wstx.evt
Class CompactStartElement
java.lang.Object
org.codehaus.stax2.ri.evt.BaseEventImpl
com.ctc.wstx.evt.CompactStartElement
- All Implemented Interfaces:
StartElement,XMLEvent,XMLStreamConstants,org.codehaus.stax2.evt.XMLEvent2
public class CompactStartElement
extends org.codehaus.stax2.ri.evt.BaseEventImpl
Wstx
StartElement implementation used when directly creating
events from a stream reader.-
Field Summary
FieldsFields inherited from class org.codehaus.stax2.ri.evt.BaseEventImpl
mLocationFields 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
ConstructorsModifierConstructorDescriptionprotectedCompactStartElement(Location loc, QName name, BaseNsContext nsCtxt, ElemAttrs attrs) -
Method Summary
Modifier and TypeMethodDescriptionprotected AttributeconstructAttr(String[] raw, int rawIndex, boolean isDef) booleangetAttributeByName(QName name) intfinal QNamegetName()getNamespaceURI(String prefix) inthashCode()booleanprotected voidprotected voidvoidvoidwriteUsing(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, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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
-
CompactStartElement
-
-
Method Details
-
getAttributeByName
- Specified by:
getAttributeByNamein interfaceStartElement
-
getAttributes
- Specified by:
getAttributesin interfaceStartElement
-
outputNsAndAttr
- Throws:
IOException
-
outputNsAndAttr
- Throws:
XMLStreamException
-
constructAttr
-
getName
- Specified by:
getNamein interfaceStartElement
-
getNamespaces
- Specified by:
getNamespacesin interfaceStartElement
-
getNamespaceContext
- Specified by:
getNamespaceContextin interfaceStartElement
-
getNamespaceURI
- Specified by:
getNamespaceURIin interfaceStartElement
-
asStartElement
- Specified by:
asStartElementin interfaceXMLEvent- Overrides:
asStartElementin classorg.codehaus.stax2.ri.evt.BaseEventImpl
-
getEventType
public int getEventType()- Specified by:
getEventTypein interfaceXMLEvent- Specified by:
getEventTypein classorg.codehaus.stax2.ri.evt.BaseEventImpl
-
isStartElement
public boolean isStartElement()- Specified by:
isStartElementin interfaceXMLEvent- Overrides:
isStartElementin classorg.codehaus.stax2.ri.evt.BaseEventImpl
-
writeAsEncodedUnicode
- Specified by:
writeAsEncodedUnicodein interfaceXMLEvent- Specified by:
writeAsEncodedUnicodein classorg.codehaus.stax2.ri.evt.BaseEventImpl- Throws:
XMLStreamException
-
writeUsing
- Specified by:
writeUsingin interfaceorg.codehaus.stax2.evt.XMLEvent2- Specified by:
writeUsingin classorg.codehaus.stax2.ri.evt.BaseEventImpl- Throws:
XMLStreamException
-
equals
- Specified by:
equalsin classorg.codehaus.stax2.ri.evt.BaseEventImpl
-
hashCode
public int hashCode()- Specified by:
hashCodein classorg.codehaus.stax2.ri.evt.BaseEventImpl
-