org.granite.messaging.amf.io.util
Class JavaClassDescriptor

java.lang.Object
  extended by org.granite.messaging.amf.io.util.JavaClassDescriptor
Direct Known Subclasses:
DefaultGroovyClassDescriptor, DefaultJavaClassDescriptor

public abstract class JavaClassDescriptor
extends Object

Author:
Franck WOLFF

Field Summary
protected  Converters converters
           
protected  byte encoding
           
protected  Externalizer externalizer
           
protected  String name
           
protected  List<Property> properties
           
protected  Class<?> type
           
 
Constructor Summary
protected JavaClassDescriptor(Class<?> type)
           
 
Method Summary
static String getClassName(Class<?> clazz)
           
 byte getEncoding()
           
 Externalizer getExternalizer()
           
 String getName()
           
 int getPropertiesCount()
           
 String getPropertyName(int index)
           
 Object getPropertyValue(int index, Object instance)
           
 Class<?> getType()
           
protected abstract  List<Property> introspectProperties()
           
 boolean isDynamic()
           
 boolean isExternalizable()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

type

protected final Class<?> type

name

protected final String name

externalizer

protected final Externalizer externalizer

converters

protected final Converters converters

encoding

protected final byte encoding

properties

protected final List<Property> properties
Constructor Detail

JavaClassDescriptor

protected JavaClassDescriptor(Class<?> type)
Method Detail

introspectProperties

protected abstract List<Property> introspectProperties()

getClassName

public static String getClassName(Class<?> clazz)

getType

public Class<?> getType()

getName

public String getName()

getExternalizer

public Externalizer getExternalizer()

getEncoding

public byte getEncoding()

isExternalizable

public boolean isExternalizable()

isDynamic

public boolean isDynamic()

getPropertiesCount

public int getPropertiesCount()

getPropertyName

public String getPropertyName(int index)

getPropertyValue

public Object getPropertyValue(int index,
                               Object instance)