|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectwt.introspection.RoleDescriptor
public class RoleDescriptor
RoleDescriptor supplies meta-data information for a role of a Link (AssociationEnd).
Supported API: true
Extendable: false
WTIntrospector,
ClassInfo,
LinkInfo,
Serialized Form| Method Summary | |
|---|---|
boolean |
equals(Object compareRole)
Equals is true if both sets of role names are the same, and either the link classes are type compatible, or both sets of role classes are type compatible, and the opposite side classes are not the same class. |
int |
getCardinality()
Gets the cardinality (multiplicity) of this role. |
String |
getDisplayName()
Gets the display name for this role descriptor. |
String |
getDisplayName(Locale locale)
Gets the display name for this role, for the specified locale. |
LinkInfo |
getLinkInfo()
Gets the LinkInfo that owns this role. |
String |
getLocalizedMessage(Locale locale)
Gets the localized message for this role, for the specified locale. |
String |
getName()
Gets the name of this Role. |
RoleDescriptor |
getOtherRole()
Gets the other RoleDescriptor, for the association that owns them. |
ClassInfo |
getValidClassInfo()
Gets the valid ClassInfo for this role. |
boolean |
isAggregated()
Determines if a class that plays this role in the association represents the "part" in an aggregation (whole-part) relationship. |
boolean |
isAutoNavigate()
Determines if this role of the association will be automatically read from the database, along with the other side object. |
boolean |
isComposed()
Determines if a class that plays this role in the association represents the "owned" object in a composite aggregation. |
boolean |
isDependency()
Determines if this class is a dependency of the opposite-side class. |
boolean |
isMultiple()
Determines if there can be multiple objects that play this role in a particular association. |
boolean |
isNavigable()
Determines if this role of the association can be navigated to, from the object on the other side of the association. |
boolean |
isOptional()
Determines if it is valid for no objects to play this role in a particular association. |
boolean |
isUnbounded()
Determines if the number of objects that play this role in a particular association, is unlimited. |
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 compareRole)
equals in class Objectpublic final int getCardinality()
public String getDisplayName()
getDisplayName(Locale)public String getDisplayName(Locale locale)
public LinkInfo getLinkInfo()
throws wt.introspection.WTIntrospectionException
wt.introspection.WTIntrospectionExceptionpublic String getLocalizedMessage(Locale locale)
getLocalizedMessage in interface LocalizableMessagepublic final String getName()
public RoleDescriptor getOtherRole()
throws wt.introspection.WTIntrospectionException
WTIntrospectionException - if cannot obtain LinkInfo
public ClassInfo getValidClassInfo()
throws wt.introspection.WTIntrospectionException
WTIntrospectionException - if cannot load the ClassInfopublic final boolean isAggregated()
public final boolean isAutoNavigate()
public final boolean isComposed()
UML Definition of Composition - A form of aggregation with strong ownership and coincident lifetime as part of the whole. Parts with non-fixed multiplicity may be created after the composite itself, but once created they live and die with it (i.e., they share lifetimes). Such parts can also be explicitly removed before the death of the composite. Composition may be recursive.
public final boolean isDependency()
public final boolean isMultiple()
public final boolean isNavigable()
public final boolean isOptional()
public final boolean isUnbounded()
public String toString()
toString in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||