|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--de.tuberlin.cs.cis.ocl.type.Property
A property
describes a feature (i.e. attribute, association
or operation) of a Type
as defined in OCL 1.5.
Field Summary | |
static int |
ASSOCIATION
Indicats that a property is an association |
static int |
ATTRIBUTE
Indicats that a property is an attribute |
static int |
OPERATION
Indicates that a property is an operation |
Constructor Summary | |
Property(Type predefType,
java.lang.reflect.Method predefOp)
Constructs a predefined property |
|
Property(Type specType,
de.tuberlin.cs.cis.ocl.parser.node.PExpression behaviour,
int propertyClass)
Constructs a let defined property |
|
Property(Type type,
TypedProperty behaviour,
int propertyClass)
Constructs a model property |
Method Summary | |
java.lang.Object |
getBehaviour()
Returns the behaviour of this property. |
Type |
getType()
Returns the type of the property. |
boolean |
isAssociation()
Shows whether this property is an association. |
boolean |
isAttribute()
Shows whether this property is an attribute. |
boolean |
isLetDefined()
Shows if this property is defined via an let expression. |
boolean |
isModelProperty()
Shows whether this property via the model |
boolean |
isOperation()
Shows whether this property is an operation. |
boolean |
isPredefined()
Shows whether this property is predefined within OCL 1.5. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int OPERATION
public static final int ATTRIBUTE
public static final int ASSOCIATION
Constructor Detail |
public Property(Type predefType, java.lang.reflect.Method predefOp)
predefType
- a predefined type (!= null).predefOp
- a method describing the behaviour
of the type (!= null).public Property(Type type, TypedProperty behaviour, int propertyClass)
propertyClass
- the class of property described (i.e.
attribute, operation or association).public Property(Type specType, de.tuberlin.cs.cis.ocl.parser.node.PExpression behaviour, int propertyClass)
propertyClass
- the class of property described (i.e.
attribute, operation).Method Detail |
public Type getType()
public boolean isLetDefined()
true
if this property is defined
via a let expression, false
otherwise.public boolean isModelProperty()
true
if this property is defined
via the model, false
otherwise.public boolean isPredefined()
true
if this property is defined
via OCL1.5, false
otherwise.public boolean isOperation()
true
if this property is an
operation, false
otherwise.public boolean isAssociation()
true
if this property is an
association, false
otherwise.public boolean isAttribute()
true
if this property is an
attribute, false
otherwise.public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.Object getBehaviour()
Method
, in case of a model-property
TypedProperty
, AExpression
otherwise.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |