|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectwt.introspection.ClassInfo
public class ClassInfo
ClassInfo is the class for providing class meta-data
There will be an instance of this class for each modeled
business class that is installed.
Supported API: true
Extendable: false
WTIntrospector,
LinkInfo,
Serialized Form| Method Summary | |
|---|---|
boolean |
equals(Object obj)
Compares two objects for equality. |
wt.introspection.ColumnDescriptor[] |
getAttributeColumnDescriptors(String name)
Return all the ColumnDescriptor's (if any) associated with the named attribute. |
Object[] |
getAttributeValueSet(String name)
Gets the set of valid values for the named attribute. |
Class |
getBusinessClass()
Gets the business class represented by this info instance. |
String |
getClassname()
Gets the class name of the business class represented by this info instance. |
Class |
getConcreteClass()
Gets the instantiable class represented by this info instance. |
DatastoreElementType |
getDatastoreElementType()
Gets the DatastoreElementType of the class. |
ClassInfo[] |
getDescendentInfos()
Gets an array of ClassInfos of all the descendent classes. |
ClassInfo[] |
getDirectDescendentInfos()
Gets the direct descendent class infos. |
String |
getDisplayName()
Gets the display name for the class. |
String |
getDisplayName(Locale locale)
Gets the display name for the class, for the specified locale. |
String |
getOpenIcon()
Gets the fully qualified class name of the resource bundle for the open icon. |
RoleDescriptor |
getOtherSideRole(String name)
Gets a named RoleDescriptor, which is opposite of this class. |
RoleDescriptor |
getOtherSideRole(String name,
LinkInfo info)
Gets a named RoleDescriptor, for a particular association, which is opposite of this class. |
RoleDescriptor[] |
getOtherSideRoles()
Gets an array of RoleDescriptors, which are opposite instances of this class, in all of the associations, within which this class can participate. |
ClassInfo |
getParentClassInfo()
Gets the parent class info of the business class represented by this info instance. |
String |
getParentClassname()
Gets the name of the parent class of the business class represented by this info instance. |
ClassInfo[] |
getParentInterfaceInfos()
Gets the parent interface infos for the business class represented by this info instance. |
PropertyDescriptor |
getPropertyDescriptor(String name)
Gets a property descriptor for the named attribute of the class. |
PropertyDescriptor[] |
getPropertyDescriptors()
Gets the array of property descriptors for the class. |
static String |
getPropertyDisplayName(PropertyDescriptor property,
Locale locale)
Gets the display name for the named property of the class, for the specified locale. |
static String |
getPropertyShortDescription(PropertyDescriptor property,
Locale locale)
Gets the display name for the property of the class, for the specified locale. |
PropertyDescriptor |
getReadPropertyDescriptor(String name)
Gets a read-only property descriptor for the named attribute of the class. |
String |
getStandardIcon()
Gets the fully qualified class name of the resource bundle for the standard icon. |
Object |
getValue(String attribute_name)
Retrieve a named attribute with this feature. |
boolean |
isConcrete()
Gets the concrete status of this class. |
boolean |
isPersistable()
Gets the persistable status of this class. |
boolean |
isSuperclassOf(ClassInfo classInfo)
Answer whether class parents the supplied classInfo. |
LocalizableMessage |
toDisplayNameMessage()
Gets an object, which can be used to get a localized message for this class, having the request deferred to time or location where the locale may not be the same as the current locale. |
String |
toString()
Returns a string representation of the object. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public boolean equals(Object obj)
equals in class Objectobj - the Object to compare with
public Object[] getAttributeValueSet(String name)
throws wt.introspection.WTIntrospectionException
String - the name of the attribute
wt.introspection.WTIntrospectionException
public Class getBusinessClass()
throws wt.introspection.WTIntrospectionException
wt.introspection.WTIntrospectionExceptionpublic String getClassname()
public Class getConcreteClass()
throws wt.introspection.WTIntrospectionException
wt.introspection.WTIntrospectionException
public ClassInfo[] getDescendentInfos()
throws wt.introspection.WTIntrospectionException
WTIntrospectionException
public ClassInfo[] getDirectDescendentInfos()
throws wt.introspection.WTIntrospectionException
WTException - to be determined
wt.introspection.WTIntrospectionExceptionpublic String getDisplayName()
getDisplayName(Locale)public String getDisplayName(Locale locale)
public String getOpenIcon()
throws wt.introspection.WTIntrospectionException
wt.introspection.WTIntrospectionException
public RoleDescriptor getOtherSideRole(String name)
throws wt.introspection.WTIntrospectionException
WTIntrospection - Exception
wt.introspection.WTIntrospectionException#getOtherSideRoles(String,LinkInfo)
public RoleDescriptor getOtherSideRole(String name,
LinkInfo info)
throws wt.introspection.WTIntrospectionException
WTIntrospection - Exception
wt.introspection.WTIntrospectionException
public RoleDescriptor[] getOtherSideRoles()
throws wt.introspection.WTIntrospectionException
WTIntrospection - Exception
wt.introspection.WTIntrospectionException
public ClassInfo getParentClassInfo()
throws wt.introspection.WTIntrospectionException
wt.introspection.WTIntrospectionExceptionpublic String getParentClassname()
public ClassInfo[] getParentInterfaceInfos()
throws wt.introspection.WTIntrospectionException
wt.introspection.WTIntrospectionException
public PropertyDescriptor getPropertyDescriptor(String name)
throws wt.introspection.WTIntrospectionException
WTIntrospectionException - if fails to load class or fails to locate named property
public PropertyDescriptor[] getPropertyDescriptors()
throws wt.introspection.WTIntrospectionException
WTIntrospectionException - if fails to load class or bean info for class
public static String getPropertyDisplayName(PropertyDescriptor property,
Locale locale)
public static String getPropertyShortDescription(PropertyDescriptor property,
Locale locale)
public PropertyDescriptor getReadPropertyDescriptor(String name)
throws wt.introspection.WTIntrospectionException
getPropertyDescriptor, to avoid
the SecurityException that is thrown when reflecting on methods that are not public.
That is, when a property has a protected write method (setter).
WTIntrospectionException - if fails to load class or fails to locate named property
public String getStandardIcon()
throws wt.introspection.WTIntrospectionException
wt.introspection.WTIntrospectionExceptionpublic boolean isConcrete()
public boolean isPersistable()
public DatastoreElementType getDatastoreElementType()
public boolean isSuperclassOf(ClassInfo classInfo)
throws wt.introspection.WTIntrospectionException
wt.introspection.WTIntrospectionExceptionClass,
getBusinessClass()
public wt.introspection.ColumnDescriptor[] getAttributeColumnDescriptors(String name)
throws wt.introspection.WTIntrospectionException
wt.introspection.WTIntrospectionExceptionColumnDescriptorpublic LocalizableMessage toDisplayNameMessage()
public String toString()
toString in class Objectpublic Object getValue(String attribute_name)
attribute_name - - The locale-independent name of the attribute
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||