de.topicmapslab.majortom.util
Class XmlSchemeDatatypes

java.lang.Object
  extended by de.topicmapslab.majortom.util.XmlSchemeDatatypes

public class XmlSchemeDatatypes
extends java.lang.Object

Utility class for XSD data-types and any extension types for example for geographical coordinates.

Author:
Sven Krosse

Field Summary
private static java.lang.String COLON
           
 
Constructor Summary
private XmlSchemeDatatypes()
          hidden constructor
 
Method Summary
static java.lang.String javaToXsd(java.lang.Class<?> clazz)
          Transform the given java class to one of the contained identifiers.
static java.lang.String toExternalForm(java.lang.String identifier)
          Method transform the given identifier to its absolute IRI if it starts with the XML scheme definition prefix 'xsd' otherwise the string returned unmodified.
static java.lang.Class<?> xsdToJava(org.tmapi.core.Locator loc)
          Transform the given XSD identifier to its java class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COLON

private static final java.lang.String COLON
See Also:
Constant Field Values
Constructor Detail

XmlSchemeDatatypes

private XmlSchemeDatatypes()
hidden constructor

Method Detail

toExternalForm

public static java.lang.String toExternalForm(java.lang.String identifier)
Method transform the given identifier to its absolute IRI if it starts with the XML scheme definition prefix 'xsd' otherwise the string returned unmodified.

Parameters:
identifier - the identifier to transform
Returns:
the transformed or unmodified string-represented IRI.

javaToXsd

public static java.lang.String javaToXsd(java.lang.Class<?> clazz)
Transform the given java class to one of the contained identifiers.

Parameters:
clazz - the java class
Returns:
the identifier

xsdToJava

public static java.lang.Class<?> xsdToJava(org.tmapi.core.Locator loc)
Transform the given XSD identifier to its java class.

Parameters:
locator - the locator
Returns:
the java class