Top Description Fields Constructors Methods
com.ctc.wstx.evt

public Class SimpleStartElement

extends BaseStartElement
Class Inheritance
Imports
java.io.IOException, .Writer, java.util.*, javax.xml.namespace.NamespaceContext, .QName, javax.xml.stream.Location, .XMLStreamException, .XMLStreamWriter, javax.xml.stream.events.Attribute, .Namespace, .StartElement, com.ctc.wstx.io.TextEscaper, com.ctc.wstx.util.BaseNsContext, .DataUtil

Wstx StartElement implementation used when event is constructed from already objectified data, for example when constructed by the event factory.

Field Summary

Modifier and TypeField and Description
pack-priv final Map<QName, Attribute>
Inherited from com.ctc.wstx.evt.BaseStartElement:
mNamemNsCtxt

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
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).

public static SimpleStartElement
public Attribute
getAttributeByName(QName
the qname of the desired attribute
name
)

Implements abstract com.ctc.wstx.evt.BaseStartElement.getAttributeByName.

Implements javax.xml.stream.events.StartElement.getAttributeByName.

Returns the attribute referred to by the qname.

public Iterator<Attribute>
getAttributes()

Implements abstract com.ctc.wstx.evt.BaseStartElement.getAttributes.

Implements javax.xml.stream.events.StartElement.getAttributes.

Returns an Iterator of non-namespace attributes declared on this START_ELEMENT.

protected void
protected void
Inherited from com.ctc.wstx.evt.BaseStartElement:
asStartElementequalsgetEventTypegetNamegetNamespaceContextgetNamespacesgetNamespaceURIhashCodeisStartElementwriteAsEncodedUnicodewriteUsing

Field Detail

mAttrsback to summary
pack-priv final Map<QName, Attribute> mAttrs

Constructor Detail

SimpleStartElementback to summary
protected SimpleStartElement(Location loc, QName name, BaseNsContext nsCtxt, Map<QName, Attribute> attr)

Method Detail

constructback to summary
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).

constructback to summary
public static SimpleStartElement construct(Location loc, QName name, Iterator<Attribute> attrs, Iterator<Namespace> ns, NamespaceContext nsCtxt)
getAttributeByNameback to summary
public Attribute getAttributeByName(QName name)

Implements abstract com.ctc.wstx.evt.BaseStartElement.getAttributeByName.

Implements javax.xml.stream.events.StartElement.getAttributeByName.

Doc from javax.xml.stream.events.StartElement.getAttributeByName.

Returns the attribute referred to by the qname.

Parameters
name:QName

the qname of the desired attribute

Returns:Attribute

the attribute corresponding to the name value or null

Annotations
@Override
getAttributesback to summary
public Iterator<Attribute> getAttributes()

Implements abstract com.ctc.wstx.evt.BaseStartElement.getAttributes.

Implements javax.xml.stream.events.StartElement.getAttributes.

Doc from javax.xml.stream.events.StartElement.getAttributes.

Returns an Iterator of non-namespace attributes declared on this START_ELEMENT. Returns an empty iterator if there are no attributes. The iterator must contain only implementations of the Attribute interface. Attributes are fundamentally unordered and may be reported in any order.

Returns:Iterator<Attribute>

a readonly Iterator over Attribute interfaces, or an empty iterator

Annotations
@Override
outputNsAndAttrback to summary
protected void outputNsAndAttr(Writer w) throws IOException

Implements abstract com.ctc.wstx.evt.BaseStartElement.outputNsAndAttr.

Annotations
@Override
outputNsAndAttrback to summary
protected void outputNsAndAttr(XMLStreamWriter w) throws XMLStreamException

Implements abstract com.ctc.wstx.evt.BaseStartElement.outputNsAndAttr.

Annotations
@Override