|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.spicefactory.cinnamon.io.mapping.AbstractClassMapping
public abstract class AbstractClassMapping
Abstract base class for all ClassMapping implementations.
| Constructor Summary | |
|---|---|
protected |
AbstractClassMapping(String alias,
String actionScriptClass,
Class<?> javaClass,
Class<?> javaFactory,
ObjectEncoding encoding)
Creates a new ClassMapping instance. |
| Method Summary | |
|---|---|
String |
getActionScriptClass()
Returns the fully qualified name of the ActionScript 3 class for this mapping. |
String |
getAlias()
Returns the alias that was registered for this mapping. |
protected ObjectEncoding |
getEncoding()
Returns the object encoding for this mapping. |
Class<?> |
getJavaClass()
Returns the Java class for this mapping. |
protected Class<?> |
getJavaFactory()
Returns the (optional) Java factory for this mapping. |
protected String[] |
getPropertyNames()
Returns the property names of the mapped class. |
protected void |
setPropertyNames(String[] propertyNames)
Sets the property names of the mapped class. |
String |
toString()
|
void |
writeClassDescriptor(Object instance,
AMFOutput output)
Writes the class descriptor for the specified object to the given AMFOutput. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.spicefactory.cinnamon.io.mapping.ClassMapping |
|---|
init, newJavaInstance, readObject, writeObject |
| Constructor Detail |
|---|
protected AbstractClassMapping(String alias,
String actionScriptClass,
Class<?> javaClass,
Class<?> javaFactory,
ObjectEncoding encoding)
alias - the alias for this mappingactionScriptClass - the fully qualified ActionScript class namejavaClass - the Java classjavaFactory - the (optional) Java factoryencoding - the object encoding for this mapping| Method Detail |
|---|
protected void setPropertyNames(String[] propertyNames)
propertyNames - the property names of the mapped classpublic String getAlias()
ClassMappingregisterClassAlias
or the [RemoteClass] metadata tag.
getAlias in interface ClassMappingpublic String getActionScriptClass()
ClassMapping
getActionScriptClass in interface ClassMappingpublic Class<?> getJavaClass()
ClassMapping
getJavaClass in interface ClassMappingprotected Class<?> getJavaFactory()
protected ObjectEncoding getEncoding()
protected String[] getPropertyNames()
public void writeClassDescriptor(Object instance,
AMFOutput output)
ClassMapping
writeClassDescriptor in interface ClassMappinginstance - the object a class descriptor should be written foroutput - the output to write topublic String toString()
toString in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||