edu.washington.cs.supple.rep
Class DateTypeImpl

java.lang.Object
  extended byedu.washington.cs.supple.rep.SuppleBeanImpl
      extended byedu.washington.cs.supple.rep.BaseType
          extended byedu.washington.cs.supple.rep.SimpleValueTypeImpl
              extended byedu.washington.cs.supple.rep.DateTypeImpl
All Implemented Interfaces:
java.lang.Cloneable, DateType, java.io.Serializable, SimpleValueType, SuppleBean, SuppleType, ValueListener

public class DateTypeImpl
extends SimpleValueTypeImpl
implements DateType

Date Type implementation.

Author:
kgajos
See Also:
Serialized Form

Field Summary
protected static java.text.DateFormat dateFormat
           
 
Fields inherited from class edu.washington.cs.supple.rep.BaseType
finalLegalValues, hasOrdering, lastUid, legalValues, legalValuesBinding, likelyValues, likelyValuesBinding, maxNumLegalValues, nullLegal, typicalIndexLength, uid
 
Fields inherited from class edu.washington.cs.supple.rep.SuppleBeanImpl
pcs
 
Constructor Summary
DateTypeImpl()
          Constructor
DateTypeImpl(java.util.Collection likelyValues)
           
DateTypeImpl(java.util.Collection likelyValues, java.util.Collection legalValues)
           
DateTypeImpl(java.lang.Object[] likelyValues, java.lang.Object[] legalValues)
           
DateTypeImpl(ValueBinding likelyVals, ValueBinding legalVals)
           
 
Method Summary
 java.lang.String getIndex(java.lang.Object value)
           
 boolean hasIndex()
          Index is a short unique summary of the value (which can be used for choosing present values, etc.
 boolean isEnumerable()
          This method tells you if possible values for this type can be (reasonably) enumerated
 boolean isLegalValueClass(java.lang.Class c)
          Check if a class is legal for this type.
 java.lang.String toString()
           
 
Methods inherited from class edu.washington.cs.supple.rep.SimpleValueTypeImpl
isPrimitiveType
 
Methods inherited from class edu.washington.cs.supple.rep.BaseType
accept, addLegalValue, addLegalValueHelper, addLegalValues, addLikelyValue, addLikelyValueHelper, bindLegalValues, bindLikelyValues, ensureLegalValues, equals, getIndex, getLegalValues, getLikelyValues, getLongestLegalIndex, getMaxNumLegalValues, getNumLegalValues, getNumLikelyValues, getTypicalIndexLength, getUniqueId, hashCode, hasOrdering, hasSetLegalValues, isFinalLegalValues, isLegalValue, orderValues, setFinalLegalValues, setLegalValues, setLikelyValues, setMaxNumLegalValues, setTypicalIndexLength, toPrettyString, valueChanged, verifyCurrentValue, visitBoundProperties
 
Methods inherited from class edu.washington.cs.supple.rep.SuppleBeanImpl
addPropertyChangeListener, removePropertyChangeListener
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface edu.washington.cs.supple.rep.SuppleType
accept, getIndex, getLegalValues, getLikelyValues, getLongestLegalIndex, getMaxNumLegalValues, getNumLegalValues, getNumLikelyValues, getTypicalIndexLength, getUniqueId, hasOrdering, hasSetLegalValues, isFinalLegalValues, isLegalValue, isPrimitiveType, orderValues, toPrettyString, verifyCurrentValue
 
Methods inherited from interface edu.washington.cs.supple.rep.SuppleBean
addPropertyChangeListener, removePropertyChangeListener
 

Field Detail

dateFormat

protected static java.text.DateFormat dateFormat
Constructor Detail

DateTypeImpl

public DateTypeImpl()
Constructor


DateTypeImpl

public DateTypeImpl(java.util.Collection likelyValues)
Parameters:
likelyValues -

DateTypeImpl

public DateTypeImpl(java.util.Collection likelyValues,
                    java.util.Collection legalValues)
Parameters:
likelyValues -
legalValues -

DateTypeImpl

public DateTypeImpl(java.lang.Object[] likelyValues,
                    java.lang.Object[] legalValues)
Parameters:
likelyValues -
legalValues -

DateTypeImpl

public DateTypeImpl(ValueBinding likelyVals,
                    ValueBinding legalVals)
Parameters:
likelyVals -
legalVals -
Method Detail

isEnumerable

public boolean isEnumerable()
Description copied from interface: SuppleType
This method tells you if possible values for this type can be (reasonably) enumerated

Specified by:
isEnumerable in interface SuppleType
Specified by:
isEnumerable in class BaseType

isLegalValueClass

public boolean isLegalValueClass(java.lang.Class c)
Description copied from interface: SuppleType
Check if a class is legal for this type.

Specified by:
isLegalValueClass in interface SuppleType
Parameters:
c -
Returns:

getIndex

public java.lang.String getIndex(java.lang.Object value)
Specified by:
getIndex in interface SuppleType
Overrides:
getIndex in class SimpleValueTypeImpl

hasIndex

public boolean hasIndex()
Description copied from interface: SuppleType
Index is a short unique summary of the value (which can be used for choosing present values, etc.

Specified by:
hasIndex in interface SuppleType
Overrides:
hasIndex in class SimpleValueTypeImpl

toString

public java.lang.String toString()
Overrides:
toString in class BaseType