org.qtitools.qti.attribute.enumerate
Class ViewMultipleAttribute

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

public class ViewMultipleAttribute
extends MultipleAttribute
implements EnumerateAttribute

Attribute with view 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
ViewMultipleAttribute(XmlNode parent, java.lang.String name)
          Constructs attribute.
ViewMultipleAttribute(XmlNode parent, java.lang.String name, java.util.List<View> defaultValue)
          Constructs attribute.
ViewMultipleAttribute(XmlNode parent, java.lang.String name, java.util.List<View> value, java.util.List<View> defaultValue, boolean required)
          Constructs attribute.
 
Method Summary
 java.util.List<View> getDefaultValues()
          Gets default value of attribute.
 View[] getSupportedValues()
          Gets all supported values of this attribute.
 java.util.List<View> getValues()
          Gets value of attribute.
protected  View 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
 
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

ViewMultipleAttribute

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

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

ViewMultipleAttribute

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

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

ViewMultipleAttribute

public ViewMultipleAttribute(XmlNode parent,
                             java.lang.String name,
                             java.util.List<View> value,
                             java.util.List<View> 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<View> getValues()
Description copied from class: MultipleAttribute
Gets value of attribute.

Overrides:
getValues in class MultipleAttribute
Returns:
value of attribute

getDefaultValues

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

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

parseValue

protected View 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

getSupportedValues

public View[] getSupportedValues()
Gets all supported values of this attribute.

Specified by:
getSupportedValues in interface EnumerateAttribute
Returns:
all supported values of this attribute


Copyright © 2009. All Rights Reserved.