org.eclipse.higgins.idas.cp.jena2.util
Class XMLValueHelper

java.lang.Object
  extended by org.eclipse.higgins.idas.cp.jena2.util.XMLValueHelper

public class XMLValueHelper
extends Object


Method Summary
static com.hp.hpl.jena.datatypes.xsd.XSDDatatype findXSDDatatype(String typeUri)
           
static XMLValueHelper getInstance(String xmlType)
           
 String getType()
           
static XMLValueHelper initInstance(String xmlType)
           
static boolean isSupported(String typeUri)
           
 boolean isValid(String lexicalForm)
           
 boolean isValidValue(Object valueForm)
           
 String toLexicalForm(Object value)
           
 Object toValueForm(com.hp.hpl.jena.rdf.model.Literal literal)
           
 Object toValueForm(String lexicalForm)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static XMLValueHelper getInstance(String xmlType)
                                  throws org.eclipse.higgins.idas.api.IdASException
Throws:
org.eclipse.higgins.idas.api.IdASException

initInstance

public static XMLValueHelper initInstance(String xmlType)
                                   throws org.eclipse.higgins.idas.api.IdASException
Throws:
org.eclipse.higgins.idas.api.IdASException

findXSDDatatype

public static com.hp.hpl.jena.datatypes.xsd.XSDDatatype findXSDDatatype(String typeUri)

isSupported

public static boolean isSupported(String typeUri)

getType

public String getType()

isValidValue

public boolean isValidValue(Object valueForm)

isValid

public boolean isValid(String lexicalForm)

toValueForm

public Object toValueForm(String lexicalForm)
                   throws org.eclipse.higgins.idas.api.model.IdASModelException
Throws:
org.eclipse.higgins.idas.api.model.IdASModelException

toValueForm

public Object toValueForm(com.hp.hpl.jena.rdf.model.Literal literal)
                   throws org.eclipse.higgins.idas.api.model.IdASModelException
Throws:
org.eclipse.higgins.idas.api.model.IdASModelException

toLexicalForm

public String toLexicalForm(Object value)
                     throws org.eclipse.higgins.idas.api.model.IdASModelException
Throws:
org.eclipse.higgins.idas.api.model.IdASModelException