|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.introspection.RoleDescriptor
RoleDescriptor supplies meta-data information for a role of a Link (AssociationEnd).
Supported API: true
Extendable: false
WTIntrospector
,
ClassInfo
,
LinkInfo
,
Serialized FormField Summary | |
private String |
absoluteDir
|
static byte |
AGGREGATE
Supported API: false |
static byte |
ASSOCIATION
Supported API: false |
private String |
associationName
|
private boolean |
autoNavigate
|
private boolean |
cascade
|
private String |
classname
|
static byte |
COMPOSITE
Supported API: false |
static boolean |
DEBUG
Supported API: false |
private boolean |
dependency
|
static long |
externalizationVersionUID
Version identifier for managing compatibility and evolution of externalizable classes. |
private LinkInfo |
linkInfo
|
private boolean |
localizable
|
private byte |
maxCardinality
|
private byte |
minCardinality
|
private String |
name
|
private boolean |
owner
|
private Object[] |
params
|
private byte |
roleType
|
(package private) static long |
serialVersionUID
|
static boolean |
TRACE
Supported API: false |
private Class |
validClass
|
private ClassInfo |
validClassInfo
|
Constructor Summary | |
RoleDescriptor()
Constructor. |
|
RoleDescriptor(String association_name,
String role_name,
String role_class_name,
byte role_type,
byte min_cardinality,
byte max_cardinality,
boolean auto_navigate,
boolean dependency,
boolean isLocalizable,
boolean isOwner,
boolean isCascade)
Constructor. |
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. |
Class |
getValidClass()
Gets the valid class for this role. |
ClassInfo |
getValidClassInfo()
Gets the valid ClassInfo for this role. |
boolean |
hasDisplayName()
Deprecated. |
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 |
isCascade()
Determines if association deletion should cascade to the role 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 |
isLocalizable()
Deprecated. |
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 |
isOwner()
Determines if this role is an owner of the asociation. |
boolean |
isUnbounded()
Determines if the number of objects that play this role in a particular association, is unlimited. |
void |
readExternal(ObjectInput input)
Reads the non-transient fields of this class from an external source. |
(package private) void |
setAbsoluteDir(String absolute_dir)
|
(package private) void |
setAutoNavigate(boolean auto_navigate)
Sets autoNavigate status. |
String |
toString()
Returns a string representation of the object. |
void |
writeExternal(ObjectOutput output)
Writes the non-transient fields of this class to an external source. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final long externalizationVersionUID
static final long serialVersionUID
private String absoluteDir
public static final boolean DEBUG
public static final boolean TRACE
public static final byte ASSOCIATION
public static final byte AGGREGATE
public static final byte COMPOSITE
private String name
private byte roleType
private byte minCardinality
private byte maxCardinality
private String associationName
private boolean autoNavigate
private boolean dependency
private boolean localizable
private boolean owner
private boolean cascade
private String classname
private transient Class validClass
private transient ClassInfo validClassInfo
private transient LinkInfo linkInfo
private transient Object[] params
Constructor Detail |
public RoleDescriptor()
public RoleDescriptor(String association_name, String role_name, String role_class_name, byte role_type, byte min_cardinality, byte max_cardinality, boolean auto_navigate, boolean dependency, boolean isLocalizable, boolean isOwner, boolean isCascade)
Method Detail |
public boolean equals(Object compareRole)
public final int getCardinality()
public String getDisplayName()
getDisplayName(Locale)
public String getDisplayName(Locale locale)
public LinkInfo getLinkInfo() throws WTIntrospectionException
WTIntrospectionException
public String getLocalizedMessage(Locale locale)
getLocalizedMessage
in interface LocalizableMessage
locale
-
public final String getName()
public RoleDescriptor getOtherRole() throws WTIntrospectionException
WTIntrospectionException
- if cannot obtain LinkInfopublic Class getValidClass() throws WTIntrospectionException
WTIntrospectionException
- if cannot load the classpublic ClassInfo getValidClassInfo() throws WTIntrospectionException
WTIntrospectionException
- if cannot load the ClassInfopublic boolean hasDisplayName()
public 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 boolean isLocalizable()
public final boolean isMultiple()
public final boolean isNavigable()
public final boolean isOptional()
public final boolean isUnbounded()
public boolean isOwner()
public boolean isCascade()
public void readExternal(ObjectInput input) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
input
- is an input stream
IOException
ClassNotFoundException
public void writeExternal(ObjectOutput output) throws IOException
writeExternal
in interface Externalizable
output
- is an output stream
IOException
public String toString()
void setAutoNavigate(boolean auto_navigate)
void setAbsoluteDir(String absolute_dir)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |