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

public class AttributeBase extends EventBase implements Attribute
  • Constructor Details

    • AttributeBase

      public AttributeBase()
    • AttributeBase

      public AttributeBase(String name, String value)
    • AttributeBase

      public AttributeBase(QName qname, String value)
    • AttributeBase

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

      public AttributeBase(String prefix, String namespaceURI, String localName, String value, String attributeType)
  • Method Details

    • setName

      public void setName(QName name)
    • getName

      public QName getName()
      Returns the QName for this attribute
      Specified by:
      getName in interface Attribute
    • setValue

      public void setValue(String value)
    • getLocalName

      public String getLocalName()
    • getValue

      public String getValue()
      Gets the normalized value of this attribute
      Specified by:
      getValue in interface Attribute
    • setAttributeType

      public void setAttributeType(String attributeType)
    • getDTDType

      public String getDTDType()
      Gets the type of this attribute, default is the String "CDATA"
      Specified by:
      getDTDType in interface 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 interface Attribute
      Returns:
      returns true if this was specified in the start element
    • setSpecified

      public void setSpecified(boolean isSpecified)
    • toString

      public String toString()
      Overrides:
      toString in class Object