org.tockit.datatype
Class AbstractDatatype

java.lang.Object
  extended byorg.tockit.datatype.AbstractDatatype
All Implemented Interfaces:
Datatype, XMLizable
Direct Known Subclasses:
AbstractXSDDatatype

public abstract class AbstractDatatype
extends java.lang.Object
implements Datatype


Constructor Summary
protected AbstractDatatype(org.jdom.Element element)
           
protected AbstractDatatype(java.lang.String name)
          Constructor is to be called from the subtypes.
 
Method Summary
 boolean canConvertFrom(Value value)
           
 boolean canParse(java.lang.String text)
           
 Value convertType(Value value)
           
 java.lang.String getName()
           
 Value parse(java.lang.String text)
           
 void setName(java.lang.String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.tockit.datatype.Datatype
insertValue, isValidValue, toValue
 
Methods inherited from interface net.sourceforge.toscanaj.util.xmlize.XMLizable
readXML, toXML
 

Constructor Detail

AbstractDatatype

protected AbstractDatatype(java.lang.String name)
Constructor is to be called from the subtypes.


AbstractDatatype

protected AbstractDatatype(org.jdom.Element element)
Method Detail

getName

public java.lang.String getName()
Specified by:
getName in interface Datatype

setName

public void setName(java.lang.String name)

canConvertFrom

public boolean canConvertFrom(Value value)
Specified by:
canConvertFrom in interface Datatype

convertType

public Value convertType(Value value)
                  throws ConversionException
Specified by:
convertType in interface Datatype
Throws:
ConversionException

canParse

public boolean canParse(java.lang.String text)
Specified by:
canParse in interface Datatype

parse

public Value parse(java.lang.String text)
            throws ConversionException
Specified by:
parse in interface Datatype
Throws:
ConversionException


The ToscanaJ project