Package com.helger.xml.serialize.write
Enum EXMLSerializeDocType
- java.lang.Object
-
- java.lang.Enum<EXMLSerializeDocType>
-
- com.helger.xml.serialize.write.EXMLSerializeDocType
-
- All Implemented Interfaces:
com.helger.commons.id.IHasID<String>,Serializable,Comparable<EXMLSerializeDocType>
public enum EXMLSerializeDocType extends Enum<EXMLSerializeDocType> implements com.helger.commons.id.IHasID<String>
Used for creating string representation of XML. Determines whether the Document Type should be emitted or ignored.- Author:
- Philip Helger
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static EXMLSerializeDocTypegetFromIDOrNull(String sID)StringgetID()booleanisEmit()static EXMLSerializeDocTypevalueOf(String name)Returns the enum constant of this type with the specified name.static EXMLSerializeDocType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
EMIT
public static final EXMLSerializeDocType EMIT
-
IGNORE
public static final EXMLSerializeDocType IGNORE
-
-
Method Detail
-
values
public static EXMLSerializeDocType[] 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 (EXMLSerializeDocType c : EXMLSerializeDocType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static EXMLSerializeDocType 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
-
getID
@Nonnull @Nonempty public String getID()
- Specified by:
getIDin interfacecom.helger.commons.id.IHasID<String>
-
isEmit
public boolean isEmit()
- Returns:
trueit emit is enabled
-
getFromIDOrNull
@Nullable public static EXMLSerializeDocType getFromIDOrNull(@Nullable String sID)
-
-