|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.geotools.xs.facets.Whitespace
public abstract class Whitespace
Captures the whitespace facet.
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 pageField Summary | |
---|---|
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 |
static Whitespace |
REPLACE
All occurrences of tab, line feed and carriage return are replaced with space. |
Method Summary | |
---|---|
protected java.lang.Object |
clone()
|
int |
compareTo(java.lang.Object other)
|
boolean |
equals(java.lang.Object other)
|
java.lang.Class |
getDeclaringClass()
Returns the Class object corresponding to this enum constant's enum type. |
int |
hashCode()
|
java.lang.String |
name()
|
int |
ordinal()
|
abstract java.lang.String |
preparse(java.lang.String text)
Handle whitespace |
static Whitespace |
valueOf(java.lang.String whitespace)
Returns the enum constant of the specified enum type with the specified name. |
static java.util.List |
values()
|
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
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)
Method Detail |
---|
public abstract java.lang.String preparse(java.lang.String text)
public java.lang.String name()
public int ordinal()
public int hashCode()
hashCode
in class java.lang.Object
protected java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public int compareTo(java.lang.Object other)
compareTo
in interface java.lang.Comparable
public static Whitespace valueOf(java.lang.String whitespace)
whitespace
- public java.lang.Class getDeclaringClass()
public static java.util.List values()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |