public static enum OWL2Datatype.WhiteSpaceNormalisation extends java.lang.Enum<OWL2Datatype.WhiteSpaceNormalisation>
Enum Constant and Description |
---|
COLLAPSE
After the processing implied by replace, contiguous sequences of #x20's are collapsed
to a single #x20, and any #x20 at the start or end of the string is then removed.
|
PRESERVE
No normalization is done, the value is not changed
(this is the behavior required by [XML] for element content)
|
REPLACE
All occurrences of #x9 (tab), #xA (line feed) and #xD (carriage return)
are replaced with #x20 (space)
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getNormalisedString(java.lang.String s)
Gets the normalised version of a string
|
static OWL2Datatype.WhiteSpaceNormalisation |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static OWL2Datatype.WhiteSpaceNormalisation[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final OWL2Datatype.WhiteSpaceNormalisation PRESERVE
public static final OWL2Datatype.WhiteSpaceNormalisation REPLACE
public static final OWL2Datatype.WhiteSpaceNormalisation COLLAPSE
public static OWL2Datatype.WhiteSpaceNormalisation[] values()
for (OWL2Datatype.WhiteSpaceNormalisation c : OWL2Datatype.WhiteSpaceNormalisation.values()) System.out.println(c);
public static OWL2Datatype.WhiteSpaceNormalisation 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 nullpublic java.lang.String getNormalisedString(java.lang.String s)
s
- The string to normalise