Enum NodeTypeType

  • All Implemented Interfaces:
    Serializable, Comparable<NodeTypeType>

    public enum NodeTypeType
    extends Enum<NodeTypeType>

    Java class for nodeTypeType

    .

    The following schema fragment specifies the expected content contained within this class.

    
     <simpleType name="nodeTypeType">
       <restriction base="{http://www.w3.org/2001/XMLSchema}string">
         <enumeration value="keep"/>
         <enumeration value="element"/>
         <enumeration value="attribute"/>
         <enumeration value="processing-instruction"/>
         <enumeration value="pi"/>
         <enumeration value="comment"/>
       </restriction>
     </simpleType>
     
    • Enum Constant Detail

      • KEEP

        public static final NodeTypeType KEEP
        The node type of the node to be added will be defined by the anchor node.
      • ELEMENT

        public static final NodeTypeType ELEMENT
        The node to be added will be an element.
      • ATTRIBUTE

        public static final NodeTypeType ATTRIBUTE
        The node to be added will be an attribute. The
         <?xml version="1.0" encoding="UTF-8"?><icode xmlns:sch="http://purl.oclc.org/dsdl/schematron" xmlns:sqf="http://www.schematron-quickfix.com/validator/process" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" type="attribute">position</icode>
         
        attribute should not be set.
      • PROCESSING_INSTRUCTION

        public static final NodeTypeType PROCESSING_INSTRUCTION
        The node to be added will be a processing instruction.
      • PI

        public static final NodeTypeType PI
        The short notation of "processing-instruction".
      • COMMENT

        public static final NodeTypeType COMMENT
        The node to be added will be a comment. If the value of the
         <?xml version="1.0" encoding="UTF-8"?><icode xmlns:sch="http://purl.oclc.org/dsdl/schematron" xmlns:sqf="http://www.schematron-quickfix.com/validator/process" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" type="attribute">node-type</icode>
         
        attribute is
         <?xml version="1.0" encoding="UTF-8"?><icode xmlns:sch="http://purl.oclc.org/dsdl/schematron" xmlns:sqf="http://www.schematron-quickfix.com/validator/process" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" type="attributeValue">comment</icode>
         
        , the activity element should not have a
         <?xml version="1.0" encoding="UTF-8"?><icode xmlns:sch="http://purl.oclc.org/dsdl/schematron" xmlns:sqf="http://www.schematron-quickfix.com/validator/process" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" type="attribute">target</icode>
         
        attribute.
    • Method Detail

      • values

        public static NodeTypeType[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (NodeTypeType c : NodeTypeType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static NodeTypeType valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • value

        public String value()
        Gets the value associated to the enum constant.
        Returns:
        The value linked to the enum.
      • fromValue

        public static NodeTypeType fromValue​(String v)
        Gets the enum associated to the value passed as parameter.
        Parameters:
        v - The value to get the enum from.
        Returns:
        The enum which corresponds to the value, if it exists.
        Throws:
        IllegalArgumentException - If no value matches in the enum declaration.