| java.lang.Object org.geotools.xs.facets.Whitespace
Whitespace | abstract public class Whitespace implements Comparable(Code) | | 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>
See Also: a See Also: longing for Java 5 Enum construct See Also: This web page author: jgarnett since: 1.0.0 |
Field Summary | |
final public static Whitespace | COLLAPSE All occurrences of tab, line feed and carriage return are replaced with space. | final public static Whitespace | PRESERVE | final public static Whitespace | REPLACE All occurrences of tab, line feed and carriage return are replaced with space. |
COLLAPSE | final public static Whitespace COLLAPSE(Code) | | All occurrences of tab, line feed and carriage return are replaced with space.
Simon the spec says: All occurrences of #x9 (tab), #xA (line feed) and #xD (carriage
return) are replaced with #x20 (space)
|
PRESERVE | final public static Whitespace PRESERVE(Code) | | 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)
|
REPLACE | final public static Whitespace REPLACE(Code) | | All occurrences of tab, line feed and carriage return are replaced with space.
Simon the spec says: All occurrences of #x9 (tab), #xA (line feed) and #xD (carriage
return) are replaced with #x20 (space)
|
getDeclaringClass | public Class getDeclaringClass()(Code) | | Returns the Class object corresponding to this enum constant's enum type.
Whitespace.class |
hashCode | public int hashCode()(Code) | | |
ordinal | public int ordinal()(Code) | | |
valueOf | public static Whitespace valueOf(String whitespace)(Code) | | Returns the enum constant of the specified enum type with the specified name. The name must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
Parameters: whitespace - |
|
|