|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ashridgetech.jamda.uml.StructuredType.PropertyImpl
Implementation of the Property
interface for a getter and/or setter Operation
. May
also be linked to an Attribute
.
Constructor Summary | |
protected |
StructuredType.PropertyImpl(Operation getter,
Operation setter,
Attribute attribute)
|
Method Summary | |
StructuredType.Aggregation |
getAggregation()
Get the aggregation level of this property. |
Association.End |
getAssociationEnd()
Get the Association.End connected with this property, if there is one. |
Attribute |
getAttribute()
Get the Attribute connected with this property, if there is one. |
java.lang.String |
getComment()
Get the comment for this item. |
ModelElement |
getDirectSource()
Get the immediate source element of the underlying element of this property. |
Operation |
getGetter()
Get the getter Operation connected with this property, if there is one. |
java.lang.String |
getMultName()
Get the name of this TypedItem ,
converted to plural using Util.pluralize(java.lang.String)
if isMultiple() returns true. |
java.lang.String |
getName()
Get the name of this item. |
ModelElement |
getOriginalSource()
Get the original source element of the underlying element of this property. |
Parameter |
getParameter()
Get the Parameter connected with this property, if there is one. |
java.util.Set |
getReaders()
Get Actor s who can read this Property |
Operation |
getSetter()
Get the setter Operation connected with this property, if there is one. |
Type |
getType()
Get the type of this item. |
ModelElement |
getUnderlyingElement()
Get the underlying element of this property. |
Operation |
getUnderlyingOperation()
Get the principal Operation connected with this property. |
java.util.Set |
getWriters()
Get Actor s who can write this Property |
boolean |
isMultiple()
Indicate whether this item can have multiple values. |
boolean |
isOid()
Indicate whether this property is an object identifier (OID) for its StructuredType . |
boolean |
isReadable()
Indicate whether the value(s) of this property can be read. |
boolean |
isReadableBy(Actor actor)
Indicate whether the value(s) of this property can be read by a given Actor . |
boolean |
isWritable()
Indicate whether the value(s) of this property can be written. |
boolean |
isWritableBy(Actor actor)
Indicate whether the value(s) of this property can be written by a given Actor . |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
protected StructuredType.PropertyImpl(Operation getter, Operation setter, Attribute attribute)
Method Detail |
public java.lang.String getName()
getName
in interface TypedItem
public java.lang.String getMultName()
name
of this TypedItem
,
converted to plural using Util.pluralize(java.lang.String)
if isMultiple()
returns true.
getMultName
in interface TypedItem
public Type getType()
getType
in interface TypedItem
public java.lang.String getComment()
getComment
in interface TypedItem
public boolean isMultiple()
isMultiple
in interface TypedItem
getter
return type or the
setter
parameter has multiple valuespublic boolean isReadable()
isReadable
in interface Property
public boolean isReadableBy(Actor actor)
Actor
.
This implementation does not distinguish between different actors.
isReadableBy
in interface Property
isReadable()
public boolean isWritable()
isWritable
in interface Property
public boolean isWritableBy(Actor actor)
Actor
.
This implementation does not distinguish between different actors.
isWritableBy
in interface Property
isWritable()
public StructuredType.Aggregation getAggregation()
getAggregation
in interface Property
Aggregation
instancepublic boolean isOid()
StructuredType
.
isOid
in interface Property
public ModelElement getDirectSource()
getDirectSource
in interface Property
getUnderlyingElement()
,
getOriginalSource()
public ModelElement getOriginalSource()
getOriginalSource
in interface Property
getUnderlyingElement()
,
getDirectSource()
public ModelElement getUnderlyingElement()
getGetter()
, getSetter()
,
getAttribute()
or getAssociationEnd()
.
getUnderlyingElement
in interface Property
getUnderlyingElement()
public java.util.Set getReaders()
Actor
s who can read this Property
getReaders
in interface 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
getWriters
in interface 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 Operation getGetter()
Operation
connected with this property, if there is one.
getGetter
in interface Property
public Operation getSetter()
Operation
connected with this property, if there is one.
getSetter
in interface Property
public Attribute getAttribute()
Attribute
connected with this property, if there is one.
getAttribute
in interface Property
Attribute
public Association.End getAssociationEnd()
Association.End
connected with this property, if there is one.
getAssociationEnd
in interface Property
public Parameter getParameter()
Parameter
connected with this property, if there is one.
getParameter
in interface Property
Parameter
- always nullpublic Operation getUnderlyingOperation()
Operation
connected with this property. This is the getter
if there is one, the setter
otherwise.
Operation
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |