Package gnu.kawa.xml

Class AttributeType

    • Field Detail

      • typeAttributeType

        public static final ClassType typeAttributeType
    • Constructor Detail

      • AttributeType

        public AttributeType​(Symbol qname)
      • AttributeType

        public AttributeType​(java.lang.String name,
                             Symbol qname)
    • Method Detail

      • make

        public static AttributeType make​(java.lang.String namespaceURI,
                                         java.lang.String localName)
      • getImplementationType

        public Type getImplementationType()
        Description copied from class: Type
        Return Java-level implementation type. The type used to implement types not natively understood by the JVM or the Java language. Usually, the identity function. However, a language might handle union types or template types or type expressions calculated at run time. In that case return the type used at the Java level, and known at compile time.
        Specified by:
        getImplementationType in interface TypeValue
        Overrides:
        getImplementationType in class NodeType
      • getNamespaceURI

        public final java.lang.String getNamespaceURI()
      • getLocalName

        public final java.lang.String getLocalName()
      • coerceFromObject

        public java.lang.Object coerceFromObject​(java.lang.Object obj)
        Description copied from class: Type
        Convert an object to a value of this Type. The result is actually of the implementation type, boxed as appropriate, so it is suitable for standard reflective operations, like the arguments to Field#set or Method#invoke. Throw a ClassCastException when this is not possible.
        Overrides:
        coerceFromObject in class NodeType
      • isInstance

        public boolean isInstance​(java.lang.Object obj)
        Overrides:
        isInstance in class NodeType
      • coerceOrNull

        public static KAttr coerceOrNull​(java.lang.Object obj,
                                         java.lang.String namespaceURI,
                                         java.lang.String localName)
      • coerce

        public static SeqPosition coerce​(java.lang.Object obj,
                                         java.lang.String namespaceURI,
                                         java.lang.String localName)
      • writeExternal

        public void writeExternal​(java.io.ObjectOutput out)
                           throws java.io.IOException
        Specified by:
        writeExternal in interface java.io.Externalizable
        Overrides:
        writeExternal in class NodeType
        Throws:
        java.io.IOException
      • readExternal

        public void readExternal​(java.io.ObjectInput in)
                          throws java.io.IOException,
                                 java.lang.ClassNotFoundException
        Specified by:
        readExternal in interface java.io.Externalizable
        Overrides:
        readExternal in class NodeType
        Throws:
        java.io.IOException
        java.lang.ClassNotFoundException
      • toString

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