org.sharengo.wikitty
Class BusinessEntityBean

java.lang.Object
  extended by org.sharengo.wikitty.BusinessEntityBean
All Implemented Interfaces:
Serializable, Cloneable, BusinessEntity
Direct Known Subclasses:
LabelBean, TreeNodeBean

public class BusinessEntityBean
extends Object
implements BusinessEntity

Version:
$Revision: 1 $ Last update: $Date: 2010-04-16 10:29:38 +0200 (ven., 16 avril 2010) $ by : $Author: echatellier $
Author:
poussin
See Also:
Serialized Form

Field Summary
protected  Map<String,WikittyExtension> extensions
          Map is LinkedHashMap to maintains order like user want key: extension name value: extension definition
protected  Map<String,Object> fieldValue
          key: field name prefixed by extension name (dot separator) value: value of field
protected  String id
           
protected  String version
           
 
Constructor Summary
BusinessEntityBean()
           
 
Method Summary
 Collection<String> getExtensionFields(String ext)
          Return list of all field for this object
 Collection<String> getExtensionNames()
          Return list of all extension for this object
 Object getField(String ext, String fieldName)
          Return field value for the specifique extension and field
 FieldType getFieldType(String ext, String fieldName)
          Return the field type
 String getWikittyId()
           
 String getWikittyVersion()
           
 void setField(String ext, String fieldName, Object value)
          set field value for the specifique extension and field.
 void setWikittyVersion(String version)
          Only framework can use this method
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

id

protected String id

version

protected String version

extensions

protected Map<String,WikittyExtension> extensions
Map is LinkedHashMap to maintains order like user want key: extension name value: extension definition


fieldValue

protected Map<String,Object> fieldValue
key: field name prefixed by extension name (dot separator) value: value of field

Constructor Detail

BusinessEntityBean

public BusinessEntityBean()
Method Detail

getWikittyId

public String getWikittyId()
Specified by:
getWikittyId in interface BusinessEntity

getWikittyVersion

public String getWikittyVersion()
Specified by:
getWikittyVersion in interface BusinessEntity

setWikittyVersion

public void setWikittyVersion(String version)
Description copied from interface: BusinessEntity
Only framework can use this method

Specified by:
setWikittyVersion in interface BusinessEntity

getExtensionNames

public Collection<String> getExtensionNames()
Description copied from interface: BusinessEntity
Return list of all extension for this object

Specified by:
getExtensionNames in interface BusinessEntity
Returns:

getExtensionFields

public Collection<String> getExtensionFields(String ext)
Description copied from interface: BusinessEntity
Return list of all field for this object

Specified by:
getExtensionFields in interface BusinessEntity
Returns:

getField

public Object getField(String ext,
                       String fieldName)
Description copied from interface: BusinessEntity
Return field value for the specifique extension and field

Specified by:
getField in interface BusinessEntity
Returns:

setField

public void setField(String ext,
                     String fieldName,
                     Object value)
Description copied from interface: BusinessEntity
set field value for the specifique extension and field. This method don't check the type of value for this field.

Specified by:
setField in interface BusinessEntity

getFieldType

public FieldType getFieldType(String ext,
                              String fieldName)
Description copied from interface: BusinessEntity
Return the field type

Specified by:
getFieldType in interface BusinessEntity
Returns:


Copyright © 2009-2010 CodeLutin. All Rights Reserved.