public class VarDef extends AbstractVarDef
TEST_CASE_PROPERTIES
Constructor and Description |
---|
VarDef()
Creates a new VarDef object.
|
VarDef(String name)
Creates a new VarDef object.
|
Modifier and Type | Method and Description |
---|---|
VarDef |
addValue(VarValueDef value)
Adds a value definition for this variable.
|
IVarDef |
find(String... path)
Returns the descendant variable with the given name path, relative to this variable.
|
protected int |
findValue(Object name)
Returns the index of the value definition with the given name.
|
Iterator<VarValueDef> |
getFailureValues()
Returns an iterator for the set of failure values.
|
Iterator<IVarDef> |
getMembers()
If this variable has member variables, returns an iterator for the member variable list.
|
Schema |
getSchema()
Returns the schema for values bound to this variable.
|
Iterator<VarValueDef> |
getValidValues()
Returns an iterator for the set of valid values.
|
VarValueDef |
getValue(Object name)
Returns the value definition with the given name.
|
Iterator<VarValueDef> |
getValues()
If this variable defines a value set, returns an iterator for the value set.
|
boolean |
isApplicable(VarValueDef value)
Returns true if the given value can be bound to this variable.
|
VarDef |
removeValue(Object name)
Removes a value definition from this variable.
|
void |
setSchema(Schema schema)
Changes the schema for values bound to this variable.
|
equals, getEffectiveCondition, getName, getNextSeqNum, getParent, getPathName, getPosition, getSeqNum, getType, hashCode, isOptional, setCondition, setName, setParent, setSeqNum, setType, toString
getCondition, getEffectiveCondition
addAnnotations, getAnnotation, getAnnotationCount, getAnnotationList, getAnnotations, setAnnotation, setAnnotationList
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
compareTo, getCondition
getAnnotation, getAnnotations
public VarDef()
public VarDef(String name)
public Iterator<IVarDef> getMembers()
getMembers
in interface IVarDef
getMembers
in class AbstractVarDef
public Iterator<VarValueDef> getValues()
getValues
in interface IVarDef
getValues
in class AbstractVarDef
public IVarDef find(String... path)
find
in interface IVarDef
find
in class AbstractVarDef
public Iterator<VarValueDef> getValidValues()
public Iterator<VarValueDef> getFailureValues()
public VarDef addValue(VarValueDef value)
public VarValueDef getValue(Object name)
public boolean isApplicable(VarValueDef value)
protected int findValue(Object name)
public void setSchema(Schema schema)
public Schema getSchema()
Copyright © 2024 The Cornutum Project. All rights reserved.