org.qtitools.qti.attribute.value
Class StringMultipleAttribute

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

public class StringMultipleAttribute
extends MultipleAttribute

Attribute with string 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
StringMultipleAttribute(XmlNode parent, java.lang.String name)
          Constructs attribute.
StringMultipleAttribute(XmlNode parent, java.lang.String name, java.util.List<java.lang.String> defaultValue)
          Constructs attribute.
StringMultipleAttribute(XmlNode parent, java.lang.String name, java.util.List<java.lang.String> value, java.util.List<java.lang.String> defaultValue, boolean required)
          Constructs attribute.
 
Method Summary
 java.util.List<java.lang.String> getDefaultValues()
          Gets default value of attribute.
 java.util.List<java.lang.String> getValues()
          Gets value of attribute.
protected  java.lang.String 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

StringMultipleAttribute

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

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

StringMultipleAttribute

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

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

StringMultipleAttribute

public StringMultipleAttribute(XmlNode parent,
                               java.lang.String name,
                               java.util.List<java.lang.String> value,
                               java.util.List<java.lang.String> 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.String> 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.String> 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.String 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.