org.eclipse.higgins.idas.impl
Class BasicValueDateTime

java.lang.Object
  extended by org.eclipse.higgins.idas.impl.AbstractSimpleValue
      extended by org.eclipse.higgins.idas.impl.BasicValueDateTime
All Implemented Interfaces:
IPropertyValue, ISimpleValue
Direct Known Subclasses:
BasicValueDate, BasicValueGDay, BasicValueGMonth, BasicValueGMonthDay, BasicValueGYear, BasicValueGYearMonth, BasicValueTime

public class BasicValueDateTime
extends AbstractSimpleValue
implements ISimpleValue


Field Summary
static java.lang.String ATTR_VALUE_TYPE_URI_STR
           
static java.lang.String ATTR_VALUE_URI_STR
           
static java.lang.String OWL_TYPE_STR
           
static java.lang.String XML_TYPE_STR
           
 
Fields inherited from class org.eclipse.higgins.idas.impl.AbstractSimpleValue
OWL_TYPE_SUFFIX
 
Fields inherited from interface org.eclipse.higgins.idas.ISimpleValue
BASE_XML_SCHEMA_URI
 
Fields inherited from interface org.eclipse.higgins.idas.IPropertyValue
BASE_OWL_URI
 
Constructor Summary
BasicValueDateTime(java.lang.String value)
           
 
Method Summary
protected  java.lang.String[] _getAllowedFormats()
           
protected  void _setValue(java.util.Date value)
           
 java.lang.String getCanonical()
          Default implementation of getCanonical calls toString() on the backing datatype.
 java.lang.Object getData()
          Returns the backing Java object for this property value.
 java.lang.String getLexical()
          Default implementation of getLexical calls toString() on the backing datatype.
 java.net.URI getType()
          Returns a URI for "http://www.w3.org/2001/XMLSchema#dateTime"
 
Methods inherited from class org.eclipse.higgins.idas.impl.AbstractSimpleValue
isSimple
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.higgins.idas.IPropertyValue
isSimple
 

Field Detail

XML_TYPE_STR

public static final java.lang.String XML_TYPE_STR
See Also:
Constant Field Values

OWL_TYPE_STR

public static final java.lang.String OWL_TYPE_STR
See Also:
Constant Field Values

ATTR_VALUE_URI_STR

public static final java.lang.String ATTR_VALUE_URI_STR
See Also:
Constant Field Values

ATTR_VALUE_TYPE_URI_STR

public static final java.lang.String ATTR_VALUE_TYPE_URI_STR
See Also:
Constant Field Values
Constructor Detail

BasicValueDateTime

public BasicValueDateTime(java.lang.String value)
Method Detail

getLexical

public java.lang.String getLexical()
                            throws IdASException
Description copied from class: AbstractSimpleValue
Default implementation of getLexical calls toString() on the backing datatype.

Specified by:
getLexical in interface ISimpleValue
Overrides:
getLexical in class AbstractSimpleValue
Throws:
IdASException

getCanonical

public java.lang.String getCanonical()
                              throws IdASException
Description copied from class: AbstractSimpleValue
Default implementation of getCanonical calls toString() on the backing datatype.

Specified by:
getCanonical in interface ISimpleValue
Overrides:
getCanonical in class AbstractSimpleValue
Throws:
IdASException

getData

public java.lang.Object getData()
                         throws IdASException
Description copied from interface: IPropertyValue
Returns the backing Java object for this property value.

TODO: This method is a temporary hack to solve the issue brought up in this thread.

Specified by:
getData in interface IPropertyValue
Specified by:
getData in interface ISimpleValue
Throws:
IdASException

_setValue

protected void _setValue(java.util.Date value)

_getAllowedFormats

protected java.lang.String[] _getAllowedFormats()
Returns:
a String array of SimpleDateFormat Date and Time Pattern strings where the first string represents the canonical representation and subsequent strings represent other lexical representations

getType

public java.net.URI getType()
                     throws IdASException
Returns a URI for "http://www.w3.org/2001/XMLSchema#dateTime"

Specified by:
getType in interface IPropertyValue
Returns:
The OWL type for this property's value.
Throws:
IdASException