cb.petal
Class Role
java.lang.Object
|
+--cb.petal.PetalObject
|
+--cb.petal.QuidObject
|
+--cb.petal.QuiduObject
|
+--cb.petal.Role
- All Implemented Interfaces:
- AccessQualified, java.lang.Cloneable, Documented, HasQuidu, HasSupplier, Named, PetalNode, java.io.Serializable
- public class Role
- extends QuiduObject
- implements AccessQualified, HasSupplier, Named, Documented
Represents Role object
- Version:
- $Id: Role.java,v 1.16 2001/08/01 14:26:56 dahm Exp $
- Author:
- M. Dahm
- See Also:
- Serialized Form
Methods inherited from class cb.petal.PetalObject |
addProperty, addToList, clone, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, equals, getChildCount, getKind, getLongestName, getName, getNames, getNoProperties, getParameterList, getParent, getProperties, getProperty, getProperty, getPropertyAsBoolean, getPropertyAsFloat, getPropertyAsInteger, getPropertyAsString, getPropertyList, getPropertyName, getPropertyTuples, getQualifiedName, getRoot, indexOf, moveProperty, removeFromList, removeProperty, removeProperty, setName, setParameterList, setParent, setProperty, toString |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Role
public Role(PetalNode parent,
java.util.Collection params)
Role
public Role()
setNameParameter
public void setNameParameter(java.lang.String o)
- Specified by:
setNameParameter
in interface Named
getNameParameter
public java.lang.String getNameParameter()
- Specified by:
getNameParameter
in interface Named
getSupplier
public java.lang.String getSupplier()
- Specified by:
getSupplier
in interface HasSupplier
setSupplier
public void setSupplier(java.lang.String o)
- Specified by:
setSupplier
in interface HasSupplier
getCardinality
public java.lang.String getCardinality()
- Returns:
- cardinality of role as string
setCardinality
public void setCardinality(java.lang.String card)
getOtherRole
public Role getOtherRole()
- Returns:
- role object of other side of this association
isAggregation
public boolean isAggregation()
- Returns:
- true if this an aggregation, i.e., the rhomb is not filled, this depends
on the containment of the other role
isComposition
public boolean isComposition()
- Returns:
- true if this a composite, i.e., the rhomb is filled,
this depends on the containment of the other role.
getClientCardinality
public Value getClientCardinality()
setClientCardinality
public void setClientCardinality(Value o)
getIsAggregate
public boolean getIsAggregate()
setIsAggregate
public void setIsAggregate(boolean o)
getAttributes
public List getAttributes()
setAttributes
public void setAttributes(List o)
getRoleName
public java.lang.String getRoleName()
setRoleName
public void setRoleName(java.lang.String o)
getLabel
public java.lang.String getLabel()
setLabel
public void setLabel(java.lang.String o)
getContainment
public java.lang.String getContainment()
setContainment
public void setContainment(java.lang.String o)
- Possible values are: "By value" and "By reference"
getConstraints
public java.lang.String getConstraints()
setConstraints
public void setConstraints(java.lang.String o)
isNavigable
public boolean isNavigable()
isNavigable
public void isNavigable(boolean o)
isAggregate
public boolean isAggregate()
isAggregate
public void isAggregate(boolean o)
isPrincipal
public boolean isPrincipal()
isPrincipal
public void isPrincipal(boolean o)
getDocumentation
public java.lang.String getDocumentation()
- Specified by:
getDocumentation
in interface Documented
setDocumentation
public void setDocumentation(java.lang.String o)
- Specified by:
setDocumentation
in interface Documented
getStatic
public boolean getStatic()
setStatic
public void setStatic(boolean o)
getExportControl
public java.lang.String getExportControl()
- Specified by:
getExportControl
in interface AccessQualified
setExportControl
public void setExportControl(java.lang.String o)
- Specified by:
setExportControl
in interface AccessQualified
accept
public void accept(Visitor v)
- Overrides:
accept
in class PetalObject