jbpm-form-modeler-api 1.0-SNAPSHOT

org.jbpm.formModeler.api.model
Class PojoDataHolder

java.lang.Object
  extended by org.jbpm.formModeler.api.model.PojoDataHolder
All Implemented Interfaces:
Comparable, DataHolder

public class PojoDataHolder
extends Object
implements DataHolder, Comparable


Constructor Summary
PojoDataHolder(String id, String className, String renderColor)
           
 
Method Summary
 int compareTo(Object o)
           
 DataFieldHolder getDataFieldHolderById(String fieldHolderId)
           
 Set<DataFieldHolder> getFieldHolders()
           
 String getId()
           
 String getInfo()
           
protected  String getPropertyName(String methodName, Class returnType, Class[] parameterTypes)
           
 String getRenderColor()
           
 String getTypeCode()
           
protected  boolean isValidReturnType(String returnType)
           
 void load(Map<String,Object> values)
           
 Object readValue(String id)
           
 void writeValue(String id, Object value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PojoDataHolder

public PojoDataHolder(String id,
                      String className,
                      String renderColor)
Method Detail

getId

public String getId()
Specified by:
getId in interface DataHolder

load

public void load(Map<String,Object> values)
Specified by:
load in interface DataHolder

writeValue

public void writeValue(String id,
                       Object value)
Specified by:
writeValue in interface DataHolder

readValue

public Object readValue(String id)
Specified by:
readValue in interface DataHolder

getFieldHolders

public Set<DataFieldHolder> getFieldHolders()
Specified by:
getFieldHolders in interface DataHolder

getTypeCode

public String getTypeCode()
Specified by:
getTypeCode in interface DataHolder

compareTo

public int compareTo(Object o)
Specified by:
compareTo in interface Comparable

getInfo

public String getInfo()
Specified by:
getInfo in interface DataHolder

getDataFieldHolderById

public DataFieldHolder getDataFieldHolderById(String fieldHolderId)
Specified by:
getDataFieldHolderById in interface DataHolder

isValidReturnType

protected boolean isValidReturnType(String returnType)
                             throws Exception
Throws:
Exception

getPropertyName

protected String getPropertyName(String methodName,
                                 Class returnType,
                                 Class[] parameterTypes)

getRenderColor

public String getRenderColor()
Specified by:
getRenderColor in interface DataHolder

jbpm-form-modeler-api 1.0-SNAPSHOT

Copyright © 2001-2013 JBoss by Red Hat. All Rights Reserved.