|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.pivot.beans.NamespaceBinding
public class NamespaceBinding
Represents a binding relationship between a source property and a target property within a namespace.
Nested Class Summary | |
---|---|
static interface |
NamespaceBinding.BindMapping
Namespace bind mapping interface. |
Constructor Summary | |
---|---|
NamespaceBinding(Map<String,Object> namespace,
String sourcePath,
String targetPath)
|
|
NamespaceBinding(Map<String,Object> namespace,
String sourcePath,
String targetPath,
NamespaceBinding.BindMapping bindMapping)
|
Method Summary | |
---|---|
void |
bind()
Binds the source property to the target property. |
boolean |
equals(Object o)
|
NamespaceBinding.BindMapping |
getBindMapping()
Returns the bind mapping. |
Map<String,Object> |
getNamespace()
Returns the namespace. |
Object |
getSource()
Returns the source object. |
String |
getSourceKey()
Returns the name of the source property. |
String |
getSourcePath()
Returns the path to the source property. |
Object |
getTarget()
Returns the target object. |
String |
getTargetKey()
Returns the name of the target property. |
String |
getTargetPath()
Returns the path to the target property. |
Object |
getTransformedSourceValue()
Returns the current source value with any bind mapping applied. |
int |
hashCode()
|
void |
unbind()
Unbinds the source property from the target property. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NamespaceBinding(Map<String,Object> namespace, String sourcePath, String targetPath)
public NamespaceBinding(Map<String,Object> namespace, String sourcePath, String targetPath, NamespaceBinding.BindMapping bindMapping)
Method Detail |
---|
public Map<String,Object> getNamespace()
public String getSourcePath()
public Object getSource()
public String getSourceKey()
public String getTargetPath()
public Object getTarget()
public String getTargetKey()
public NamespaceBinding.BindMapping getBindMapping()
public Object getTransformedSourceValue()
public void bind()
public void unbind()
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |