|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.pipet.api.ModuleAttributes
public class ModuleAttributes
An object holding the module's configuration. The configuration consists of a set of name/value pairs. The configuration may be hierarchical, which means that name/value pairs may be inherited from a parent ModuleAttributes object.
Nested Class Summary | |
---|---|
static interface |
ModuleAttributes.ChangeListener
|
Field Summary | |
---|---|
static ModuleAttributes |
EMPTY
|
Constructor Summary | |
---|---|
ModuleAttributes()
|
|
ModuleAttributes(Map<String,net.sf.qxs.types.UntypedValue> atts)
|
|
ModuleAttributes(ModuleAttributes parent)
|
|
ModuleAttributes(ModuleAttributes parent,
Map<String,net.sf.qxs.types.UntypedValue> atts)
|
Method Summary | |
---|---|
void |
addChangeListener(ModuleAttributes.ChangeListener l)
|
protected void |
changed()
|
net.sf.qxs.types.UntypedValue |
getDefaultValue(String key)
Returns the value which would have been returned by getValue(String) if this ModuleAttributes object has no value associated with key. |
ModuleAttributes |
getInterfaceRoot()
|
ModuleAttributes |
getParent()
Returns the parent of this object (may be null). |
ModuleDefinition |
getPipelineModule()
|
ModuleAttributes |
getRoot()
Returns the root of this object, which is this, if this has no parent; or the root of the parent, otherwise. |
net.sf.qxs.types.UntypedValue |
getValue(String key)
Convenience method for getValue(String,boolean) |
net.sf.qxs.types.UntypedValue |
getValue(String key,
boolean inherit)
Returns the value associated with key. |
int |
hashCode()
|
boolean |
hasValue(String key)
|
boolean |
hasValue(String key,
boolean inherit)
|
void |
setValue(String key,
net.sf.qxs.types.UntypedValue value)
Assigns a value to a key. |
Map<String,net.sf.qxs.types.UntypedValue> |
toMap(boolean inherit)
Returns a Map representation of this ModuleAttributes object. |
int |
valueHash()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final ModuleAttributes EMPTY
Constructor Detail |
---|
public ModuleAttributes()
public ModuleAttributes(ModuleAttributes parent)
public ModuleAttributes(Map<String,net.sf.qxs.types.UntypedValue> atts)
public ModuleAttributes(ModuleAttributes parent, Map<String,net.sf.qxs.types.UntypedValue> atts)
Method Detail |
---|
public int hashCode()
hashCode
in class Object
public int valueHash()
public ModuleAttributes getParent()
public ModuleAttributes getRoot()
public ModuleDefinition getPipelineModule()
public ModuleAttributes getInterfaceRoot()
public boolean hasValue(String key)
public boolean hasValue(String key, boolean inherit)
public net.sf.qxs.types.UntypedValue getValue(String key)
getValue(String,boolean)
public net.sf.qxs.types.UntypedValue getValue(String key, boolean inherit)
key
- A key value.inherit
- if true, the parent's value is returned if key is not present in this ModuleAttributes object; if false, null is returned in that case.
public net.sf.qxs.types.UntypedValue getDefaultValue(String key)
public void setValue(String key, net.sf.qxs.types.UntypedValue value)
key
- The key.value
- The value.public Map<String,net.sf.qxs.types.UntypedValue> toMap(boolean inherit)
public void addChangeListener(ModuleAttributes.ChangeListener l)
protected void changed()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |