public class AttributeBase extends EventBase implements javax.xml.stream.events.Attribute
_eventType, _location
ATTRIBUTE, CDATA, CHARACTERS, COMMENT, DTD, END_DOCUMENT, END_ELEMENT, ENTITY_DECLARATION, ENTITY_REFERENCE, NAMESPACE, NOTATION_DECLARATION, PROCESSING_INSTRUCTION, SPACE, START_DOCUMENT, START_ELEMENT
Constructor and Description |
---|
AttributeBase() |
AttributeBase(QName qname,
String value) |
AttributeBase(String name,
String value) |
AttributeBase(String prefix,
String localName,
String value) |
AttributeBase(String prefix,
String namespaceURI,
String localName,
String value,
String attributeType) |
Modifier and Type | Method and Description |
---|---|
String |
getDTDType()
Gets the type of this attribute, default is
the String "CDATA"
|
String |
getLocalName() |
QName |
getName()
Returns the QName for this attribute
|
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(String attributeType) |
void |
setName(QName name) |
void |
setSpecified(boolean isSpecified) |
void |
setValue(String value) |
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 void setName(QName name)
public QName getName()
getName
in interface javax.xml.stream.events.Attribute
public void setValue(String value)
public String getLocalName()
public String getValue()
getValue
in interface javax.xml.stream.events.Attribute
public void setAttributeType(String attributeType)
public 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)
Copyright © 2012 Oracle Corpration. All Rights Reserved.