|
||||||||||
| 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.SingleValueAttribute
public class SingleValueAttribute
Attribute with single value.
| Field Summary |
|---|
| Fields inherited from class org.qtitools.qti.attribute.AbstractAttribute |
|---|
logger |
| Constructor Summary | |
|---|---|
SingleValueAttribute(XmlNode parent,
java.lang.String name,
BaseType baseType)
Constructs attribute. |
|
SingleValueAttribute(XmlNode parent,
java.lang.String name,
BaseType baseType,
SingleValue defaultValue)
Constructs attribute. |
|
SingleValueAttribute(XmlNode parent,
java.lang.String name,
BaseType baseType,
SingleValue value,
SingleValue defaultValue,
boolean required)
Constructs attribute. |
|
| Method Summary | |
|---|---|
BaseType |
getBaseType()
Gets baseType of attribute. |
SingleValue |
getDefaultValue()
Gets default value of attribute. |
SingleValue |
getValue()
Gets value of attribute. |
protected SingleValue |
parseValue(java.lang.String value)
Parses value from given string. |
void |
setBaseType(BaseType baseType)
Sets new baseType of attribute. |
void |
setDefaultValue(SingleValue defaultValue)
Sets new default value of attribute. |
void |
setValue(SingleValue value)
Sets new value of attribute. |
ValidationResult |
validate()
Validates this object. |
| 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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SingleValueAttribute(XmlNode parent,
java.lang.String name,
BaseType baseType)
parent - attribute's parentname - attribute's namebaseType - attribute's baseType
public SingleValueAttribute(XmlNode parent,
java.lang.String name,
BaseType baseType,
SingleValue defaultValue)
parent - attribute's parentname - attribute's namebaseType - attribute's baseTypedefaultValue - attribute's default value
public SingleValueAttribute(XmlNode parent,
java.lang.String name,
BaseType baseType,
SingleValue value,
SingleValue defaultValue,
boolean required)
parent - attribute's parentname - attribute's namebaseType - attribute's baseTypevalue - attribute's valuedefaultValue - attribute's default valuerequired - is this attribute required| Method Detail |
|---|
public BaseType getBaseType()
setBaseType(org.qtitools.qti.value.BaseType)public void setBaseType(BaseType baseType)
baseType - new baseType of attributegetBaseType()public SingleValue getValue()
SingleAttribute
getValue in class SingleAttributeSingleAttribute.setValue(java.lang.Object)public void setValue(SingleValue value)
value - new value of attributegetValue()public SingleValue getDefaultValue()
SingleAttribute
getDefaultValue in class SingleAttributeSingleAttribute.setDefaultValue(java.lang.Object)public void setDefaultValue(SingleValue defaultValue)
defaultValue - new default value of attributegetDefaultValue()protected SingleValue parseValue(java.lang.String value)
SingleAttribute
parseValue in class SingleAttributevalue - string value
public ValidationResult validate()
Validatable
validate in interface Validatablevalidate in class AbstractAttribute
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||