|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.qtitools.qti.attribute.AbstractAttribute
org.qtitools.qti.attribute.SingleAttribute
org.qtitools.qti.attribute.value.DateAttribute
public class DateAttribute
Attribute with Date value.
| Field Summary |
|---|
| Fields inherited from class org.qtitools.qti.attribute.AbstractAttribute |
|---|
logger |
| Constructor Summary | |
|---|---|
DateAttribute(XmlNode parent,
java.lang.String name)
Constructs attribute. |
|
DateAttribute(XmlNode parent,
java.lang.String name,
java.util.Date defaultValue)
Constructs attribute. |
|
DateAttribute(XmlNode parent,
java.lang.String name,
java.util.Date value,
java.util.Date defaultValue,
boolean required)
Constructs attribute. |
|
| Method Summary | |
|---|---|
java.lang.String |
defaultValueToString()
Gets attribute's defaultValue converted to string. |
java.util.Date |
getDefaultValue()
Gets default value of attribute. |
java.util.Date |
getValue()
Gets value of attribute. |
protected java.util.Date |
parseValue(java.lang.String value)
Parses value from given string. |
void |
setDefaultValue(java.util.Date defaultValue)
Sets new default value of attribute. |
void |
setValue(java.util.Date value)
Sets new value of attribute. |
java.lang.String |
valueToString()
Gets attribute's value converted to string. |
| Methods inherited from class org.qtitools.qti.attribute.SingleAttribute |
|---|
load, load, setDefaultValue, setValue |
| Methods inherited from class org.qtitools.qti.attribute.AbstractAttribute |
|---|
getFullName, getLoadedValue, getLoadingProblem, getName, getParent, isRequired, isSupported, setLoadedValue, setLoadingProblem, setSupported, toString, toXmlString, validate |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DateAttribute(XmlNode parent,
java.lang.String name)
parent - attribute's parentname - attribute's name
public DateAttribute(XmlNode parent,
java.lang.String name,
java.util.Date defaultValue)
parent - attribute's parentname - attribute's namedefaultValue - attribute's default value
public DateAttribute(XmlNode parent,
java.lang.String name,
java.util.Date value,
java.util.Date defaultValue,
boolean required)
parent - attribute's parentname - attribute's namevalue - attribute's valuedefaultValue - attribute's default valuerequired - is this attribute required| Method Detail |
|---|
public java.util.Date getValue()
SingleAttribute
getValue in class SingleAttributeSingleAttribute.setValue(java.lang.Object)public void setValue(java.util.Date value)
value - new value of attributegetValue()public java.util.Date getDefaultValue()
SingleAttribute
getDefaultValue in class SingleAttributeSingleAttribute.setDefaultValue(java.lang.Object)public void setDefaultValue(java.util.Date defaultValue)
defaultValue - new default value of attributegetDefaultValue()protected java.util.Date parseValue(java.lang.String value)
SingleAttribute
parseValue in class SingleAttributevalue - string value
public java.lang.String valueToString()
Attribute
valueToString in interface AttributevalueToString in class SingleAttributepublic java.lang.String defaultValueToString()
Attribute
defaultValueToString in interface AttributedefaultValueToString in class SingleAttribute
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||