public final class XMLTypeUtil
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
EQUALS |
static int |
GREATER_THAN |
static int |
INDETERMINATE |
static int |
LESS_THAN |
Constructor and Description |
---|
XMLTypeUtil() |
Modifier and Type | Method and Description |
---|---|
static int |
compareCalendar(java.lang.Object calendar1,
java.lang.Object calendar2) |
static int |
compareDuration(java.lang.Object duration1,
java.lang.Object duration2) |
static EValidator.PatternMatcher |
createPatternMatcher(java.lang.String pattern) |
static java.lang.Object |
createQName(java.lang.String namespaceUri,
java.lang.String localPart,
java.lang.String prefix)
Creates a new QName object with the specified values
|
static java.lang.String |
getQNameLocalPart(java.lang.Object qName)
Returns the localPart of a QName.
|
static java.lang.String |
getQNameNamespaceURI(java.lang.Object qName)
Returns the namespaceURI of a QName.
|
static java.lang.String |
getQNamePrefix(java.lang.Object qName)
Returns the prefix of a QName.
|
static boolean |
isNamePart(int codePoint)
Returns whether the code point is a valid part of an XML Name.
|
static boolean |
isNameStart(int codePoint)
Returns whether the code point is the valid start of an XML Name.
|
static boolean |
isNCNamePart(int codePoint)
Returns whether the code point is a valid part of an XML NCName.
|
static boolean |
isNCNameStart(int codePoint)
Returns whether the code point is the valid start of an XML NCName.
|
static boolean |
isSpace(char value) |
static java.lang.String |
normalize(java.lang.String value,
boolean collapse) |
static javax.xml.namespace.QName |
setPrefix(javax.xml.namespace.QName qName,
java.lang.String prefix)
Updates the QName's prefix, if possible, and returns either the updated result,
or a newly created QName with the new prefix, if the QName could not be directly updated.
|
static void |
setQNameValues(java.lang.Object qName,
java.lang.String namespaceUri,
java.lang.String localPart,
java.lang.String prefix)
Deprecated.
|
public static final int EQUALS
public static final int LESS_THAN
public static final int GREATER_THAN
public static final int INDETERMINATE
public static int compareCalendar(java.lang.Object calendar1, java.lang.Object calendar2)
public static int compareDuration(java.lang.Object duration1, java.lang.Object duration2)
public static boolean isSpace(char value)
public static java.lang.String normalize(java.lang.String value, boolean collapse)
public static EValidator.PatternMatcher createPatternMatcher(java.lang.String pattern)
public static java.lang.Object createQName(java.lang.String namespaceUri, java.lang.String localPart, java.lang.String prefix)
namespaceUri
- namespace uri value or nulllocalPart
- localPart (not null)prefix
- prefix value or null (if null, an empty string will actually be used in the resulting QName)@Deprecated public static void setQNameValues(java.lang.Object qName, java.lang.String namespaceUri, java.lang.String localPart, java.lang.String prefix)
namespaceUri
- namespace uri value or nulllocalPart
- localPart (not null)prefix
- prefix value or nullpublic static javax.xml.namespace.QName setPrefix(javax.xml.namespace.QName qName, java.lang.String prefix)
qName
- the QName to be updated.prefix
- the new prefix.public static java.lang.String getQNameNamespaceURI(java.lang.Object qName)
public static java.lang.String getQNameLocalPart(java.lang.Object qName)
public static java.lang.String getQNamePrefix(java.lang.Object qName)
public static boolean isNameStart(int codePoint)
public static boolean isNamePart(int codePoint)
public static boolean isNCNameStart(int codePoint)
public static boolean isNCNamePart(int codePoint)