public class VarSet extends AbstractVarDef
TEST_CASE_PROPERTIES
Constructor and Description |
---|
VarSet()
Creates a new VarSet object.
|
VarSet(String name)
Creates a new VarSet object.
|
Modifier and Type | Method and Description |
---|---|
VarSet |
addMember(IVarDef var)
Adds an input variable to this set.
|
IVarDef |
find(String... path)
Returns the descendant variable with the given name path, relative to this variable.
|
protected int |
findMember(String name)
Returns the index of the member variable with the given name.
|
IVarDef |
getDescendant(String pathName)
Returns the descendant variable with the given path, relative to this set.
|
IVarDef |
getMember(String name)
Returns the member variable with the given name.
|
Iterator<IVarDef> |
getMembers()
If this variable has member variables, returns an iterator for the member variable list.
|
Iterator<VarValueDef> |
getValues()
If this variable defines a value set, returns an iterator for the value set.
|
VarSet |
removeMember(String name)
Removes an input variable from this set.
|
void |
setCondition(ICondition condition)
Changes the condition that defines when this element is applicable.
|
void |
setParent(VarSet parent)
Changes the parent of this variable.
|
equals, getEffectiveCondition, getName, getNextSeqNum, getParent, getPathName, getPosition, getSeqNum, getType, hashCode, isOptional, setName, 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 VarSet()
public VarSet(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 void setParent(VarSet parent)
setParent
in interface IVarDef
setParent
in class AbstractVarDef
public void setCondition(ICondition condition)
setCondition
in class AbstractVarDef
public IVarDef find(String... path)
find
in interface IVarDef
find
in class AbstractVarDef
public IVarDef getDescendant(String pathName)
protected int findMember(String name)
Copyright © 2024 The Cornutum Project. All rights reserved.