Package com.ctc.wstx.evt
Class SimpleStartElement
java.lang.Object
org.codehaus.stax2.ri.evt.BaseEventImpl
com.ctc.wstx.evt.BaseStartElement
com.ctc.wstx.evt.SimpleStartElement
- All Implemented Interfaces:
StartElement,XMLEvent,XMLStreamConstants,org.codehaus.stax2.evt.XMLEvent2
Wstx
StartElement implementation used when event is constructed
from already objectified data, for example when constructed by the event
factory.-
Field Summary
FieldsFields inherited from class com.ctc.wstx.evt.BaseStartElement
mName, mNsCtxtFields 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
ConstructorsModifierConstructorDescriptionprotectedSimpleStartElement(Location loc, QName name, BaseNsContext nsCtxt, Map<QName, Attribute> attr) -
Method Summary
Modifier and TypeMethodDescriptionstatic SimpleStartElementconstruct(Location loc, QName name, Iterator<Attribute> attrs, Iterator<Namespace> ns, NamespaceContext nsCtxt) static SimpleStartElementconstruct(Location loc, QName name, Map<QName, Attribute> attrs, List<Namespace> ns, NamespaceContext nsCtxt) Factory method called when a start element needs to be constructed from an external source (most likely, non-woodstox stream reader).getAttributeByName(QName name) protected voidprotected voidMethods inherited from class com.ctc.wstx.evt.BaseStartElement
asStartElement, equals, getEventType, getName, getNamespaceContext, getNamespaces, getNamespaceURI, hashCode, isStartElement, writeAsEncodedUnicode, writeUsingMethods 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
-
mAttrs
-
-
Constructor Details
-
SimpleStartElement
-
-
Method Details
-
construct
public static SimpleStartElement construct(Location loc, QName name, Map<QName, Attribute> attrs, List<Namespace> ns, NamespaceContext nsCtxt) Factory method called when a start element needs to be constructed from an external source (most likely, non-woodstox stream reader). -
construct
public static SimpleStartElement construct(Location loc, QName name, Iterator<Attribute> attrs, Iterator<Namespace> ns, NamespaceContext nsCtxt) -
getAttributeByName
- Specified by:
getAttributeByNamein interfaceStartElement- Specified by:
getAttributeByNamein classBaseStartElement
-
getAttributes
- Specified by:
getAttributesin interfaceStartElement- Specified by:
getAttributesin classBaseStartElement
-
outputNsAndAttr
- Specified by:
outputNsAndAttrin classBaseStartElement- Throws:
IOException
-
outputNsAndAttr
- Specified by:
outputNsAndAttrin classBaseStartElement- Throws:
XMLStreamException
-