org.eclipse.emf.ecore.xml.type.util
Class XMLTypeUtil

java.lang.Object
  extended byorg.eclipse.emf.ecore.xml.type.util.XMLTypeUtil

public final class XMLTypeUtil
extends Object

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(Object calendar1, Object calendar2)
           
static int compareDuration(Object duration1, Object duration2)
           
static EValidator.PatternMatcher createPatternMatcher(String pattern)
           
static Object createQName(String namespaceUri, String localPart, String prefix)
          Creates a new QName object with the specified values
static String getQNameLocalPart(Object qname)
          Returns the localPart of a QName.
static String getQNameNamespaceURI(Object qname)
          Returns the namespaceURI of a QName.
static String getQNamePrefix(Object qname)
          Returns the prefix of a QName.
static boolean isSpace(char value)
           
static String normalize(String value, boolean collapse)
           
static void setQNameValues(Object qname, String namespaceUri, String localPart, String prefix)
          Sets the QName object values to the specified onces
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EQUALS

public static final int EQUALS
See Also:
Constant Field Values

LESS_THAN

public static final int LESS_THAN
See Also:
Constant Field Values

GREATER_THAN

public static final int GREATER_THAN
See Also:
Constant Field Values

INDETERMINATE

public static final int INDETERMINATE
See Also:
Constant Field Values
Constructor Detail

XMLTypeUtil

public XMLTypeUtil()
Method Detail

compareCalendar

public static int compareCalendar(Object calendar1,
                                  Object calendar2)

compareDuration

public static int compareDuration(Object duration1,
                                  Object duration2)

isSpace

public static boolean isSpace(char value)

normalize

public static String normalize(String value,
                               boolean collapse)

createPatternMatcher

public static EValidator.PatternMatcher createPatternMatcher(String pattern)

createQName

public static Object createQName(String namespaceUri,
                                 String localPart,
                                 String prefix)
Creates a new QName object with the specified values

Parameters:
namespaceUri - namespace uri value or null
localPart - localPart (not null)
prefix - prefix value or null
Returns:
The newly created QName object

setQNameValues

public static void setQNameValues(Object qname,
                                  String namespaceUri,
                                  String localPart,
                                  String prefix)
Sets the QName object values to the specified onces

Parameters:
namespaceUri - namespace uri value or null
localPart - localPart (not null)
prefix - prefix value or null

getQNameNamespaceURI

public static String getQNameNamespaceURI(Object qname)
Returns the namespaceURI of a QName.


getQNameLocalPart

public static String getQNameLocalPart(Object qname)
Returns the localPart of a QName.


getQNamePrefix

public static String getQNamePrefix(Object qname)
Returns the prefix of a QName.


Copyright 2001-2006 IBM Corporation and others.
All Rights Reserved.