|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.gentics.api.lib.resolving.SetHelper
public class SetHelper
Helper class to execute assignment commands on Resolvable objects or Maps.
Constructor Summary | |
---|---|
SetHelper()
Create an instance of the SetHelper. |
Method Summary | |
---|---|
void |
addBaseObject(String objectName,
Object object)
Add a new base object to the SetHelper. |
protected void |
addToProperty(String propertyPath,
Object value)
add the given value to the multivalue property |
boolean |
executeCommand(String setCommand)
Parse and execute the given setCommand |
protected Object |
getProperty(String propertypath)
Get the property by its path. |
protected void |
setProperty(String propertyPath,
Object value)
set the property with given path |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SetHelper()
Method Detail |
---|
public void addBaseObject(String objectName, Object object)
objectName
- name of the base objectobject
- base object (Resolvable or Map)public boolean executeCommand(String setCommand)
setCommand
- a set command of the form portal.blablabla.whatever =
view.blablabla
protected Object getProperty(String propertypath)
propertypath
- path to the property
protected void setProperty(String propertyPath, Object value)
propertyPath
- path to the property to setvalue
- new value of the propertyprotected void addToProperty(String propertyPath, Object value)
propertyPath
- path to the multivalue propertyvalue
- new value to add to the multivalue property
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |