Enum NodeTypeType
- java.lang.Object
-
- java.lang.Enum<NodeTypeType>
-
- network.oxalis.peppol.schematron.jaxb.quickfix.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 Summary
Enum Constants Enum Constant Description ATTRIBUTEThe node to be added will be an attribute.COMMENTThe node to be added will be a comment.ELEMENTThe node to be added will be an element.KEEPThe node type of the node to be added will be defined by the anchor node.PIThe short notation of "processing-instruction".PROCESSING_INSTRUCTIONThe node to be added will be a processing instruction.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static NodeTypeTypefromValue(String v)Stringvalue()static NodeTypeTypevalueOf(String name)Returns the enum constant of this type with the specified name.static NodeTypeType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
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 nameNullPointerException- if the argument is null
-
value
public String value()
-
fromValue
public static NodeTypeType fromValue(String v)
-
-