|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--gecco.server.startup.PropertyTree
Description of the Class
Field Summary | |
private LinkedList |
parents
Description of the Field |
private DeepCloneHashMap |
propertyMap
Description of the Field |
private DeepCloneHashMap |
variableMap
Description of the Field |
Constructor Summary | |
|
PropertyTree()
Constructor for the PropertyTree object |
private |
PropertyTree(PropertyTree parent)
Constructor for the PropertyTree object |
Method Summary | |
DeepCloneable |
deepClone()
Description of the Method |
List |
get(String property)
Description of the Method |
List |
getDoubleList(String property)
Gets the DoubleList attribute of the PropertyTree object |
List |
getIntegerList(String property)
Gets the IntegerList attribute of the PropertyTree object |
Object |
getSingle(String property)
Gets the Single attribute of the PropertyTree object |
double |
getSingleDouble(String property)
Gets the SingleDouble attribute of the PropertyTree object |
int |
getSingleInt(String property)
Gets the SingleInt attribute of the PropertyTree object |
String |
getSingleString(String property)
Gets the SingleString attribute of the PropertyTree object |
PropertyTree |
getSingleSubtree(String property)
Gets the SingleSubtree attribute of the PropertyTree object |
List |
getStringList(String property)
Gets the StringList attribute of the PropertyTree object |
List |
getSubtreeList(String property)
Gets the SubtreeList attribute of the PropertyTree object |
List |
getVariable(String variable)
Gets the Variable attribute of the PropertyTree object |
private void |
parse(StreamTokenizer tok)
Description of the Method |
private void |
parseProperty(StreamTokenizer tok)
Description of the Method |
private Object |
parseSingleValue(StreamTokenizer tok)
Description of the Method |
void |
parseStream(Reader in)
Description of the Method |
private Object |
parseValue(StreamTokenizer tok)
Description of the Method |
void |
put(String property,
List values)
Description of the Method |
void |
put(String property,
PropertyTree subtree)
Description of the Method |
void |
put(String property,
String value)
Description of the Method |
void |
putAll(PropertyTree other)
Description of the Method |
private void |
putObject(String property,
Object value)
Description of the Method |
private void |
putObjectVariable(String variable,
Object value)
Description of the Method |
void |
putVariable(String variable,
List values)
Description of the Method |
void |
putVariable(String variable,
PropertyTree subtree)
Description of the Method |
void |
putVariable(String variable,
String value)
Description of the Method |
String |
toString()
Description of the Method |
Methods inherited from class java.lang.Object |
|
Field Detail |
private DeepCloneHashMap propertyMap
private DeepCloneHashMap variableMap
private LinkedList parents
Constructor Detail |
public PropertyTree()
private PropertyTree(PropertyTree parent)
parent
- Description of ParameterMethod Detail |
public List get(String property)
property
- Description of Parameterpublic List getVariable(String variable)
variable
- Description of Parameterpublic Object getSingle(String property) throws ParseErrorException
property
- Description of ParameterParseErrorException
- Description of Exceptionpublic int getSingleInt(String property) throws ParseErrorException
property
- Description of ParameterParseErrorException
- Description of Exceptionpublic double getSingleDouble(String property) throws ParseErrorException
property
- Description of ParameterParseErrorException
- Description of Exceptionpublic String getSingleString(String property) throws ParseErrorException
property
- Description of ParameterParseErrorException
- Description of Exceptionpublic PropertyTree getSingleSubtree(String property) throws ParseErrorException
property
- Description of ParameterParseErrorException
- Description of Exceptionpublic List getIntegerList(String property) throws ParseErrorException
property
- Description of ParameterParseErrorException
- Description of Exceptionpublic List getDoubleList(String property) throws ParseErrorException
property
- Description of ParameterParseErrorException
- Description of Exceptionpublic List getStringList(String property) throws ParseErrorException
property
- Description of ParameterParseErrorException
- Description of Exceptionpublic List getSubtreeList(String property) throws ParseErrorException
property
- Description of ParameterParseErrorException
- Description of Exceptionpublic void put(String property, String value)
property
- Description of Parametervalue
- Description of Parameterpublic void put(String property, PropertyTree subtree)
property
- Description of Parametersubtree
- Description of Parameterpublic void put(String property, List values)
property
- Description of Parametervalues
- Description of Parameterpublic void putVariable(String variable, String value)
variable
- Description of Parametervalue
- Description of Parameterpublic void putVariable(String variable, PropertyTree subtree)
variable
- Description of Parametersubtree
- Description of Parameterpublic void putVariable(String variable, List values)
variable
- Description of Parametervalues
- Description of Parameterpublic void putAll(PropertyTree other)
other
- Description of Parameterpublic void parseStream(Reader in) throws IOException, SyntaxErrorException
in
- Description of ParameterIOException
- Description of ExceptionSyntaxErrorException
- Description of Exceptionpublic String toString()
toString
in class Object
public DeepCloneable deepClone()
deepClone
in interface DeepCloneable
private void putObject(String property, Object value)
property
- Description of Parametervalue
- Description of Parameterprivate void putObjectVariable(String variable, Object value)
variable
- Description of Parametervalue
- Description of Parameterprivate void parse(StreamTokenizer tok) throws IOException, SyntaxErrorException
tok
- Description of ParameterIOException
- Description of ExceptionSyntaxErrorException
- Description of Exceptionprivate void parseProperty(StreamTokenizer tok) throws IOException, SyntaxErrorException
tok
- Description of ParameterIOException
- Description of ExceptionSyntaxErrorException
- Description of Exceptionprivate Object parseValue(StreamTokenizer tok) throws IOException, SyntaxErrorException
tok
- Description of ParameterIOException
- Description of ExceptionSyntaxErrorException
- Description of Exceptionprivate Object parseSingleValue(StreamTokenizer tok) throws IOException, SyntaxErrorException
tok
- Description of ParameterIOException
- Description of ExceptionSyntaxErrorException
- Description of Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |