javax.xml.stream.events.Attribute, javax.xml.stream.events.XMLEvent, javax.xml.stream.XMLStreamConstantsNamespaceBasepublic class AttributeBase extends EventBase implements javax.xml.stream.events.Attribute
_eventType, _location| Constructor | Description |
|---|---|
AttributeBase() |
|
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) |
|
AttributeBase(javax.xml.namespace.QName qname,
java.lang.String value) |
| Modifier and Type | Method | 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, writeAsEncodedUnicodeclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitasCharacters, asEndElement, asStartElement, getEventType, getLocation, getSchemaType, isAttribute, isCharacters, isEndDocument, isEndElement, isEntityReference, isNamespace, isProcessingInstruction, isStartDocument, isStartElement, writeAsEncodedUnicodepublic 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.Attributepublic void setValue(java.lang.String value)
public java.lang.String getLocalName()
public java.lang.String getValue()
getValue in interface javax.xml.stream.events.Attributepublic void setAttributeType(java.lang.String attributeType)
public java.lang.String getDTDType()
getDTDType in interface javax.xml.stream.events.Attributepublic boolean isSpecified()
isSpecified in interface javax.xml.stream.events.Attributepublic void setSpecified(boolean isSpecified)
public java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2018 Oracle Corporation. All rights reserved.