public static enum XmlWriterContext.Type extends java.lang.Enum<XmlWriterContext.Type>
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 beginDocument
|
IN_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.
|
Modifier and Type | Method | Description |
---|---|---|
static XmlWriterContext.Type |
valueOf(java.lang.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.
|
public static final XmlWriterContext.Type IN_OPEN_STREAM
Stream is empty.
public static final XmlWriterContext.Type IN_OPEN_DOC
Stream contains the xml declaration.
public static final XmlWriterContext.Type IN_TAG
One can add attributes to that element, or content (text, comments, ...) to it.
public static final XmlWriterContext.Type IN_PI
public static final XmlWriterContext.Type IN_SIMPLE_CONTENT
public static final XmlWriterContext.Type IN_MIXED_CONTENT
public static final XmlWriterContext.Type IN_COMMENT
public static final XmlWriterContext.Type IN_CDATA
public static final XmlWriterContext.Type IN_CLOSED_DOC
We can not add more elements.
public static final XmlWriterContext.Type IN_CLOSED_STREAM
One can not do anything after that, except closing the stream.
public static XmlWriterContext.Type[] values()
for (XmlWriterContext.Type c : XmlWriterContext.Type.values()) System.out.println(c);
public static XmlWriterContext.Type valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullCopyright © 2019. All rights reserved.