|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.Observable
de.dfki.mycbr.core.model.AttributeDesc
de.dfki.mycbr.core.model.SimpleAttDesc
de.dfki.mycbr.core.model.DateDesc
public class DateDesc
Description for date attributes. Restricts the values that can be used as attributes of this description by minValue and maxValue and holds a format which is used for these values
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
DateFct |
addDateFct(java.lang.String name,
boolean active)
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. |
| Methods inherited from class de.dfki.mycbr.core.model.SimpleAttDesc |
|---|
addFct, deleteAllFcts, deleteSimFct, getFct, getSimFcts, renameFct |
| Methods inherited from class de.dfki.mycbr.core.model.AttributeDesc |
|---|
delete, getAttribute, getExpType, getName, getOwner, isMultiple, setMultiple, setName, setOwner, toString, update |
| Methods inherited from class java.util.Observable |
|---|
addObserver, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public 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.Exception| Method Detail |
|---|
public DateAttribute getDateAttribute(java.util.Date value)
DateAttribute object representing the specified
value.
value - the date representing the value that should be returned
public 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 format
public DateFct addDateFct(java.lang.String name,
boolean active)
name - the description for which a new function should be created
public boolean canOverride(AttributeDesc desc)
AttributeDesc
canOverride 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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||