- java.lang.Object
-
- com.sun.xml.fastinfoset.stax.events.EventBase
-
- com.sun.xml.fastinfoset.stax.events.AttributeBase
-
- All Implemented Interfaces:
javax.xml.stream.events.Attribute
,javax.xml.stream.events.XMLEvent
,javax.xml.stream.XMLStreamConstants
- Direct Known Subclasses:
NamespaceBase
public class AttributeBase extends EventBase implements javax.xml.stream.events.Attribute
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
_attributeType
private javax.xml.namespace.QName
_QName
private boolean
_specified
private java.lang.String
_value
-
Fields inherited from class com.sun.xml.fastinfoset.stax.events.EventBase
_eventType, _location
-
-
Constructor Summary
Constructors 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)
-
Method Summary
All Methods Instance Methods Concrete Methods 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 attributejava.lang.String
getValue()
Gets the normalized value of this attributeboolean
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()
-
Methods inherited from class com.sun.xml.fastinfoset.stax.events.EventBase
asCharacters, asEndElement, asStartElement, getEventType, getLocation, getSchemaType, getSystemId, isAttribute, isCharacters, isEndDocument, isEndElement, isEntityReference, isNamespace, isProcessingInstruction, isStartDocument, isStartElement, setEventType, setLocation, writeAsEncodedUnicode
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface javax.xml.stream.events.XMLEvent
asCharacters, asEndElement, asStartElement, getEventType, getLocation, getSchemaType, isAttribute, isCharacters, isEndDocument, isEndElement, isEntityReference, isNamespace, isProcessingInstruction, isStartDocument, isStartElement, writeAsEncodedUnicode
-
-
-
-
Constructor Detail
-
AttributeBase
public AttributeBase()
-
AttributeBase
public AttributeBase(java.lang.String name, java.lang.String value)
-
AttributeBase
public AttributeBase(javax.xml.namespace.QName qname, java.lang.String value)
-
AttributeBase
public AttributeBase(java.lang.String prefix, java.lang.String localName, java.lang.String value)
-
AttributeBase
public AttributeBase(java.lang.String prefix, java.lang.String namespaceURI, java.lang.String localName, java.lang.String value, java.lang.String attributeType)
-
-
Method Detail
-
setName
public void setName(javax.xml.namespace.QName name)
-
getName
public javax.xml.namespace.QName getName()
Returns the QName for this attribute- Specified by:
getName
in interfacejavax.xml.stream.events.Attribute
-
setValue
public void setValue(java.lang.String value)
-
getLocalName
public java.lang.String getLocalName()
-
getValue
public java.lang.String getValue()
Gets the normalized value of this attribute- Specified by:
getValue
in interfacejavax.xml.stream.events.Attribute
-
setAttributeType
public void setAttributeType(java.lang.String attributeType)
-
getDTDType
public java.lang.String getDTDType()
Gets the type of this attribute, default is the String "CDATA"- Specified by:
getDTDType
in interfacejavax.xml.stream.events.Attribute
- Returns:
- the type as a String, default is "CDATA"
-
isSpecified
public boolean isSpecified()
A flag indicating whether this attribute was actually specified in the start-tag of its element, or was defaulted from the schema.- Specified by:
isSpecified
in interfacejavax.xml.stream.events.Attribute
- Returns:
- returns true if this was specified in the start element
-
setSpecified
public void setSpecified(boolean isSpecified)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-