Package cdc.util.xml
Enum XmlWriterContext.Type
- java.lang.Object
-
- java.lang.Enum<XmlWriterContext.Type>
-
- cdc.util.xml.XmlWriterContext.Type
-
- All Implemented Interfaces:
Serializable
,Comparable<XmlWriterContext.Type>
- Enclosing class:
- XmlWriterContext
public static enum XmlWriterContext.Type extends Enum<XmlWriterContext.Type>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description IN_CDATA
After calling beginCData.IN_CLOSED_DOC
After closing of the root element.IN_CLOSED_STREAM
After calling endDocument.IN_COMMENT
After calling beginComment.IN_MIXED_CONTENT
Replaces IN_TAG and indicates that the element content is complex.IN_OPEN_DOC
After calling beginDocumentIN_OPEN_STREAM
Initial state, before calling beginDocument.IN_PI
After calling begingProcessingInstruction.IN_SIMPLE_CONTENT
Replaces IN_TAG and indicates that the element content is simple.IN_TAG
After calling beginElement.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static XmlWriterContext.Type
valueOf(String name)
Returns the enum constant of this type with the specified name.static XmlWriterContext.Type[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
IN_OPEN_STREAM
public static final XmlWriterContext.Type IN_OPEN_STREAM
Initial state, before calling beginDocument.Stream is empty.
-
IN_OPEN_DOC
public static final XmlWriterContext.Type IN_OPEN_DOC
After calling beginDocumentStream contains the xml declaration.
-
IN_TAG
public static final XmlWriterContext.Type IN_TAG
After calling beginElement.One can add attributes to that element, or content (text, comments, ...) to it.
-
IN_PI
public static final XmlWriterContext.Type IN_PI
After calling begingProcessingInstruction.
-
IN_SIMPLE_CONTENT
public static final XmlWriterContext.Type IN_SIMPLE_CONTENT
Replaces IN_TAG and indicates that the element content is simple.
-
IN_MIXED_CONTENT
public static final XmlWriterContext.Type IN_MIXED_CONTENT
Replaces IN_TAG and indicates that the element content is complex.
-
IN_COMMENT
public static final XmlWriterContext.Type IN_COMMENT
After calling beginComment.
-
IN_CDATA
public static final XmlWriterContext.Type IN_CDATA
After calling beginCData.
-
IN_CLOSED_DOC
public static final XmlWriterContext.Type IN_CLOSED_DOC
After closing of the root element.We can not add more elements.
-
IN_CLOSED_STREAM
public static final XmlWriterContext.Type IN_CLOSED_STREAM
After calling endDocument.One can not do anything after that, except closing the stream.
-
-
Method Detail
-
values
public static XmlWriterContext.Type[] 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 (XmlWriterContext.Type c : XmlWriterContext.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static XmlWriterContext.Type 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
-
-