public final class SerializerStartElement extends ElementEvent implements StartElement
Modifier and Type | Field and Description |
---|---|
private static java.lang.String |
typeName |
private XMLName |
xname |
content, location, name, schemaType, type
CHANGE_PREFIX_MAPPING, CHARACTER_DATA, COMMENT, END_DOCUMENT, END_ELEMENT, END_PREFIX_MAPPING, ENTITY_REFERENCE, NULL_ELEMENT, PROCESSING_INSTRUCTION, SPACE, START_DOCUMENT, START_ELEMENT, START_PREFIX_MAPPING, XML_EVENT
Constructor and Description |
---|
SerializerStartElement(XMLName n) |
Modifier and Type | Method and Description |
---|---|
Attribute |
getAttributeByName(XMLName name)
Returns the attribute referred to by this name
|
AttributeIterator |
getAttributes()
Returns an AttributeIterator of non-namespace declared attributes
|
AttributeIterator |
getAttributesAndNamespaces()
Returns the union of declared attributes and namespaces
|
XMLName |
getName()
Get the XMLName of the current element
|
java.util.Map |
getNamespaceMap()
Gets a java.util.Map from prefixes to URIs in scope for this
element.
|
AttributeIterator |
getNamespaces()
Returns an AttributeIterator of namespaces declared in this element
|
java.lang.String |
getNamespaceUri(java.lang.String prefix)
Gets the value that the prefix is bound to in the
context of this element.
|
int |
getType()
Get the event type of the current element,
returns an integer so that switch statements
can be written on the result
|
java.lang.String |
getTypeAsString()
Get the string value of the type name
|
boolean |
hasName()
Check if this Element has a name
|
boolean |
isStartElement()
Method access to the elements type
|
clone, compare, equals, getLocation, getSchemaType, hashCode, init, isChangePrefixMapping, isCharacterData, isEndDocument, isEndElement, isEndPrefixMapping, isEntityReference, isNull, isProcessingInstruction, isSpace, isStartDocument, isStartPrefixMapping, setName, setSchemaType, setType
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
getLocation, getSchemaType, isChangePrefixMapping, isCharacterData, isEndDocument, isEndElement, isEndPrefixMapping, isEntityReference, isNull, isProcessingInstruction, isSpace, isStartDocument, isStartPrefixMapping
private final XMLName xname
private static final java.lang.String typeName
public SerializerStartElement(XMLName n)
public XMLName getName()
XMLEvent
getName
in interface XMLEvent
getName
in class ElementEvent
XMLName
public boolean hasName()
XMLEvent
hasName
in interface XMLEvent
hasName
in class ElementEvent
public boolean isStartElement()
XMLEvent
isStartElement
in interface XMLEvent
isStartElement
in class ElementEvent
public int getType()
XMLEvent
getType
in interface XMLEvent
getType
in class ElementEvent
public java.lang.String getTypeAsString()
XMLEvent
getTypeAsString
in interface XMLEvent
getTypeAsString
in class ElementEvent
public AttributeIterator getAttributes()
StartElement
getAttributes
in interface StartElement
public AttributeIterator getNamespaces()
StartElement
getNamespaces
in interface StartElement
public AttributeIterator getAttributesAndNamespaces()
StartElement
getAttributesAndNamespaces
in interface StartElement
public java.lang.String getNamespaceUri(java.lang.String prefix)
StartElement
getNamespaceUri
in interface StartElement
public Attribute getAttributeByName(XMLName name)
StartElement
getAttributeByName
in interface StartElement
public java.util.Map getNamespaceMap()
StartElement
getNamespaceMap
in interface StartElement