|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.phoenix_int.aserver.PHXGroup
public class PHXGroup
A utility class for holding sub-variables. Internally used to manage groups of variables within the PHXSimpleSelfManager class. To create your own groups, use the PHXSimpleSelfManager.addVariable() function.
PHXSimpleSelfManager| Constructor Summary | |
|---|---|
PHXGroup(java.lang.String name)
|
|
| Method Summary | |
|---|---|
void |
addGroup(PHXGroup group)
adds a child group to the group |
void |
addVariable(PHXVariableInfo varInfo)
stores a variable in the group. |
boolean |
contains(PHXVariableInfo varInfo)
checks to see if a variable exists in this group |
PHXGroup |
getGroup(java.lang.String childName)
retrieves a child group. |
java.util.Enumeration |
getGroups()
retrieves the Enumeration of subgroups in the group. |
java.lang.String |
getName()
retrieves the name of the group |
int |
getNumGroups()
retrieves the number of subgroups in the group. |
int |
getNumVariables()
retrieves the number of variables in the group. |
PHXVariableInfo |
getVariableInfo(java.lang.String varName)
retrieves a variable from the group. |
java.util.Enumeration |
getVariables()
retrieves the Enumeration of variables in the group. |
PHXGroup |
makeGroup(java.lang.String childName)
creates a child group. |
void |
removeAllGroups()
remove all groups from the group |
void |
removeAllVariables()
removes all variables from the group |
void |
removeGroup(java.lang.String childName)
remove a child group. |
void |
removeVariable(PHXVariableInfo varInfo)
removes a variable |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PHXGroup(java.lang.String name)
throws PHXInvalidNameException
name - the name of the group
PHXInvalidNameException| Method Detail |
|---|
public java.lang.String getName()
public void addGroup(PHXGroup group)
throws PHXNameAlreadyInUseException,
PHXInvalidNameException
group - the child group
PHXNameAlreadyInUseException
PHXInvalidNameException
public PHXGroup getGroup(java.lang.String childName)
throws PHXNoSuchObjectException
childName - the name of the child group
PHXNoSuchObjectException - thrown if the child group is not found
public PHXGroup makeGroup(java.lang.String childName)
throws PHXNameAlreadyInUseException,
PHXInvalidNameException
childName - the name of the child group
PHXNameAlreadyInUseException
PHXInvalidNameException
public void removeGroup(java.lang.String childName)
throws java.lang.Exception
childName - the name of the child group
java.lang.Exceptionpublic int getNumGroups()
public java.util.Enumeration getGroups()
public void addVariable(PHXVariableInfo varInfo)
throws PHXNameAlreadyInUseException,
PHXInvalidNameException
varInfo - the variable info structure
PHXNameAlreadyInUseException
PHXInvalidNameException
public PHXVariableInfo getVariableInfo(java.lang.String varName)
throws PHXNoSuchObjectException
varName - the name of the variable to get
PHXNoSuchObjectException - thrown if the specified variable is not foundpublic boolean contains(PHXVariableInfo varInfo)
varName - the name of the variable to check
public int getNumVariables()
public java.util.Enumeration getVariables()
public void removeAllVariables()
public void removeAllGroups()
public void removeVariable(PHXVariableInfo varInfo)
varInfo - the variable structure to removepublic java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||