Class AttributeBase
java.lang.Object
com.sun.xml.fastinfoset.stax.events.EventBase
com.sun.xml.fastinfoset.stax.events.AttributeBase
- All Implemented Interfaces:
Attribute
,XMLEvent
,XMLStreamConstants
- Direct Known Subclasses:
NamespaceBase
-
Field Summary
Fields inherited from class com.sun.xml.fastinfoset.stax.events.EventBase
_eventType, _location
Fields inherited from interface javax.xml.stream.XMLStreamConstants
ATTRIBUTE, CDATA, CHARACTERS, COMMENT, DTD, END_DOCUMENT, END_ELEMENT, ENTITY_DECLARATION, ENTITY_REFERENCE, NAMESPACE, NOTATION_DECLARATION, PROCESSING_INSTRUCTION, SPACE, START_DOCUMENT, START_ELEMENT
-
Constructor Summary
ConstructorsConstructorDescriptionAttributeBase
(String name, String value) AttributeBase
(String prefix, String localName, String value) AttributeBase
(String prefix, String namespaceURI, String localName, String value, String attributeType) AttributeBase
(QName qname, String value) -
Method Summary
Modifier and TypeMethodDescriptionGets the type of this attribute, default is the String "CDATA"getName()
Returns the QName for this attributegetValue()
Gets the normalized value of this attributeboolean
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
void
setSpecified
(boolean isSpecified) void
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 Details
-
AttributeBase
public AttributeBase() -
AttributeBase
-
AttributeBase
-
AttributeBase
-
AttributeBase
-
-
Method Details
-
setName
-
getName
Returns the QName for this attribute -
setValue
-
getLocalName
-
getValue
Gets the normalized value of this attribute -
setAttributeType
-
getDTDType
Gets the type of this attribute, default is the String "CDATA"- Specified by:
getDTDType
in interfaceAttribute
- 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 interfaceAttribute
- Returns:
- returns true if this was specified in the start element
-
setSpecified
public void setSpecified(boolean isSpecified) -
toString
-