public final class MutableStart extends java.lang.Object implements StartElement
Modifier and Type | Field and Description |
---|---|
private boolean |
attributesNamespaced |
private boolean |
namespaced |
private StartElementEvent |
start |
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 |
---|
MutableStart(StartElement start) |
MutableStart(StartElementEvent start) |
MutableStart(XMLName name) |
Modifier and Type | Method and Description |
---|---|
void |
addAttribute(Attribute attribute) |
(package private) void |
addNamespace(Attribute attribute) |
(package private) boolean |
attributesNamespaced() |
boolean |
equals(java.lang.Object obj) |
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
|
Location |
getLocation()
Return the location of this Element
|
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.
|
XMLName |
getSchemaType()
Get the event type of the current element,
returns an integer so that switch statements
can be written on the result
|
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 |
isChangePrefixMapping() |
boolean |
isCharacterData() |
boolean |
isEndDocument() |
boolean |
isEndElement() |
boolean |
isEndPrefixMapping() |
boolean |
isEntityReference() |
boolean |
isNull() |
boolean |
isProcessingInstruction() |
boolean |
isSpace() |
boolean |
isStartDocument() |
boolean |
isStartElement()
Method access to the elements type
|
boolean |
isStartPrefixMapping() |
(package private) void |
markAttributesNamespaced() |
(package private) void |
markNamespaced() |
(package private) boolean |
namespaced() |
(package private) void |
setAttributes(java.util.List attributes) |
(package private) void |
setName(XMLName name) |
(package private) void |
setNamespaceMap(java.util.Map uriMap) |
java.lang.String |
toString() |
private final StartElementEvent start
private boolean namespaced
private boolean attributesNamespaced
public MutableStart(StartElementEvent start)
public MutableStart(StartElement start)
public MutableStart(XMLName name)
void markNamespaced()
void markAttributesNamespaced()
boolean namespaced()
boolean attributesNamespaced()
void setName(XMLName name)
public void addAttribute(Attribute attribute)
void setAttributes(java.util.List attributes)
void addNamespace(Attribute attribute)
void setNamespaceMap(java.util.Map uriMap)
public Attribute getAttributeByName(XMLName name)
StartElement
getAttributeByName
in interface StartElement
public final AttributeIterator getAttributesAndNamespaces()
StartElement
getAttributesAndNamespaces
in interface StartElement
public final java.lang.String getNamespaceUri(java.lang.String prefix)
StartElement
getNamespaceUri
in interface StartElement
public final int getType()
XMLEvent
public final XMLName getSchemaType()
XMLEvent
getSchemaType
in interface XMLEvent
public final java.lang.String getTypeAsString()
XMLEvent
getTypeAsString
in interface XMLEvent
public final XMLName getName()
XMLEvent
public final boolean hasName()
XMLEvent
public final Location getLocation()
XMLEvent
getLocation
in interface XMLEvent
public final boolean isStartElement()
XMLEvent
isStartElement
in interface XMLEvent
public final boolean isEndElement()
isEndElement
in interface XMLEvent
public final boolean isEntityReference()
isEntityReference
in interface XMLEvent
public final boolean isStartPrefixMapping()
isStartPrefixMapping
in interface XMLEvent
public final boolean isEndPrefixMapping()
isEndPrefixMapping
in interface XMLEvent
public final boolean isChangePrefixMapping()
isChangePrefixMapping
in interface XMLEvent
public final boolean isProcessingInstruction()
isProcessingInstruction
in interface XMLEvent
public final boolean isCharacterData()
isCharacterData
in interface XMLEvent
public final boolean isStartDocument()
isStartDocument
in interface XMLEvent
public final boolean isEndDocument()
isEndDocument
in interface XMLEvent
public final AttributeIterator getAttributes()
StartElement
getAttributes
in interface StartElement
public final AttributeIterator getNamespaces()
StartElement
getNamespaces
in interface StartElement
public final java.util.Map getNamespaceMap()
StartElement
getNamespaceMap
in interface StartElement
public final boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object