org.semanticweb.owlapi.vocab
Enum OWL2Datatype.WhiteSpaceNormalisation

java.lang.Object
  extended by java.lang.Enum<OWL2Datatype.WhiteSpaceNormalisation>
      extended by org.semanticweb.owlapi.vocab.OWL2Datatype.WhiteSpaceNormalisation
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<OWL2Datatype.WhiteSpaceNormalisation>
Enclosing class:
OWL2Datatype

public static enum OWL2Datatype.WhiteSpaceNormalisation
extends java.lang.Enum<OWL2Datatype.WhiteSpaceNormalisation>


Enum Constant Summary
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)
 
Method Summary
 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're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

PRESERVE

public static final OWL2Datatype.WhiteSpaceNormalisation PRESERVE
No normalization is done, the value is not changed (this is the behavior required by [XML] for element content)


REPLACE

public static final OWL2Datatype.WhiteSpaceNormalisation REPLACE
All occurrences of #x9 (tab), #xA (line feed) and #xD (carriage return) are replaced with #x20 (space)


COLLAPSE

public static final OWL2Datatype.WhiteSpaceNormalisation 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.

Method Detail

values

public static final OWL2Datatype.WhiteSpaceNormalisation[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(OWL2Datatype.WhiteSpaceNormalisation c : OWL2Datatype.WhiteSpaceNormalisation.values())
        System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they're declared

valueOf

public static OWL2Datatype.WhiteSpaceNormalisation valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name

getNormalisedString

public java.lang.String getNormalisedString(java.lang.String s)
Gets the normalised version of a string

Parameters:
s - The string to normalise
Returns:
The normalised string