public class OptionFlag
extends java.lang.Object
History:
Constructor and Description |
---|
OptionFlag()
Default constructor to create an option flag
|
OptionFlag(java.lang.String name,
int level)
Create an option flag, using the option item in string format and the
level in the option hierarchy structure
|
Modifier and Type | Method and Description |
---|---|
OptionList<OptionFlag> |
GetChild()
Get the child OptionList of current OptinoFlag
|
java.lang.String |
GetFullName()
Get the full name of current optin flag
|
int |
GetLevel()
Get the level of current option flag form option hierarchical structure
|
java.lang.String |
GetName()
Get the name of current option flag
|
OptionFlag |
GetParent()
Get the parent of current OptionFlag
|
void |
PrintInfo()
Print detail information for the current OptionFlag
|
void |
SetChild(OptionList<OptionFlag> child)
Set the child of current optionFlag
|
void |
SetFullName(java.lang.String fullName)
Set the fullname of optionFlag
|
void |
SetParent(OptionFlag parent)
Set the parent of current optionFlag
|
public OptionFlag()
public OptionFlag(java.lang.String name, int level)
name
- long name of optionlevel
- level of option in the optino treepublic void SetParent(OptionFlag parent)
parent
- a parent OptionFlagpublic void SetChild(OptionList<OptionFlag> child)
child
- child optionListOptionList
public void SetFullName(java.lang.String fullName)
fullName
- full name in a string formatpublic int GetLevel()
public java.lang.String GetName()
public java.lang.String GetFullName()
public OptionFlag GetParent()
public OptionList<OptionFlag> GetChild()
public void PrintInfo()