public enum EXMLSerializeFormat extends Enum<EXMLSerializeFormat> implements IHasID<String>
| Modifier and Type | Method and Description |
|---|---|
static EXMLSerializeFormat |
getFromIDOrNull(String sID) |
String |
getID()
Get the unique ID of this object.
|
boolean |
isHTML() |
boolean |
isXHTML() |
boolean |
isXML() |
static EXMLSerializeFormat |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EXMLSerializeFormat[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EXMLSerializeFormat HTML
public static final EXMLSerializeFormat XHTML
public static final EXMLSerializeFormat XML
public static EXMLSerializeFormat[] values()
for (EXMLSerializeFormat c : EXMLSerializeFormat.values()) System.out.println(c);
public static EXMLSerializeFormat valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant
with the specified nameNullPointerException - if the argument is null@Nonnull @Nonempty public String getID()
IHasIDString than the
returned value must match an XML NMToken expression (so e.g. no ':' in the
ID)!public boolean isHTML()
true if the serialization format is HTMLpublic boolean isXHTML()
true if the serialization format is XHTMLpublic boolean isXML()
true if the serialization format is XML@Nullable public static EXMLSerializeFormat getFromIDOrNull(@Nullable String sID)
Copyright © 2006–2015 phloc systems. All rights reserved.