public class TaskValues
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
protected |
TaskValues(com.uc4.util.XMLDocument doc,
org.w3c.dom.Element task) |
Modifier and Type | Method and Description |
---|---|
TaskValues |
copy()
This method is used to return the copy of the TaskValues Object.
|
ErtUsage |
getErtUsage(java.lang.String validityKeyword)
Returns the
ErtUsage value for a given validity keyword
The method returns ErtUsage.NONE if the validity keyword does not exist. |
int |
getInheritFromParent()
Returns an integer which describes how variable values are inherited from its parent.
|
ErtUsage |
getParentErtUsage(java.lang.String validityKeyword)
Returns the
ErtUsage value of the parent, for a given validity keyword
The method returns ErtUsage.NONE if the validity keyword does not exist. |
java.lang.String |
getParentValue(java.lang.String validityKeyword)
Returns the parent value for a given validity keyword
The method returns
null if the validity keyword does not exist. |
java.lang.String |
getValue(java.lang.String validityKeyword)
Returns the value for a given validity keyword
The method returns
null if the validity keyword does not exist. |
boolean |
isValueOverridden(java.lang.String validityKeyword)
Returns if the value for a given validity keyword (variable) was overridden
|
java.util.Iterator<java.lang.String> |
parentValueKeyIterator()
Returns an iterator over parent validity keywords.
|
int |
parentValueSize() |
java.util.Iterator<PromptSetDefinition> |
promptSetIterator()
Returns an iterator over
PromptSetDefinition . |
int |
promptSetSize() |
boolean |
replaceValue(java.lang.String kw,
java.lang.String value)
Replaces an existing value.
|
boolean |
replaceValueOnlyIfChanged(java.lang.String kw,
java.lang.String value)
Deprecated.
Deprecated, kept only for binary compatibility.
|
java.util.Iterator<java.lang.String> |
valueKeyIterator()
Returns an iterator over validity keywords.
|
int |
valueSize() |
protected TaskValues(com.uc4.util.XMLDocument doc, org.w3c.dom.Element task)
public int getInheritFromParent()
public java.util.Iterator<java.lang.String> valueKeyIterator()
java.lang.String
public java.util.Iterator<java.lang.String> parentValueKeyIterator()
java.lang.String
public boolean replaceValue(java.lang.String kw, java.lang.String value)
kw
- Keyvalue
- Value@Deprecated public boolean replaceValueOnlyIfChanged(java.lang.String kw, java.lang.String value)
kw
- Keyvalue
- Valuepublic int valueSize()
public int parentValueSize()
public int promptSetSize()
public java.util.Iterator<PromptSetDefinition> promptSetIterator()
PromptSetDefinition
.public java.lang.String getValue(java.lang.String validityKeyword)
null
if the validity keyword does not exist.validityKeyword
- Keypublic boolean isValueOverridden(java.lang.String validityKeyword)
validityKeyword
- Keypublic java.lang.String getParentValue(java.lang.String validityKeyword)
null
if the validity keyword does not exist.validityKeyword
- Keypublic ErtUsage getErtUsage(java.lang.String validityKeyword)
ErtUsage
value for a given validity keyword
The method returns ErtUsage.NONE
if the validity keyword does not exist.validityKeyword
- KeyErtUsage
or ErtUsage.NONE
if the key does not existpublic ErtUsage getParentErtUsage(java.lang.String validityKeyword)
ErtUsage
value of the parent, for a given validity keyword
The method returns ErtUsage.NONE
if the validity keyword does not exist.validityKeyword
- KeyErtUsage
or ErtUsage.NONE
if the key does not existpublic TaskValues copy()