|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.spicefactory.cinnamon.io.mapping.AbstractClassMapping
org.spicefactory.cinnamon.io.mapping.AbstractPropertyClassMapping
org.spicefactory.cinnamon.io.mapping.AnonymousClassMapping
public class AnonymousClassMapping
AnonymousClassMapping handles ActionScript objects for which no alias was registered in ActionScript.
These objects will be mapped to instances of java.util.Map and the properties of the
ActionScript object will be mapped to the corresponding key/value pairs of the Map, with the keys
representing the name of the property.
An instance of this class will be automatically registered in each Cinnamon application.
| Constructor Summary | |
|---|---|
AnonymousClassMapping()
Creates a new anonymous class mapping. |
|
| Method Summary | |
|---|---|
protected Object |
getProperty(Object instance,
String propertyName)
Reads the property with the given name from the specified target instance. |
void |
init(CinnamonConfig config)
Initialization method that will be called once for each ClassMapping instance at application startup. |
Object |
newJavaInstance()
Creates a new instance of the mapped Java class. |
protected void |
setProperty(Object instance,
String propertyName,
Object value)
Sets the property on the given target instance to the specified value. |
| Methods inherited from class org.spicefactory.cinnamon.io.mapping.AbstractPropertyClassMapping |
|---|
readObject, writeObject |
| Methods inherited from class org.spicefactory.cinnamon.io.mapping.AbstractClassMapping |
|---|
getActionScriptClass, getAlias, getEncoding, getJavaClass, getJavaFactory, getPropertyNames, setPropertyNames, toString, writeClassDescriptor |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AnonymousClassMapping()
| Method Detail |
|---|
public void init(CinnamonConfig config)
ClassMapping
config - the Cinnamon configuration instancepublic Object newJavaInstance()
ClassMapping
protected Object getProperty(Object instance,
String propertyName)
AbstractPropertyClassMapping
getProperty in class AbstractPropertyClassMappinginstance - the instance to read the property frompropertyName - the name of the property
protected void setProperty(Object instance,
String propertyName,
Object value)
AbstractPropertyClassMapping
setProperty in class AbstractPropertyClassMappinginstance - the instance to set the property onpropertyName - the name of the propertyvalue - the new value of the property
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||