public final class Conversions extends 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 and Type | Method and Description |
|---|---|
static String |
checkCollapse(String text)
Check collapsed whitespace value.
|
static String |
checkName(String text,
String tname,
ValidationContext vctx,
Object obj)
Validate Name value.
|
static String |
checkNCName(String text,
String tname,
ValidationContext vctx,
Object obj)
Check NCName value.
|
static String |
checkNMTOKEN(String text,
String tname,
ValidationContext vctx,
Object obj)
Check NMTOKEN value.
|
static String |
checkNormalizedString(String text,
String tname,
ValidationContext vctx,
Object obj)
Validate normalized string value.
|
static String |
checkToken(String text,
String tname,
ValidationContext vctx,
Object obj)
Validate token value.
|
static String |
convertAnyUri(String text,
ValidationContext vctx)
Validate and convert anyURI value.
|
static int |
convertEnumeration(String text,
EnumSet eset,
String name,
IUnmarshallingContext ictx)
Validate and convert enumeration attribute value.
|
static String |
convertName(String text,
int index,
String tname,
ValidationContext vctx,
Object obj)
Convert Name value with validation.
|
static String |
deserializeName(String text,
ValidationContext vctx,
Object obj)
Deserialize Name value.
|
static String |
deserializeNCName(String text,
ValidationContext vctx,
Object obj)
Deserialize NCName value.
|
static String |
deserializeNMTOKEN(String text,
ValidationContext vctx,
Object obj)
Deserialize NMTOKEN value.
|
static String |
deserializeNormalizedString(String text,
ValidationContext vctx,
Object obj)
Deserialize normalized string value.
|
static String |
deserializeToken(String text,
ValidationContext vctx,
Object obj)
Deserialize token value.
|
public static final int NAMEINIT_CHARACTER_TYPES
public static final int NAMEFOLLOW_CHARACTER_TYPES
public static String checkNormalizedString(String text, String tname, ValidationContext vctx, Object obj)
text - value to be convertedtname - type namevctx - validation contextobj - object being validatednull if nonrecoverable error)public static String deserializeNormalizedString(String text, ValidationContext vctx, Object obj)
text - value to be converted (may be null)vctx - validation contextobj - object being validatednull if input null, or nonrecoverable error)public static String checkToken(String text, String tname, ValidationContext vctx, Object obj)
text - value to be converted (may be null)tname - type namevctx - validation contextobj - object being validatednull if nonrecoverable error)public static String deserializeToken(String text, ValidationContext vctx, Object obj)
text - value to be converted (may be null)vctx - validation contextobj - object being validatednull if input null, or nonrecoverable error)public static String convertName(String text, int index, String tname, ValidationContext vctx, 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 String checkName(String text, String tname, ValidationContext vctx, Object obj)
text - value to be converted (may be null)tname - type namevctx - validation contextobj - object being validatednull if nonrecoverable error)public static String deserializeName(String text, ValidationContext vctx, Object obj)
text - value to be converted (may be null)vctx - validation contextobj - object being validatednull if input null, or nonrecoverable error)public static String checkNCName(String text, String tname, ValidationContext vctx, Object obj)
text - value to be converted (may be null)tname - type namevctx - validation contextobj - object being validatednull if nonrecoverable error)public static String deserializeNCName(String text, ValidationContext vctx, Object obj)
text - value to be converted (may be null)vctx - validation contextobj - object being validatednull if input null, or nonrecoverable error)public static String checkNMTOKEN(String text, String tname, ValidationContext vctx, Object obj)
text - value to be converted (may be null)tname - type namevctx - validation contextobj - object being validatednull if nonrecoverable error)public static String deserializeNMTOKEN(String text, ValidationContext vctx, Object obj)
text - value to be converted (may be null)vctx - validation contextobj - object being validatednull if input null, or nonrecoverable error)public static String checkCollapse(String text)
text - value to be converted (may be null)public static String convertAnyUri(String text, ValidationContext vctx)
text - value to be converted (may be null)vctx - validation contextnull if input null, or error)public static int convertEnumeration(String text, EnumSet eset, String name, IUnmarshallingContext ictx)
text - value to be converted (may be null)eset - enumeration setname - attribute nameictx - unmarshalling contextCopyright © 2005-2013 jibx.org. All Rights Reserved.