org.granite.generator.as3.reflect
Class JavaBean

java.lang.Object
  extended by org.granite.generator.as3.reflect.JavaAbstractType
      extended by org.granite.generator.as3.reflect.JavaBean
All Implemented Interfaces:
ClientTyped, JavaType
Direct Known Subclasses:
JavaEntityBean, JavaValidatableBean

public class JavaBean
extends JavaAbstractType

Author:
Franck WOLFF

Nested Class Summary
 
Nested classes/interfaces inherited from class org.granite.generator.as3.reflect.JavaAbstractType
JavaAbstractType.GenerationType
 
Nested classes/interfaces inherited from interface org.granite.generator.as3.reflect.JavaType
JavaType.Kind
 
Field Summary
protected  ClientType clientSuperclass
           
protected  Set<JavaImport> imports
           
protected  List<JavaInterface> interfaces
           
protected  List<JavaProperty> interfacesProperties
           
protected  List<JavaProperty> lazyProperties
           
protected  Map<String,JavaProperty> properties
           
protected  JavaType superclass
           
protected  JavaProperty uid
           
 
Fields inherited from class org.granite.generator.as3.reflect.JavaAbstractType
clientType, generationType, kind, provider, type, url
 
Constructor Summary
JavaBean(JavaTypeFactory provider, Class<?> type, URL url)
           
 
Method Summary
protected  void addToImports(JavaImport javaImport)
           
protected  void addToImports(Set<JavaImport> javaImports)
           
 ClientType getAs3Superclass()
           
 ClientType getClientSuperclass()
           
 Set<JavaImport> getImports()
           
 List<JavaInterface> getInterfaces()
           
 List<JavaProperty> getInterfacesProperties()
           
 Collection<JavaProperty> getProperties()
           
 JavaType getSuperclass()
           
 JavaProperty getUid()
           
 boolean hasEnumProperty()
           
 boolean hasInterfaces()
           
 boolean hasInterfacesProperties()
           
 boolean hasSuperclass()
           
 boolean hasUid()
           
protected  SortedMap<String,JavaProperty> initProperties()
           
protected  SortedMap<String,JavaProperty> initProperties(Class<?> type, ParameterizedType parentGenericType)
           
 boolean isAnnotationPresent(Class<? extends Annotation> annotation)
           
 boolean isLazy(JavaProperty property)
           
 
Methods inherited from class org.granite.generator.as3.reflect.JavaAbstractType
getAs3Type, getClientType, getGenerationType, getKind, getLastModified, getName, getPackage, getPackageName, getPropertyDescriptors, getProvider, getQualifiedName, getSortedUnmodifiableList, getType, getUrl, isBean, isEntity, isEnum, isGenerated, isInterface, isRemoteDestination, isWithBase, removeNull
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

imports

protected final Set<JavaImport> imports

superclass

protected final JavaType superclass

clientSuperclass

protected final ClientType clientSuperclass

interfaces

protected final List<JavaInterface> interfaces

interfacesProperties

protected final List<JavaProperty> interfacesProperties

properties

protected final Map<String,JavaProperty> properties

uid

protected final JavaProperty uid

lazyProperties

protected final List<JavaProperty> lazyProperties
Constructor Detail

JavaBean

public JavaBean(JavaTypeFactory provider,
                Class<?> type,
                URL url)
Method Detail

getImports

public Set<JavaImport> getImports()

addToImports

protected void addToImports(JavaImport javaImport)

addToImports

protected void addToImports(Set<JavaImport> javaImports)

hasSuperclass

public boolean hasSuperclass()

getSuperclass

public JavaType getSuperclass()

getAs3Superclass

public ClientType getAs3Superclass()

getClientSuperclass

public ClientType getClientSuperclass()

hasInterfaces

public boolean hasInterfaces()

getInterfaces

public List<JavaInterface> getInterfaces()

hasInterfacesProperties

public boolean hasInterfacesProperties()

getInterfacesProperties

public List<JavaProperty> getInterfacesProperties()

getProperties

public Collection<JavaProperty> getProperties()

isAnnotationPresent

public boolean isAnnotationPresent(Class<? extends Annotation> annotation)

hasUid

public boolean hasUid()

getUid

public JavaProperty getUid()

isLazy

public boolean isLazy(JavaProperty property)

hasEnumProperty

public boolean hasEnumProperty()

initProperties

protected SortedMap<String,JavaProperty> initProperties()

initProperties

protected SortedMap<String,JavaProperty> initProperties(Class<?> type,
                                                        ParameterizedType parentGenericType)