public class Options extends Object
| Constructor and Description | 
|---|
| Options() | 
| Modifier and Type | Method and Description | 
|---|---|
| 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. | 
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.Copyright © 2000–2020 The Apache Software Foundation. All rights reserved.