public class AttributeEvent extends AbstractXMLEvent implements javax.xml.stream.events.Attribute
Attribute event implementation.location, schemaType| Constructor and Description |
|---|
AttributeEvent(javax.xml.stream.events.Attribute that)
Copy constructor.
|
AttributeEvent(javax.xml.namespace.QName name,
java.lang.String value)
Constructs an
AttributeEvent with the specified name and value. |
AttributeEvent(javax.xml.namespace.QName name,
java.lang.String value,
javax.xml.stream.events.Attribute that)
Copy constructor that optionally allows the name and/or value to be changed.
|
AttributeEvent(javax.xml.namespace.QName name,
java.lang.String value,
boolean specified)
Constructs a new
AttributeEvent. |
AttributeEvent(javax.xml.namespace.QName name,
java.lang.String value,
boolean specified,
java.lang.String dtdType,
javax.xml.stream.Location location,
javax.xml.namespace.QName schemaType)
Constructs a new
AttributeEvent. |
AttributeEvent(javax.xml.namespace.QName name,
java.lang.String value,
javax.xml.stream.Location location)
Constructs a new
AttributeEvent. |
AttributeEvent(javax.xml.namespace.QName name,
java.lang.String value,
javax.xml.stream.Location location,
javax.xml.namespace.QName schemaType)
Constructs a new
AttributeEvent. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getDTDType() |
int |
getEventType()
Returns
XMLStreamConstants.ATTRIBUTE. |
javax.xml.namespace.QName |
getName() |
java.lang.String |
getValue() |
boolean |
isSpecified() |
asCharacters, asEndElement, asStartElement, clone, getLocation, getSchemaType, isAttribute, isCharacters, isEndDocument, isEndElement, isEntityReference, isNamespace, isProcessingInstruction, isStartDocument, isStartElement, matches, toString, writeAsEncodedUnicode, writeEventequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitasCharacters, asEndElement, asStartElement, getLocation, getSchemaType, isAttribute, isCharacters, isEndDocument, isEndElement, isEntityReference, isNamespace, isProcessingInstruction, isStartDocument, isStartElement, writeAsEncodedUnicodepublic AttributeEvent(javax.xml.namespace.QName name,
java.lang.String value)
AttributeEvent with the specified name and value.name - The qualified attribute name.value - The attribute value.public AttributeEvent(javax.xml.namespace.QName name,
java.lang.String value,
boolean specified)
AttributeEvent.name - The qualified attribute name.value - The attribute value.specified - Whether the attribute was specified in the document
(truefalse).public AttributeEvent(javax.xml.namespace.QName name,
java.lang.String value,
javax.xml.stream.Location location)
AttributeEvent.name - The qualified attribute name.value - The attribute value.location - The Location of the attribute.public AttributeEvent(javax.xml.namespace.QName name,
java.lang.String value,
javax.xml.stream.Location location,
javax.xml.namespace.QName schemaType)
AttributeEvent.name - The qualified attribute name.value - The attribute value.location - The Location of the attribute.schemaType - The attribute type as specified in the schema.public AttributeEvent(javax.xml.namespace.QName name,
java.lang.String value,
boolean specified,
java.lang.String dtdType,
javax.xml.stream.Location location,
javax.xml.namespace.QName schemaType)
AttributeEvent.name - The qualified attribute name.value - The attribute value.specified - Whether the attribute was specified in the document
(truefalse).location - The Location of the attribute.dtdType - The attribute type as specified in the DTD.schemaType - The attribute type as specified in the schema.public AttributeEvent(javax.xml.namespace.QName name,
java.lang.String value,
javax.xml.stream.events.Attribute that)
name - The new attribute name, or null to use the name from
the provided attribute.value - The new attribute value, or null to use the value
from the provided attribute.that - The Attribute event to copy.public AttributeEvent(javax.xml.stream.events.Attribute that)
that - The Attribute event to copy.public int getEventType()
XMLStreamConstants.ATTRIBUTE.getEventType in interface javax.xml.stream.events.XMLEventpublic javax.xml.namespace.QName getName()
getName in interface javax.xml.stream.events.Attributepublic java.lang.String getValue()
getValue in interface javax.xml.stream.events.Attributepublic boolean isSpecified()
isSpecified in interface javax.xml.stream.events.Attributepublic java.lang.String getDTDType()
getDTDType in interface javax.xml.stream.events.Attribute