|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.qtitools.qti.node.AbstractNode
org.qtitools.qti.node.AbstractObject
org.qtitools.qti.node.content.xhtml.object.Param
public class Param
Attribute : name [1]: string The name of the parameter, as interpreted by the object. Attribute : value [1]: string The value to pass to the object for the named parameter. This value is subject to template variable expansion. If the value is the name of A template variable that was declared with the paramVariable set to true then the template variable's value is passed to the object as the value for the given parameter. When expanding A template variable as A parameter value, types other than identifiers, strings and uris must be converted to strings. Numeric types are converted to strings using the "%i" or "%G" formats as appropriate (see printedVariable for A discussion of numeric formatting). Values of base-type boolean are expanded to one of the strings "true" or "false". Values of base-type point are expanded to two space-separated integers in the order horizontal coordinate, vertical coordinate, using "%i" format. Values of base-type pair and directedPair are converted to A string consisting of the two identifiers, space separated. Values of base-type duration are converted using "%G" format. Values of base-type file cannot be used in parameter expansion. If the valuetype is REF the template variable must be of base-type uri. Attribute : valuetype [1]: paramType = DATA This specification supports the use of DATA and REF but not OBJECT. Attribute : type [0..1]: mimeType Used to provide A type for values valuetype REF.
| Field Summary | |
|---|---|
static java.lang.String |
ATTR_NAME_NAME
Name of name attribute in xml schema. |
static java.lang.String |
ATTR_TYPE_NAME
Name of type attribute in xml schema. |
static java.lang.String |
ATTR_VALUE_NAME
Name of value attribute in xml schema. |
static java.lang.String |
ATTR_VALUETYPE_NAME
Name of valuetype attribute in xml schema. |
static java.lang.String |
CLASS_TAG
Name of this class in xml schema. |
| Fields inherited from interface org.qtitools.qti.node.content.basic.ObjectFlow |
|---|
DISPLAY_NAME |
| Fields inherited from interface org.qtitools.qti.node.XmlNode |
|---|
INDENT, NEW_LINE, SIMPLE_NAME_INNER_SEPARATOR, SIMPLE_NAMES_SEPARATOR |
| Constructor Summary | |
|---|---|
Param(XmlObject parent)
Constructs object. |
|
| Method Summary | |
|---|---|
java.lang.String |
getClassTag()
Gets QTI class name of this node. |
java.lang.String |
getName()
Gets value of name attribute. |
java.lang.String |
getType()
Gets value of type attribute. |
java.lang.String |
getValue()
Gets value of value attribute. |
ParamType |
getValuetype()
Gets value of valuetype attribute. |
void |
setName(java.lang.String name)
Sets new value of name attribute. |
void |
setType(java.lang.String type)
Sets new value of type attribute. |
void |
setValue(java.lang.String value)
Sets new value of value attribute. |
void |
setValuetype(ParamType valuetype)
Sets new value of valuetype attribute. |
| Methods inherited from class org.qtitools.qti.node.AbstractObject |
|---|
getParent, getParentItem, getParentResult, getParentTest, setParent |
| Methods inherited from class org.qtitools.qti.node.AbstractNode |
|---|
attrToXmlString, bodyToXmlString, getAttributes, getFullName, getIndent, getNode, getNode, getNode, getNodeGroups, getParentRoot, getSimpleName, getSourceFile, getSourceNode, getSourceString, getSourceUrl, hasChildNodes, load, load, load, load, loadAttributes, readChild, readChildren, setParent, setSourceFile, setSourceNode, setSourceString, setSourceUrl, toXmlString, toXmlString, validate, validateAttributes, validateChildren |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.qtitools.qti.node.XmlNode |
|---|
getAttributes, getFullName, getNodeGroups, getParent, getParentRoot, getSimpleName, getSourceFile, getSourceNode, getSourceString, getSourceUrl, hasChildNodes, load, load, load, load, setSourceFile, setSourceNode, setSourceString, setSourceUrl, toXmlString, toXmlString |
| Methods inherited from interface org.qtitools.qti.validation.Validatable |
|---|
validate |
| Field Detail |
|---|
public static java.lang.String CLASS_TAG
public static final java.lang.String ATTR_NAME_NAME
public static final java.lang.String ATTR_VALUE_NAME
public static final java.lang.String ATTR_VALUETYPE_NAME
public static final java.lang.String ATTR_TYPE_NAME
| Constructor Detail |
|---|
public Param(XmlObject parent)
parent - parent of constructed object| Method Detail |
|---|
public java.lang.String getClassTag()
XmlNodeQTI class name has very important role during loading/saving nodes.
For example: Java class name is AssessmentTest; QTI class name is assessmentTest.
getClassTag in interface XmlNodegetClassTag in class AbstractNodepublic java.lang.String getName()
setName(java.lang.String)public void setName(java.lang.String name)
name - new value of name attributegetName()public java.lang.String getValue()
setValue(java.lang.String)public void setValue(java.lang.String value)
value - new value of value attributegetValue()public ParamType getValuetype()
setValuetype(org.qtitools.qti.value.ParamType)public void setValuetype(ParamType valuetype)
valuetype - new value of valuetype attributegetValuetype()public java.lang.String getType()
setType(java.lang.String)public void setType(java.lang.String type)
type - new value of type attributegetType()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||