|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ashridgetech.jamda.uml.ModelElement | +--com.ashridgetech.jamda.uml.Association.End
Represents a UML AssociationEnd. Holds details of one end of an
association. Note that the aggregation value which is taken from the
Association End at the other end of the Association, as that is
usually more relevant - see getAggregation()
.
Nested Class Summary | |
protected class |
Association.End.PropertyImpl
Inner class implementation of the Property interface for Association.End . |
Nested classes inherited from class com.ashridgetech.jamda.uml.ModelElement |
ModelElement.DuplicateElementException, ModelElement.ElementListStore, ModelElement.ElementNameListStore, ModelElement.ElementNameStore, ModelElement.ElementStore, ModelElement.TaggedValue, ModelElement.UnknownElementException |
Field Summary |
Fields inherited from class com.ashridgetech.jamda.uml.ModelElement |
DUMMY_STORE |
Constructor Summary | |
protected |
Association.End(ru.novosoft.uml.foundation.core.MAssociationEnd mae,
Association assoc)
Creates new AssociationEnd from a NSUML MAssociationEnd object. |
Method Summary | |
StructuredType.Aggregation |
getAggregation()
Get the StructuredType.Aggregation instance relevant to this End . |
Association |
getAssociation()
Get the Association to which this End belongs. |
ClassType |
getClassType()
Get the type of this End as a ClassType . |
java.lang.String |
getDescription()
Get a description of this element for logging. |
java.lang.String |
getElementType()
Get the name of the type of element. |
int |
getLowerMultiplicity()
Get the lower bound of the multiplicity range. |
java.lang.String |
getMultName()
Get the name of this Property , converted to plural using Util.pluralize(java.lang.String)
if isMultiple() returns true. |
java.lang.String |
getName()
Get the best name for this End . |
Association.End |
getOtherEnd()
Get the other End which belongs to this Association . |
Property |
getProperty()
Get the representation of this Attribute as a Property . |
java.util.Set |
getReaders()
Get Actor s who can read this Property |
Type |
getType()
Get the type of this End , to implement TypedItem . |
int |
getUpperMultiplicity()
Get the upper bound of the multiplicity range. |
StructuredType.Visibility |
getVisibility()
|
java.util.Set |
getWriters()
Get Actor s who can write this Property |
boolean |
isChangeable()
Show whether this End is changeable. |
boolean |
isMultiple()
Show whether this End can have multiple instances, according
to the rules in NSUtil.isMultiple(ru.novosoft.uml.foundation.data_types.MMultiplicity) . |
boolean |
isNavigable()
Show whether this End is navigable. |
boolean |
isOid()
|
boolean |
isReadable()
|
boolean |
isReadableBy(Actor actor)
Indicate whether the value(s) of this property can be read by a given Actor . |
boolean |
isWritable()
|
boolean |
isWritableBy(Actor actor)
Indicate whether the value(s) of this property can be updated by a given Actor . |
java.lang.String |
toString()
Safe override for ModelElement.toString() which only uses the name
if the Model is initialised, and gives the id otherwise. |
Methods inherited from class com.ashridgetech.jamda.uml.ModelElement |
add, addStereotype, addTaggedValue, addTaggedValue, addTaggedValues, addTaggedValuesInternal, checkInitialised, checkState, checkValid, findTaggedValueCollection, getBooleanTaggedValue, getChildElements, getComment, getDirectSource, getElement, getFullName, getId, getModel, getNsElement, getOriginalSource, getParentElement, getProperties, getStereotypes, getStringTaggedValue, getSubElementStore, getTaggedValue, getTaggedValues, getXpathContext, hasStereotype, hasTaggedValue, init, initLoad, isInitialised, load, load, load, loadElement, logChange, logger, logger, logLoad, logLoadWarning, logNew, logWarning, removeTaggedValue, select, setComment, setDirectSource, setTaggedValue, setTaggedValue, setTaggedValue, setTaggedValues, stereotype, tag, tagError, type, type, type, xpath, xpathList |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
protected Association.End(ru.novosoft.uml.foundation.core.MAssociationEnd mae, Association assoc)
Method Detail |
public java.lang.String getName()
End
. If this association
end has a name specified in the UML model, that is used, otherwise
the type name is used, uncapitalized.
NOTE: this method may not be called before the Model
to which this object belongs is fully loaded, as the Type
to which
this object refers may not have been loaded.
getName
in class ModelElement
public Association getAssociation()
Association
to which this End
belongs.
public Association.End getOtherEnd()
End
which belongs to this Association
.
public Type getType()
End
, to implement TypedItem
.
public ClassType getClassType()
End
as a ClassType
.
public StructuredType.Aggregation getAggregation()
StructuredType.Aggregation
instance relevant to this End
.
NOTE: this is actually the aggregation value at the OTHER end
of the association in the UML model
public boolean isChangeable()
End
is changeable.
public boolean isNavigable()
End
is navigable.
public int getLowerMultiplicity()
StructuredType.UNBOUNDED
.public int getUpperMultiplicity()
StructuredType.UNBOUNDED
if there
is no upper limit.public boolean isMultiple()
End
can have multiple instances, according
to the rules in NSUtil.isMultiple(ru.novosoft.uml.foundation.data_types.MMultiplicity)
.
public java.lang.String getMultName()
Property
, converted to plural using Util.pluralize(java.lang.String)
if isMultiple()
returns true.
public boolean isReadable()
public boolean isReadableBy(Actor actor)
Actor
.
public boolean isWritable()
public boolean isWritableBy(Actor actor)
Actor
.
public java.util.Set getReaders()
Actor
s who can read this Property
Actor
s. May be null to indicate that ALL Actor
s
can read this Property
, or an empty Set
to indicate that
NO Actor
s can read this Property
public java.util.Set getWriters()
Actor
s who can write this Property
Actor
s. May be null to indicate that ALL Actor
s
can write this Property
, or an empty Set
to indicate that
NO Actor
s can write this Property
public boolean isOid()
public StructuredType.Visibility getVisibility()
public java.lang.String getElementType()
getElementType
in class ModelElement
public java.lang.String getDescription()
getName()
is not called until the Model
is initialised.
getDescription
in class ModelElement
public java.lang.String toString()
ModelElement.toString()
which only uses the name
if the Model
is initialised, and gives the id otherwise. The name is
not available until the Model
is intialised, as it is formed
from the name of the type
of this
AssociationEnd
if it does not have one, and the type cannot be looked
up before the Model
is initialised. This only gives a problem
when toString()
is called by Model.store(com.ashridgetech.jamda.uml.ModelElement)
.
toString
in class ModelElement
public Property getProperty()
Attribute
as a Property
.
getProperty
in interface PropertyElement
Property
for this Attribute
- always the same instance
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |