wt.tools.metamodel
Class Role
java.lang.Object
wt.tools.metamodel.ModelElement
wt.tools.metamodel.ClassMember
wt.tools.metamodel.ClassProperty
wt.tools.metamodel.Role
- All Implemented Interfaces:
- Cloneable
- public class Role
- extends ClassProperty
Fields inherited from class wt.tools.metamodel.ClassProperty |
beforeClassInit, bound, changeable, constrained, constrainedType, derived, initValue, keys, length, lowerLimit, persistent, primitiveType, required, stringCase, upperLimit, writeVisibility |
Fields inherited from class wt.tools.metamodel.ModelElement |
customizations, DEBUG, documentation, LINE_SEPARATOR, name, nextID, properties, RESOURCE, source, stereotype, store, supportedAPI, TRACE, uid |
Methods inherited from class wt.tools.metamodel.ClassProperty |
addKey, copyTo, getChangeable, getCodeAccessType, getDerivedFrom, getInitValue, getKeys, getLength, getLowerLimit, getOriginalMember, getOriginalMember, getPrimitiveType, getStringCase, getUpperLimit, getWriteVisibility, isBeforeClassInit, isBound, isConstrained, isConstrainedType, isCovariant, isMobile, isNamed, isOverride, isPersistent, isRequired, keyCount, loadCustomizations, setConstrained, setConstrainedType, setDerivedFrom, setInitValue, setPersistent, setWriteVisibility |
Methods inherited from class wt.tools.metamodel.ClassMember |
clone, getCodeType, getCustomization, getTypePackage, getUnqualifiedType, getVisibility, isAbstract, isConstant, isFinal, isPrivateVisibility, isStatic, setAbstract, setDefaults, setFinal, setOwner, setPackageType, setStatic, setType, setType, setVisibility, typeCleanup |
Methods inherited from class wt.tools.metamodel.ModelElement |
ensureDeferredLoaded, getBoolean, getBoolean, getCustomization, getCustomizations, getDocumentation, getOriginalSource, getProperty, getProperty, getProperty, getProperty, getSource, getSourceId, getStereotype, getSupportedAPI, getUid, initialize, initialize, isDeprecated, loadFromStoreDeferred, setBoolean, setDocumentation, setName, setProperty, setSource, setStereotype, setStore, setSupportedAPI, setUid, store, storeForPackage, transferProperty, writeToStore |
aggregate
protected boolean aggregate
navigable
protected boolean navigable
autoNavigate
protected boolean autoNavigate
containment
protected Containment containment
delegatedInterface
protected String delegatedInterface
cardinality
protected String cardinality
className
protected String className
roleClass
protected ClassClass roleClass
container
protected ClassClass container
association
protected Association association
dependency
protected boolean dependency
Role
protected Role(String theUid)
Role
Role(String theUid,
Association theOwner)
throws WTException
checkValidity
void checkValidity(Vector problems)
getSuperRole
public Role getSuperRole()
getAccessType
public String getAccessType()
- Overrides:
getAccessType
in class ClassProperty
getArraySize
public int getArraySize()
- Specified by:
getArraySize
in class ClassProperty
getAssociation
public Association getAssociation()
getCardinality
public String getCardinality()
getClassFullName
public String getClassFullName()
getClassName
public String getClassName()
getContainment
public Containment getContainment()
getDelegatedInterface
public String getDelegatedInterface()
getElementCode
protected String getElementCode()
- Specified by:
getElementCode
in class ModelElement
getName
public String getName()
- Overrides:
getName
in class ModelElement
getOtherRole
public Role getOtherRole()
getOwner
public ClassClass getOwner()
- Overrides:
getOwner
in class ClassMember
getContainingClass
public ClassClass getContainingClass()
- Overrides:
getContainingClass
in class ClassMember
getRoleClass
public ClassClass getRoleClass()
getType
public String getType()
- Overrides:
getType
in class ClassMember
isAggregate
public boolean isAggregate()
isArray
public boolean isArray()
- Overrides:
isArray
in class ClassMember
isAutoNavigate
public boolean isAutoNavigate()
isBidirectional
public boolean isBidirectional()
- Specified by:
isBidirectional
in class ClassProperty
isBounded
public final boolean isBounded()
isComposite
public boolean isComposite()
- Specified by:
isComposite
in class ClassProperty
isDelegate
public final boolean isDelegate()
isDependency
public boolean isDependency()
- Overrides:
isDependency
in class ClassMember
isDerived
public boolean isDerived()
- Overrides:
isDerived
in class ClassProperty
isMultiple
public final boolean isMultiple()
isNavigable
public boolean isNavigable()
isOptional
public final boolean isOptional()
isReadOnly
public boolean isReadOnly()
- Overrides:
isReadOnly
in class ClassProperty
loadFromStore
protected void loadFromStore()
throws WTException
- Overrides:
loadFromStore
in class ClassProperty
- Throws:
WTException
makeAttribute
public Attribute makeAttribute()
- Specified by:
makeAttribute
in class ClassProperty
maxCardinality
public String maxCardinality()
setAggregate
public void setAggregate(boolean theAggregate)
setAssociation
void setAssociation(Association theAssociation)
setCardinality
public void setCardinality(String theCardinality)
setContainment
public void setContainment(Containment theContainment)
setNavigable
public void setNavigable(boolean theNavigable)
toString
public String toString()
- Overrides:
toString
in class ModelElement
writeToStore
protected void writeToStore()
- Overrides:
writeToStore
in class ClassProperty