public final class PropertyModule extends Object implements com.google.inject.Module, Serializable, Comparable<PropertyModule>
PropertyModule is a decorator for a Module that enables
property methods.| Modifier and Type | Field and Description |
|---|---|
int |
id |
| Constructor and Description |
|---|
PropertyModule(com.google.inject.Module module)
Constructs a
PropertyModule that decorates a Module. |
| Modifier and Type | Method and Description |
|---|---|
PropertyModule |
clone() |
int |
compareTo(PropertyModule other) |
void |
configure(com.google.inject.Binder binder) |
boolean |
equals(Object obj) |
Node |
getConfiguration(Document document)
Returns the configuration of the
PropertyModule as XML
Node. |
com.google.inject.Module |
getModule()
Returns the decorated
Module. |
List<Property> |
getProperties()
Returns the properties.
|
Property |
getProperty(String name)
Returns the
Property with the specified name. |
int |
hashCode() |
void |
setConfiguration(Node node)
Configures a
PropertyModule with an XML Node. |
static Object |
toEnumElement(String name,
Class<? extends Enum> type)
Converts a String to an element of a given enumeration.
|
String |
toString() |
public PropertyModule(com.google.inject.Module module)
PropertyModule that decorates a Module.module - the decorated modulepublic static Object toEnumElement(String name, Class<? extends Enum> type)
name - the name of the elementtype - the enumeration typepublic void configure(com.google.inject.Binder binder)
configure in interface com.google.inject.Modulepublic com.google.inject.Module getModule()
Module.public Property getProperty(String name)
Property with the specified name.name - the name of the propertynamepublic void setConfiguration(Node node)
PropertyModule with an XML Node.node - the configuration as XML nodegetConfiguration(org.w3c.dom.Document)public Node getConfiguration(Document document)
PropertyModule as XML
Node.document - the XML documentsetConfiguration(org.w3c.dom.Node)public PropertyModule clone()
public int compareTo(PropertyModule other)
compareTo in interface Comparable<PropertyModule>