|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--de.tuberlin.cs.cis.ocl.example.check.ExampleTypedProperty
Implements a property in the context of the example model defined in OCL1.5 chapter 6.2.2 Example Class Diagram.
Field Summary |
Fields inherited from interface de.tuberlin.cs.cis.ocl.model.check.TypedAssociation |
UNBOUNDED |
Constructor Summary | |
ExampleTypedProperty(java.lang.String propertyName,
ClassifierDescriptor dtd)
Constructs an attribute or operation of the example model. |
|
ExampleTypedProperty(java.lang.String propertyName,
ClassifierDescriptor modelType,
int upperMultiplicity)
Constructs an association end of the example model. |
Method Summary | |
boolean |
equals(java.lang.Object o)
This property equals another property of the example model, if the names are equal. |
java.lang.String |
getName()
Returns the name of this property. |
ClassifierDescriptor |
getType()
Returns the type of this property (to be specific the type of the attribute, the return type of the operation or the type of a navigated association end). |
int |
getUpperMultiplicity()
Returns the upper multiplicity of this association's association end (obtained by navigating the association). |
boolean |
isOrdered()
Returns true if the navigation of this association
should result in an ordered collection. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ExampleTypedProperty(java.lang.String propertyName, ClassifierDescriptor modelType, int upperMultiplicity)
propertyName
- the name of the association end.modelType
- the type of the association end.upperMultiplicity
- the upper multiplicity of
the association endpublic ExampleTypedProperty(java.lang.String propertyName, ClassifierDescriptor dtd)
propertyName
- the name of the property.dtd
- the type of the property.Method Detail |
public int getUpperMultiplicity()
TypedAssociation
getUpperMultiplicity
in interface TypedAssociation
TypedAssociation.UNBOUNDED
public ClassifierDescriptor getType()
TypedProperty
DataTypeDescriptor
of the same model is returned.
getType
in interface TypedProperty
public boolean isOrdered()
TypedAssociation
true
if the navigation of this association
should result in an ordered collection. If that is the case
the collection result of this navigation will be a Sequence.
isOrdered
in interface TypedAssociation
true
if the association is adorned with
{ordered}, otherwise false
.public java.lang.String getName()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
true
if the object is a property of the example
model and its name equals this property's name, false
otherwise.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 |