org.qtitools.qti.attribute.value
Class CoordsAttribute

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

public class CoordsAttribute
extends MultipleAttribute

Attribute with integer values.

Author:
Jiri Kajaba
See Also:
Serialized Form

Field Summary
 java.lang.String FIELDS_SEPARATOR
          Values separator.
 
Fields inherited from class org.qtitools.qti.attribute.AbstractAttribute
logger
 
Constructor Summary
CoordsAttribute(XmlNode parent, java.lang.String name)
          Constructs attribute.
CoordsAttribute(XmlNode parent, java.lang.String name, java.util.List<java.lang.Integer> defaultValue)
          Constructs attribute.
CoordsAttribute(XmlNode parent, java.lang.String name, java.util.List<java.lang.Integer> value, java.util.List<java.lang.Integer> defaultValue, boolean required)
          Constructs attribute.
 
Method Summary
 java.util.List<java.lang.Integer> getDefaultValues()
          Gets default value of attribute.
 java.util.List<java.lang.Integer> getValues()
          Gets value of attribute.
protected  java.lang.Integer 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
 

Field Detail

FIELDS_SEPARATOR

public java.lang.String FIELDS_SEPARATOR
Values separator.

Constructor Detail

CoordsAttribute

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

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

CoordsAttribute

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

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

CoordsAttribute

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