|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opt4j.core.config.PropertyModule
public final class PropertyModule
The PropertyModule is a decorator for a Module that enables
property methods.
| Field Summary | |
|---|---|
protected static int |
c
|
int |
id
|
protected com.google.inject.Module |
module
|
protected java.util.List<Property> |
properties
|
| Constructor Summary | |
|---|---|
PropertyModule(com.google.inject.Module module)
Constructs a PropertyModule that decorates a Module. |
|
| Method Summary | |
|---|---|
PropertyModule |
clone()
|
int |
compareTo(PropertyModule other)
|
void |
configure(com.google.inject.Binder binder)
|
boolean |
equals(java.lang.Object obj)
|
org.w3c.dom.Node |
getConfiguration(org.w3c.dom.Document document)
Returns the configuration of the PropertyModule as XML
Node. |
com.google.inject.Module |
getModule()
Returns the decorated Module. |
java.util.List<Property> |
getProperties()
Returns the properties. |
Property |
getProperty(java.lang.String name)
Returns the Property with the specified name. |
int |
hashCode()
|
void |
setConfiguration(org.w3c.dom.Node node)
Configures a PropertyModule with an XML Node. |
static java.lang.Object |
toEnumElement(java.lang.String name,
java.lang.Class<? extends java.lang.Enum> type)
Converts a String to an element of a given enumeration. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected final com.google.inject.Module module
protected final java.util.List<Property> properties
protected static int c
public final int id
| Constructor Detail |
|---|
public PropertyModule(com.google.inject.Module module)
PropertyModule that decorates a Module.
module - the decorated module| Method Detail |
|---|
public static java.lang.Object toEnumElement(java.lang.String name,
java.lang.Class<? extends java.lang.Enum> type)
name - the name of the elementtype - the enumeration type
public void configure(com.google.inject.Binder binder)
configure in interface com.google.inject.Modulepublic com.google.inject.Module getModule()
Module.
public Property getProperty(java.lang.String name)
Property with the specified name.
name - the name of the property
namepublic java.util.List<Property> getProperties()
public java.lang.String toString()
toString in class java.lang.Objectpublic void setConfiguration(org.w3c.dom.Node node)
PropertyModule with an XML Node.
node - the configuration as XML nodegetConfiguration(org.w3c.dom.Document)public org.w3c.dom.Node getConfiguration(org.w3c.dom.Document document)
PropertyModule as XML
Node.
document - the XML document
setConfiguration(org.w3c.dom.Node)public PropertyModule clone()
clone in class java.lang.Objectpublic int compareTo(PropertyModule other)
compareTo in interface java.lang.Comparable<PropertyModule>public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||