|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.torque.generator.option.Options
public class Options
A Store for all options.
Constructor Summary | |
---|---|
Options()
|
Method Summary | |
---|---|
void |
addGlobalOptions(Collection<Option> options)
Adds several options with global scope. |
boolean |
containsKey(QualifiedName key)
Checks if an option with the given key exists in any scope. |
Options |
getAllInHierarchy(Namespace namespace)
Returns all mappings which live in the given namespace. |
Map<QualifiedName,Option> |
getGlobalScope()
Returns a map containing all options in the global scope. |
Options |
getInHierarchy(Namespace namespace)
Returns all mappings which live in the given name space. |
Option |
getInHierarchy(QualifiedName key)
Returns the value of the option which is closest in Hierarchy. |
Collection<QualifiedName> |
keySet()
Returns all options in a set. |
void |
setGlobalOption(Option option)
Sets an option with global scope. |
String |
toString()
|
Collection<Option> |
values()
Returns all options in a Collection. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Options()
Method Detail |
---|
public void setGlobalOption(Option option)
option
- the option to set, not null.
NullPointerException
- if option is null.public void addGlobalOptions(Collection<Option> options)
options
- the option to add, not null, may not contain null.
NullPointerException
- if options is null or contains null.public Option getInHierarchy(QualifiedName key)
key
- the key for the option which value should be retrieved.
public Options getInHierarchy(Namespace namespace)
namespace
- the name space from which the returned options should
be visible.
public Options getAllInHierarchy(Namespace namespace)
namespace
- the name space from which the returned options should
be visible.
public Collection<Option> values()
public Collection<QualifiedName> keySet()
public Map<QualifiedName,Option> getGlobalScope()
public boolean containsKey(QualifiedName key)
key
- the key to check.
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |