Class AttributeBase
- 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_attributeTypeprivate javax.xml.namespace.QName_QNameprivate boolean_specifiedprivate 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.StringgetDTDType()Gets the type of this attribute, default is the String "CDATA"java.lang.StringgetLocalName()javax.xml.namespace.QNamegetName()Returns the QName for this attributejava.lang.StringgetValue()Gets the normalized value of this attributebooleanisSpecified()A flag indicating whether this attribute was actually specified in the start-tag of its element, or was defaulted from the schema.voidsetAttributeType(java.lang.String attributeType)voidsetName(javax.xml.namespace.QName name)voidsetSpecified(boolean isSpecified)voidsetValue(java.lang.String value)java.lang.StringtoString()-
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:
getNamein 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:
getValuein 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:
getDTDTypein 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:
isSpecifiedin 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:
toStringin classjava.lang.Object
-
-