public final class Conversions
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
NAMEFOLLOW_CHARACTER_TYPES
Character types allowed as non-initial characters of a name.
|
static int |
NAMEINIT_CHARACTER_TYPES
Character types allowed as initial characters of a name.
|
| Modifier | Constructor and Description |
|---|---|
private |
Conversions()
Non-constructor for class with no instances.
|
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
checkCollapse(java.lang.String text)
Check collapsed whitespace value.
|
static java.lang.String |
checkName(java.lang.String text,
java.lang.String tname,
ValidationContext vctx,
java.lang.Object obj)
Validate Name value.
|
static java.lang.String |
checkNCName(java.lang.String text,
java.lang.String tname,
ValidationContext vctx,
java.lang.Object obj)
Check NCName value.
|
static java.lang.String |
checkNMTOKEN(java.lang.String text,
java.lang.String tname,
ValidationContext vctx,
java.lang.Object obj)
Check NMTOKEN value.
|
static java.lang.String |
checkNormalizedString(java.lang.String text,
java.lang.String tname,
ValidationContext vctx,
java.lang.Object obj)
Validate normalized string value.
|
static java.lang.String |
checkToken(java.lang.String text,
java.lang.String tname,
ValidationContext vctx,
java.lang.Object obj)
Validate token value.
|
static java.lang.String |
convertAnyUri(java.lang.String text,
ValidationContext vctx)
Validate and convert anyURI value.
|
private static java.lang.String |
convertCollapsed(java.lang.String text,
int index)
Convert collapsed string value.
|
static int |
convertEnumeration(java.lang.String text,
EnumSet eset,
java.lang.String name,
IUnmarshallingContext ictx)
Validate and convert enumeration attribute value.
|
static java.lang.String |
convertName(java.lang.String text,
int index,
java.lang.String tname,
ValidationContext vctx,
java.lang.Object obj)
Convert Name value with validation.
|
private static java.lang.String |
convertNCName(java.lang.String text,
int index,
java.lang.String tname,
ValidationContext vctx,
java.lang.Object obj)
Convert NCName value with validation.
|
private static java.lang.String |
convertNMTOKEN(java.lang.String text,
int index,
java.lang.String tname,
ValidationContext vctx,
java.lang.Object obj)
Convert NMTOKEN value with validation.
|
private static java.lang.String |
convertNormalizedString(java.lang.String text,
int index,
java.lang.String tname,
ValidationContext vctx,
java.lang.Object obj)
Convert normalized string value with validation.
|
private static java.lang.String |
convertToken(java.lang.String text,
int index,
java.lang.String tname,
ValidationContext vctx,
java.lang.Object obj)
Convert token-type value with validation.
|
static java.lang.String |
deserializeName(java.lang.String text,
ValidationContext vctx,
java.lang.Object obj)
Deserialize Name value.
|
static java.lang.String |
deserializeNCName(java.lang.String text,
ValidationContext vctx,
java.lang.Object obj)
Deserialize NCName value.
|
static java.lang.String |
deserializeNMTOKEN(java.lang.String text,
ValidationContext vctx,
java.lang.Object obj)
Deserialize NMTOKEN value.
|
static java.lang.String |
deserializeNormalizedString(java.lang.String text,
ValidationContext vctx,
java.lang.Object obj)
Deserialize normalized string value.
|
static java.lang.String |
deserializeToken(java.lang.String text,
ValidationContext vctx,
java.lang.Object obj)
Deserialize token value.
|
public static final int NAMEINIT_CHARACTER_TYPES
public static final int NAMEFOLLOW_CHARACTER_TYPES
private static java.lang.String convertNormalizedString(java.lang.String text,
int index,
java.lang.String tname,
ValidationContext vctx,
java.lang.Object obj)
text - value to be convertedindex - first character offset to be dropped from resulttname - type namevctx - validation contextobj - object being validatednull if nonrecoverable error)public static java.lang.String checkNormalizedString(java.lang.String text,
java.lang.String tname,
ValidationContext vctx,
java.lang.Object obj)
text - value to be convertedtname - type namevctx - validation contextobj - object being validatednull if nonrecoverable error)public static java.lang.String deserializeNormalizedString(java.lang.String text,
ValidationContext vctx,
java.lang.Object obj)
text - value to be converted (may be null)vctx - validation contextobj - object being validatednull if input null, or nonrecoverable error)private static java.lang.String convertToken(java.lang.String text,
int index,
java.lang.String tname,
ValidationContext vctx,
java.lang.Object obj)
text - value to be convertedindex - first character offset to be dropped from resulttname - type namevctx - validation contextobj - object being validatednull if nonrecoverable error)public static java.lang.String checkToken(java.lang.String text,
java.lang.String tname,
ValidationContext vctx,
java.lang.Object obj)
text - value to be converted (may be null)tname - type namevctx - validation contextobj - object being validatednull if nonrecoverable error)public static java.lang.String deserializeToken(java.lang.String text,
ValidationContext vctx,
java.lang.Object obj)
text - value to be converted (may be null)vctx - validation contextobj - object being validatednull if input null, or nonrecoverable error)private static java.lang.String convertCollapsed(java.lang.String text,
int index)
text - value to be convertedindex - first character offset to be dropped from resultpublic static java.lang.String convertName(java.lang.String text,
int index,
java.lang.String tname,
ValidationContext vctx,
java.lang.Object obj)
text - value to be convertedindex - first character offset to be dropped from resulttname - type namevctx - validation contextobj - object being validatednull if nonrecoverable error)public static java.lang.String checkName(java.lang.String text,
java.lang.String tname,
ValidationContext vctx,
java.lang.Object obj)
text - value to be converted (may be null)tname - type namevctx - validation contextobj - object being validatednull if nonrecoverable error)public static java.lang.String deserializeName(java.lang.String text,
ValidationContext vctx,
java.lang.Object obj)
text - value to be converted (may be null)vctx - validation contextobj - object being validatednull if input null, or nonrecoverable error)private static java.lang.String convertNCName(java.lang.String text,
int index,
java.lang.String tname,
ValidationContext vctx,
java.lang.Object obj)
text - value to be convertedindex - first character offset to be dropped from resulttname - type namevctx - validation contextobj - object being validatedpublic static java.lang.String checkNCName(java.lang.String text,
java.lang.String tname,
ValidationContext vctx,
java.lang.Object obj)
text - value to be converted (may be null)tname - type namevctx - validation contextobj - object being validatednull if nonrecoverable error)public static java.lang.String deserializeNCName(java.lang.String text,
ValidationContext vctx,
java.lang.Object obj)
text - value to be converted (may be null)vctx - validation contextobj - object being validatednull if input null, or nonrecoverable error)private static java.lang.String convertNMTOKEN(java.lang.String text,
int index,
java.lang.String tname,
ValidationContext vctx,
java.lang.Object obj)
text - value to be convertedindex - first character offset to be dropped from resulttname - type namevctx - validation contextobj - object being validatedpublic static java.lang.String checkNMTOKEN(java.lang.String text,
java.lang.String tname,
ValidationContext vctx,
java.lang.Object obj)
text - value to be converted (may be null)tname - type namevctx - validation contextobj - object being validatednull if nonrecoverable error)public static java.lang.String deserializeNMTOKEN(java.lang.String text,
ValidationContext vctx,
java.lang.Object obj)
text - value to be converted (may be null)vctx - validation contextobj - object being validatednull if input null, or nonrecoverable error)public static java.lang.String checkCollapse(java.lang.String text)
text - value to be converted (may be null)public static java.lang.String convertAnyUri(java.lang.String text,
ValidationContext vctx)
text - value to be converted (may be null)vctx - validation contextnull if input null, or error)public static int convertEnumeration(java.lang.String text,
EnumSet eset,
java.lang.String name,
IUnmarshallingContext ictx)
text - value to be converted (may be null)eset - enumeration setname - attribute nameictx - unmarshalling context