|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.emf.ecore.xml.type.util.XMLTypeUtil
public final class XMLTypeUtil
This class contains convenient static methods for working with XML-related information.
Field Summary | |
---|---|
static int |
EQUALS
|
static int |
GREATER_THAN
|
static int |
INDETERMINATE
|
static int |
LESS_THAN
|
Constructor Summary | |
---|---|
XMLTypeUtil()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int EQUALS
public static final int LESS_THAN
public static final int GREATER_THAN
public static final int INDETERMINATE
Constructor Detail |
---|
public XMLTypeUtil()
Method Detail |
---|
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)
|
Copyright 2001-2006 IBM Corporation and others. All Rights Reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |