|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.collation.platform.model.InterfaceIntrospector
public class InterfaceIntrospector
Java Bean Introspector for ModelObject interfaces.
Field Summary | |
---|---|
protected static com.collation.platform.logger.Logger |
log_
|
Constructor Summary | |
---|---|
InterfaceIntrospector()
|
Method Summary | |
---|---|
static java.util.Set |
getBaseInterfaces(java.lang.Class cls)
|
static java.lang.String |
getCollationSubtype(ModelObject obj)
Returns the Collation subtype of the given ModelObject |
static java.lang.String |
getCollationType(ModelObject obj)
Returns the Collation type of the given ModelObject |
static java.lang.Class |
getModelObjectInterface(java.lang.Class cls)
Returns a subclass of the ModelObject interface that is implemented by
the given class. |
static java.lang.Class |
getModelObjectInterface(java.lang.Object obj)
Returns a subclass of the ModelObject interface that is implemented by
the given object. |
static java.util.Set |
getModelObjectInterfaces(java.lang.Class cls)
Returns a set of ModelObject interface that is implemented by or is a base class of an interface implemented by
the given class. |
static java.beans.PropertyDescriptor[] |
getPropertyDescriptors(java.lang.Class cls)
Returns an array of PropertyDescriptor s that the given class implements. |
static java.beans.PropertyDescriptor[] |
getPropertyDescriptors(java.lang.Class cls,
java.lang.Class baseCls)
Returns an array of PropertyDescriptor s that the given class implements. |
static boolean |
hasCollationSubtype(ModelObject obj)
Returns true if the given ModelObject has a Collation subtype |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final com.collation.platform.logger.Logger log_
Constructor Detail |
---|
public InterfaceIntrospector()
Method Detail |
---|
public static java.lang.Class getModelObjectInterface(java.lang.Object obj)
ModelObject
interface that is implemented by
the given object. Assumes the object implements one and only one such interface.
obj
- the object to be inspected
null
if the object does
not implement any such interfacepublic static java.lang.Class getModelObjectInterface(java.lang.Class cls)
ModelObject
interface that is implemented by
the given class. Assumes the class implements one and only one such interface.
cls
- the class to be inspected
null
if the class does
not implement any such interfacepublic static java.util.Set getModelObjectInterfaces(java.lang.Class cls)
ModelObject
interface that is implemented by or is a base class of an interface implemented by
the given class.
cls
- the class to be inspected
public static java.util.Set getBaseInterfaces(java.lang.Class cls)
public static java.lang.String getCollationType(ModelObject obj)
obj
- the object
public static boolean hasCollationSubtype(ModelObject obj)
obj
- the object
public static java.lang.String getCollationSubtype(ModelObject obj)
obj
- the object
public static java.beans.PropertyDescriptor[] getPropertyDescriptors(java.lang.Class cls) throws java.beans.IntrospectionException
PropertyDescriptor
s that the given class implements.
cls
- the class to be inspected
PropertyDescriptor
s
java.beans.IntrospectionException
public static java.beans.PropertyDescriptor[] getPropertyDescriptors(java.lang.Class cls, java.lang.Class baseCls) throws java.beans.IntrospectionException
PropertyDescriptor
s that the given class implements.
Include all super classes, up to the given class.
cls
- the class to be inspected
PropertyDescriptor
s
java.beans.IntrospectionException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |