|
||||||||||
| 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.enumerate.ParamTypeAttribute
public class ParamTypeAttribute
Attribute with paramType value.
| Field Summary |
|---|
| Fields inherited from class org.qtitools.qti.attribute.AbstractAttribute |
|---|
logger |
| Constructor Summary | |
|---|---|
ParamTypeAttribute(XmlNode parent,
java.lang.String name)
Constructs attribute. |
|
ParamTypeAttribute(XmlNode parent,
java.lang.String name,
ParamType defaultValue)
Constructs attribute. |
|
ParamTypeAttribute(XmlNode parent,
java.lang.String name,
ParamType value,
ParamType defaultValue,
boolean required)
Constructs attribute. |
|
| Method Summary | |
|---|---|
ParamType |
getDefaultValue()
Gets default value of attribute. |
ParamType[] |
getSupportedValues()
Gets all supported values of this attribute. |
ParamType |
getValue()
Gets value of attribute. |
protected ParamType |
parseValue(java.lang.String value)
Parses value from given string. |
void |
setDefaultValue(ParamType defaultValue)
Sets new default value of attribute. |
void |
setValue(ParamType value)
Sets new value of attribute. |
| Methods inherited from class org.qtitools.qti.attribute.SingleAttribute |
|---|
defaultValueToString, load, load, setDefaultValue, setValue, valueToString |
| 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 |
| Methods inherited from interface org.qtitools.qti.attribute.Attribute |
|---|
defaultValueToString, getFullName, getLoadedValue, getLoadingProblem, getName, getParent, isRequired, isSupported, load, load, setSupported, toXmlString, valueToString |
| Methods inherited from interface org.qtitools.qti.validation.Validatable |
|---|
validate |
| Constructor Detail |
|---|
public ParamTypeAttribute(XmlNode parent,
java.lang.String name)
parent - attribute's parentname - attribute's name
public ParamTypeAttribute(XmlNode parent,
java.lang.String name,
ParamType defaultValue)
parent - attribute's parentname - attribute's namedefaultValue - attribute's default value
public ParamTypeAttribute(XmlNode parent,
java.lang.String name,
ParamType value,
ParamType defaultValue,
boolean required)
parent - attribute's parentname - attribute's namevalue - attribute's valuedefaultValue - attribute's default valuerequired - is this attribute required| Method Detail |
|---|
public ParamType getValue()
SingleAttribute
getValue in class SingleAttributeSingleAttribute.setValue(java.lang.Object)public void setValue(ParamType value)
value - new value of attributegetValue()public ParamType getDefaultValue()
SingleAttribute
getDefaultValue in class SingleAttributeSingleAttribute.setDefaultValue(java.lang.Object)public void setDefaultValue(ParamType defaultValue)
defaultValue - new default value of attributegetDefaultValue()protected ParamType parseValue(java.lang.String value)
SingleAttribute
parseValue in class SingleAttributevalue - string value
public ParamType[] getSupportedValues()
getSupportedValues in interface EnumerateAttribute
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||