Package com.helger.xml.serialize.write
Enum EXMLSerializeComments
- java.lang.Object
-
- java.lang.Enum<EXMLSerializeComments>
-
- com.helger.xml.serialize.write.EXMLSerializeComments
-
- All Implemented Interfaces:
com.helger.commons.id.IHasID<String>,Serializable,Comparable<EXMLSerializeComments>
public enum EXMLSerializeComments extends Enum<EXMLSerializeComments> implements com.helger.commons.id.IHasID<String>
Determines whether comments should be serialized or not.- Author:
- Philip Helger
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static EXMLSerializeCommentsgetFromIDOrNull(String sID)StringgetID()booleanisEmit()static EXMLSerializeCommentsvalueOf(String name)Returns the enum constant of this type with the specified name.static EXMLSerializeComments[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
EMIT
public static final EXMLSerializeComments EMIT
-
IGNORE
public static final EXMLSerializeComments IGNORE
-
-
Method Detail
-
values
public static EXMLSerializeComments[] 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 (EXMLSerializeComments c : EXMLSerializeComments.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static EXMLSerializeComments 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 EXMLSerializeComments getFromIDOrNull(@Nullable String sID)
-
-