public class DateDesc extends SimpleAttDesc
| Constructor and Description |
|---|
DateDesc(Concept owner,
java.lang.String name,
java.util.Date minDate,
java.util.Date maxDate,
java.text.SimpleDateFormat format)
Initializes this with the given name, minimal/ maximal value and format.
|
| Modifier and Type | Method and Description |
|---|---|
DateFct |
addDateFct(java.lang.String name,
boolean active) |
DateFct |
addDateFct(java.lang.String name,
boolean active,
DateFct.DateFunctionPrecision adjust)
Creates a new SymbolFct for the given description.
|
boolean |
canOverride(AttributeDesc desc)
Checks whether this attribute description
can override the given attribute description
|
boolean |
fits(Attribute att)
Checks whether the given attribute
fits this.
|
boolean |
fitsSingle(Attribute att)
Checks whether a single attribute fits the constraints for this.
|
DateAttribute |
getDateAttribute(java.util.Date value)
Returns
DateAttribute object representing the specified
value. |
java.text.SimpleDateFormat |
getFormat()
Gets the values' format
|
java.util.Date |
getMaxDate()
Gets the maximal date which can be used as value for this description.
|
java.util.Date |
getMinDate()
Returns the minimal date which can be used as value for this description.
|
void |
setFormat(java.text.SimpleDateFormat format)
Sets the values' format
|
void |
setMaxDate(java.util.Date maxDate)
Sets the maximal date which can be used as value for this description.
|
void |
setMinDate(java.util.Date minDate)
Sets the minimal date which can be used as value for this description.
|
addFct, deleteAllFcts, deleteSimFct, getFct, getSimFcts, renameFctdelete, getAttribute, getExpType, getName, getOwner, isMultiple, setMultiple, setName, setOwner, toString, updatepublic DateDesc(Concept owner, java.lang.String name, java.util.Date minDate, java.util.Date maxDate, java.text.SimpleDateFormat format) throws java.lang.Exception
name - the name to be used for this description.java.lang.Exceptionpublic DateAttribute getDateAttribute(java.util.Date value)
DateAttribute object representing the specified
value.value - the date representing the value that should be returnedpublic void setMinDate(java.util.Date minDate)
minDate - the minDate to setpublic java.util.Date getMinDate()
public void setMaxDate(java.util.Date maxDate)
maxDate - the maxDate to setpublic java.util.Date getMaxDate()
public java.text.SimpleDateFormat getFormat()
public void setFormat(java.text.SimpleDateFormat format)
format - the new formatpublic DateFct addDateFct(java.lang.String name, boolean active, DateFct.DateFunctionPrecision adjust)
name - the description for which a new function should be createdpublic DateFct addDateFct(java.lang.String name, boolean active)
public boolean canOverride(AttributeDesc desc)
AttributeDesccanOverride in class SimpleAttDescpublic boolean fits(Attribute att)
AttributeDescAttributeDesc.fitsSingle(Attribute)fits in class AttributeDescatt - public boolean fitsSingle(Attribute att)
AttributeDescAttributeDesc.fits(Attribute)fitsSingle in class AttributeDescatt - the attribute which should be checked