public abstract class Whitespace extends Object implements Comparable
Constants and utility method for old fashion facet goodness. See BooleanXOHandler for an example.
Here is an example use:
<simpleType name='token'>
<restriction base='normalizedString'>
<whiteSpace value='collapse'/>
</restriction>
</simpleType>
longing for Java 5 Enum construct
,
This web pageModifier and Type | Field and Description |
---|---|
static Whitespace |
COLLAPSE
All occurrences of tab, line feed and carriage return are replaced with space.
|
static Whitespace |
PRESERVE
No normalization is done, the value is not changed
Simon the spec says: No normalization is done, the value is not changed (this is the
behavior required by [XML 1.0 (Second Edition)] for element content)
|
static Whitespace |
REPLACE
All occurrences of tab, line feed and carriage return are replaced with space.
|
Modifier and Type | Method and Description |
---|---|
protected Object |
clone() |
int |
compareTo(Object other) |
boolean |
equals(Object other) |
Class |
getDeclaringClass()
Returns the Class object corresponding to this enum constant's enum type.
|
int |
hashCode() |
String |
name() |
int |
ordinal() |
abstract String |
preparse(String text)
Handle whitespace
|
static Whitespace |
valueOf(String whitespace)
Returns the enum constant of the specified enum type with the specified name.
|
static List |
values() |
public static final Whitespace PRESERVE
Simon the spec says: No normalization is done, the value is not changed (this is the behavior required by [XML 1.0 (Second Edition)] for element content)
public static final Whitespace REPLACE
Simon the spec says: All occurrences of #x9 (tab), #xA (line feed) and #xD (carriage return) are replaced with #x20 (space)
public static final Whitespace COLLAPSE
Simon the spec says: All occurrences of #x9 (tab), #xA (line feed) and #xD (carriage return) are replaced with #x20 (space)
public String name()
public int ordinal()
protected Object clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
public int compareTo(Object other)
compareTo
in interface Comparable
public static Whitespace valueOf(String whitespace)
whitespace
- public Class getDeclaringClass()
public static List values()
Copyright © 1996–2019 Geotools. All rights reserved.