org.qtitools.qti.attribute.value
Class FloatMultipleAttribute

java.lang.Object
  extended by org.qtitools.qti.attribute.AbstractAttribute
      extended by org.qtitools.qti.attribute.MultipleAttribute
          extended by org.qtitools.qti.attribute.value.FloatMultipleAttribute
All Implemented Interfaces:
java.io.Serializable, Attribute, Validatable

public class FloatMultipleAttribute
extends MultipleAttribute

Attribute with float values.

Author:
Jiri Kajaba
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.qtitools.qti.attribute.MultipleAttribute
FIELDS_SEPARATOR
 
Fields inherited from class org.qtitools.qti.attribute.AbstractAttribute
logger
 
Constructor Summary
FloatMultipleAttribute(XmlNode parent, java.lang.String name)
          Constructs attribute.
FloatMultipleAttribute(XmlNode parent, java.lang.String name, java.util.List<java.lang.Double> defaultValue)
          Constructs attribute.
FloatMultipleAttribute(XmlNode parent, java.lang.String name, java.util.List<java.lang.Double> value, java.util.List<java.lang.Double> defaultValue, boolean required)
          Constructs attribute.
 
Method Summary
 java.util.List<java.lang.Double> getDefaultValues()
          Gets default value of attribute.
 java.util.List<java.lang.Double> getValues()
          Gets value of attribute.
protected  java.lang.Double parseValue(java.lang.String value)
          Parses value from given string.
 
Methods inherited from class org.qtitools.qti.attribute.MultipleAttribute
defaultValueToString, load, load, 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
 

Constructor Detail

FloatMultipleAttribute

public FloatMultipleAttribute(XmlNode parent,
                              java.lang.String name)
Constructs attribute.

Parameters:
parent - attribute's parent
name - attribute's name

FloatMultipleAttribute

public FloatMultipleAttribute(XmlNode parent,
                              java.lang.String name,
                              java.util.List<java.lang.Double> defaultValue)
Constructs attribute.

Parameters:
parent - attribute's parent
name - attribute's name
defaultValue - attribute's default value

FloatMultipleAttribute

public FloatMultipleAttribute(XmlNode parent,
                              java.lang.String name,
                              java.util.List<java.lang.Double> value,
                              java.util.List<java.lang.Double> defaultValue,
                              boolean required)
Constructs attribute.

Parameters:
parent - attribute's parent
name - attribute's name
value - attribute's value
defaultValue - attribute's default value
required - is this attribute required
Method Detail

getValues

public java.util.List<java.lang.Double> getValues()
Description copied from class: MultipleAttribute
Gets value of attribute.

Overrides:
getValues in class MultipleAttribute
Returns:
value of attribute

getDefaultValues

public java.util.List<java.lang.Double> getDefaultValues()
Description copied from class: MultipleAttribute
Gets default value of attribute.

Overrides:
getDefaultValues in class MultipleAttribute
Returns:
default value of attribute

parseValue

protected java.lang.Double parseValue(java.lang.String value)
Description copied from class: MultipleAttribute
Parses value from given string.

Specified by:
parseValue in class MultipleAttribute
Parameters:
value - string value
Returns:
parsed value


Copyright © 2009. All Rights Reserved.