Package gnu.kawa.xml

Class ProcessingInstructionType

    • Constructor Detail

      • ProcessingInstructionType

        public ProcessingInstructionType​(java.lang.String target)
    • Method Detail

      • 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
      • 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 KProcessingInstruction coerceOrNull​(java.lang.Object obj,
                                                          java.lang.String target)
      • 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