public class AttributeBase extends EventBase implements javax.xml.stream.events.Attribute
_eventType, _location
Constructor and Description |
---|
AttributeBase() |
AttributeBase(javax.xml.namespace.QName qname,
java.lang.String value) |
AttributeBase(java.lang.String name,
java.lang.String value) |
AttributeBase(java.lang.String prefix,
java.lang.String localName,
java.lang.String value) |
AttributeBase(java.lang.String prefix,
java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String value,
java.lang.String attributeType) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDTDType()
Gets the type of this attribute, default is
the String "CDATA"
|
java.lang.String |
getLocalName() |
javax.xml.namespace.QName |
getName()
Returns the QName for this attribute
|
java.lang.String |
getValue()
Gets the normalized value of this attribute
|
boolean |
isSpecified()
A flag indicating whether this attribute was actually
specified in the start-tag of its element, or was defaulted from the schema.
|
void |
setAttributeType(java.lang.String attributeType) |
void |
setName(javax.xml.namespace.QName name) |
void |
setSpecified(boolean isSpecified) |
void |
setValue(java.lang.String value) |
java.lang.String |
toString() |
asCharacters, asEndElement, asStartElement, getEventType, getLocation, getSchemaType, getSystemId, isAttribute, isCharacters, isEndDocument, isEndElement, isEntityReference, isNamespace, isProcessingInstruction, isStartDocument, isStartElement, setEventType, setLocation, writeAsEncodedUnicode
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
asCharacters, asEndElement, asStartElement, getEventType, getLocation, getSchemaType, isAttribute, isCharacters, isEndDocument, isEndElement, isEntityReference, isNamespace, isProcessingInstruction, isStartDocument, isStartElement, writeAsEncodedUnicode
public AttributeBase()
public AttributeBase(java.lang.String name, java.lang.String value)
public AttributeBase(javax.xml.namespace.QName qname, java.lang.String value)
public AttributeBase(java.lang.String prefix, java.lang.String localName, java.lang.String value)
public AttributeBase(java.lang.String prefix, java.lang.String namespaceURI, java.lang.String localName, java.lang.String value, java.lang.String attributeType)
public void setName(javax.xml.namespace.QName name)
public javax.xml.namespace.QName getName()
getName
in interface javax.xml.stream.events.Attribute
public void setValue(java.lang.String value)
public java.lang.String getLocalName()
public java.lang.String getValue()
getValue
in interface javax.xml.stream.events.Attribute
public void setAttributeType(java.lang.String attributeType)
public java.lang.String getDTDType()
getDTDType
in interface javax.xml.stream.events.Attribute
public boolean isSpecified()
isSpecified
in interface javax.xml.stream.events.Attribute
public void setSpecified(boolean isSpecified)
public java.lang.String toString()
toString
in class java.lang.Object