Top Fields Constructors Methods
com.sun.xml.fastinfoset.stax.events

public Class AttributeBase

extends EventBase
implements Attribute
Class Inheritance
All Implemented Interfaces
javax.xml.stream.events.Attribute, javax.xml.stream.events.XMLEvent, javax.xml.stream.XMLStreamConstants
Known Direct Subclasses
com.sun.xml.fastinfoset.stax.events.NamespaceBase
Imports
javax.xml.namespace.QName, javax.xml.stream.events.Attribute

Field Summary

Modifier and TypeField and Description
private String
private QName
private boolean
private String
Inherited from com.sun.xml.fastinfoset.stax.events.EventBase:
_eventType_location

Constructor Summary

AccessConstructor and Description
public
public
public
AttributeBase(QName qname, String value)

public
AttributeBase(String prefix, String localName, String value)

public
AttributeBase(String prefix, String namespaceURI, String localName, String value, String attributeType)

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

the type as a String, default is "CDATA"
getDTDType
()

Implements javax.xml.stream.events.Attribute.getDTDType.

Gets the type of this attribute, default is the String "CDATA"

public String
public QName
getName()

Implements javax.xml.stream.events.Attribute.getName.

Returns the QName for this attribute

public String
getValue()

Implements javax.xml.stream.events.Attribute.getValue.

Gets the normalized value of this attribute

public boolean

Returns:

returns true if this was specified in the start element
isSpecified
()

Implements javax.xml.stream.events.Attribute.isSpecified.

A flag indicating whether this attribute was actually specified in the start-tag of its element, or was defaulted from the schema.

public void
setAttributeType(String attributeType)

public void
setName(QName name)

public void
setSpecified(boolean isSpecified)

public void
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from com.sun.xml.fastinfoset.stax.events.EventBase:
asCharactersasEndElementasStartElementgetEventTypegetLocationgetSchemaTypegetSystemIdisAttributeisCharactersisEndDocumentisEndElementisEntityReferenceisNamespaceisProcessingInstructionisStartDocumentisStartElementsetEventTypesetLocationwriteAsEncodedUnicode

Field Detail

_attributeTypeback to summary
private String _attributeType
_QNameback to summary
private QName _QName
_specifiedback to summary
private boolean _specified
_valueback to summary
private String _value

Constructor Detail

AttributeBaseback to summary
public AttributeBase()
AttributeBaseback to summary
public AttributeBase(String name, String value)
AttributeBaseback to summary
public AttributeBase(QName qname, String value)
AttributeBaseback to summary
public AttributeBase(String prefix, String localName, String value)
AttributeBaseback to summary
public AttributeBase(String prefix, String namespaceURI, String localName, String value, String attributeType)

Method Detail

getDTDTypeback to summary
public String getDTDType()

Implements javax.xml.stream.events.Attribute.getDTDType.

Gets the type of this attribute, default is the String "CDATA"

Returns:String

the type as a String, default is "CDATA"

Annotations
@Override
getLocalNameback to summary
public String getLocalName()
getNameback to summary
public QName getName()

Implements javax.xml.stream.events.Attribute.getName.

Returns the QName for this attribute

Annotations
@Override
getValueback to summary
public String getValue()

Implements javax.xml.stream.events.Attribute.getValue.

Gets the normalized value of this attribute

Annotations
@Override
isSpecifiedback to summary
public boolean isSpecified()

Implements javax.xml.stream.events.Attribute.isSpecified.

A flag indicating whether this attribute was actually specified in the start-tag of its element, or was defaulted from the schema.

Returns:boolean

returns true if this was specified in the start element

Annotations
@Override
setAttributeTypeback to summary
public void setAttributeType(String attributeType)
setNameback to summary
public void setName(QName name)
setSpecifiedback to summary
public void setSpecified(boolean isSpecified)
setValueback to summary
public void setValue(String value)
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.