Class AttributeImpl

  • All Implemented Interfaces:
    javax.xml.stream.events.Attribute, javax.xml.stream.events.XMLEvent, javax.xml.stream.XMLStreamConstants
    Direct Known Subclasses:
    NamespaceImpl

    public class AttributeImpl
    extends java.lang.Object
    implements javax.xml.stream.events.Attribute

    INTERNAL:

    Usage of this class is not supported. It may be altered or removed at any time.
    Version:
    $Id: AttributeImpl.java 730471 2008-12-31 20:45:32Z mrglavas $
    Author:
    Lucian Holland
    • Field Summary

      • 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

      Constructors 
      Modifier Constructor Description
      protected AttributeImpl​(int type, javax.xml.namespace.QName name, java.lang.String value, java.lang.String dtdType, boolean isSpecified, javax.xml.stream.Location location)  
        AttributeImpl​(javax.xml.namespace.QName name, java.lang.String value, java.lang.String dtdType, boolean isSpecified, javax.xml.stream.Location location)
      Constructor.
    • Constructor Detail

      • AttributeImpl

        public AttributeImpl​(javax.xml.namespace.QName name,
                             java.lang.String value,
                             java.lang.String dtdType,
                             boolean isSpecified,
                             javax.xml.stream.Location location)
        Constructor.
      • AttributeImpl

        protected AttributeImpl​(int type,
                                javax.xml.namespace.QName name,
                                java.lang.String value,
                                java.lang.String dtdType,
                                boolean isSpecified,
                                javax.xml.stream.Location location)
    • Method Detail

      • getName

        public final javax.xml.namespace.QName getName()
        Specified by:
        getName in interface javax.xml.stream.events.Attribute
        See Also:
        Attribute.getName()
      • getValue

        public final java.lang.String getValue()
        Specified by:
        getValue in interface javax.xml.stream.events.Attribute
        See Also:
        Attribute.getValue()
      • getDTDType

        public final java.lang.String getDTDType()
        Specified by:
        getDTDType in interface javax.xml.stream.events.Attribute
        See Also:
        Attribute.getDTDType()
      • isSpecified

        public final boolean isSpecified()
        Specified by:
        isSpecified in interface javax.xml.stream.events.Attribute
        See Also:
        Attribute.isSpecified()
      • writeAsEncodedUnicode

        public final void writeAsEncodedUnicode​(java.io.Writer writer)
                                         throws javax.xml.stream.XMLStreamException
        Specified by:
        writeAsEncodedUnicode in interface javax.xml.stream.events.XMLEvent
        Throws:
        javax.xml.stream.XMLStreamException
      • getEventType

        public final int getEventType()
        Specified by:
        getEventType in interface javax.xml.stream.events.XMLEvent
        See Also:
        XMLEvent.getEventType()
      • getLocation

        public final javax.xml.stream.Location getLocation()
        Specified by:
        getLocation in interface javax.xml.stream.events.XMLEvent
        See Also:
        XMLEvent.getLocation()
      • isStartElement

        public final boolean isStartElement()
        Specified by:
        isStartElement in interface javax.xml.stream.events.XMLEvent
        See Also:
        XMLEvent.isStartElement()
      • isAttribute

        public final boolean isAttribute()
        Specified by:
        isAttribute in interface javax.xml.stream.events.XMLEvent
        See Also:
        XMLEvent.isAttribute()
      • isNamespace

        public final boolean isNamespace()
        Specified by:
        isNamespace in interface javax.xml.stream.events.XMLEvent
        See Also:
        XMLEvent.isNamespace()
      • isEndElement

        public final boolean isEndElement()
        Specified by:
        isEndElement in interface javax.xml.stream.events.XMLEvent
        See Also:
        XMLEvent.isEndElement()
      • isEntityReference

        public final boolean isEntityReference()
        Specified by:
        isEntityReference in interface javax.xml.stream.events.XMLEvent
        See Also:
        XMLEvent.isEntityReference()
      • isProcessingInstruction

        public final boolean isProcessingInstruction()
        Specified by:
        isProcessingInstruction in interface javax.xml.stream.events.XMLEvent
        See Also:
        XMLEvent.isProcessingInstruction()
      • isCharacters

        public final boolean isCharacters()
        Specified by:
        isCharacters in interface javax.xml.stream.events.XMLEvent
        See Also:
        XMLEvent.isCharacters()
      • isStartDocument

        public final boolean isStartDocument()
        Specified by:
        isStartDocument in interface javax.xml.stream.events.XMLEvent
        See Also:
        XMLEvent.isStartDocument()
      • isEndDocument

        public final boolean isEndDocument()
        Specified by:
        isEndDocument in interface javax.xml.stream.events.XMLEvent
        See Also:
        XMLEvent.isEndDocument()
      • asStartElement

        public final javax.xml.stream.events.StartElement asStartElement()
        Specified by:
        asStartElement in interface javax.xml.stream.events.XMLEvent
        See Also:
        XMLEvent.asStartElement()
      • asEndElement

        public final javax.xml.stream.events.EndElement asEndElement()
        Specified by:
        asEndElement in interface javax.xml.stream.events.XMLEvent
        See Also:
        XMLEvent.asEndElement()
      • asCharacters

        public final javax.xml.stream.events.Characters asCharacters()
        Specified by:
        asCharacters in interface javax.xml.stream.events.XMLEvent
        See Also:
        XMLEvent.asCharacters()
      • getSchemaType

        public final javax.xml.namespace.QName getSchemaType()
        Specified by:
        getSchemaType in interface javax.xml.stream.events.XMLEvent
        See Also:
        XMLEvent.getSchemaType()
      • toString

        public final java.lang.String toString()
        Overrides:
        toString in class java.lang.Object