|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--de.tuberlin.cs.cis.ocl.model.mofbridge.MofClassifier
Describes a Classifier in a MOF-Model for OCL. Inherits the contract
from ClassifierDescriptor.
ClassifierDescriptor| Constructor Summary | |
MofClassifier(javax.jmi.model.Classifier cl,
ConceptFactory oclMapper)
Constructs a MofClassifier. |
|
| Method Summary | |
boolean |
equals(java.lang.Object o)
Returns true if the specified Object is a
ClassifierDescriptor describing the same classifier
as this ClassifierDescriptor |
TypedAssociation |
getAssociation(java.lang.String assocName,
Type[] qualifiers)
Resolves and returns the specified association qualifiable by the specified qualifier parameters on this type. |
TypedProperty |
getAttribute(java.lang.String attrName,
boolean classScoped)
Resolves and returns the specified attribute on this type. |
javax.jmi.model.Classifier |
getClassifier()
Returns the described Classifier. |
java.lang.String |
getName()
Returns the name of the type. |
Classifier |
getOclSupertype()
Returns the predefined OCL 1.5 supertype of this type. |
TypedProperty |
getOperation(java.lang.String operationName,
ClassifierDescriptor[] params,
boolean classScoped)
Resolves and returns the specified operation on this type. |
int |
hashCode()
|
boolean |
isStateDefined(java.lang.String state)
Returns true if the specified state is defined on
the statemachine attached to this type. |
boolean |
isSubtypeOf(ClassifierDescriptor modelType)
Returns true if this type is a subtype of the
specified type. |
static boolean |
supertype(javax.jmi.model.Classifier supertype,
javax.jmi.model.Classifier type)
Checks if a Classifier is the supertype of another Classifier. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public MofClassifier(javax.jmi.model.Classifier cl,
ConceptFactory oclMapper)
cl - a ClassifieroclMapper - describes the predefined supertype of the classifier.| Method Detail |
public static boolean supertype(javax.jmi.model.Classifier supertype,
javax.jmi.model.Classifier type)
supertype - a Classifier that is checked to be the supertype
of type.type - a Classifier
true if supertype is a supertype of type,
false otherwise.public java.lang.String getName()
ClassifierDescriptor
getName in interface ClassifierDescriptorpublic boolean isSubtypeOf(ClassifierDescriptor modelType)
ClassifierDescriptortrue if this type is a subtype of the
specified type. This relation will be used to build up a
type conformance hierarchy within OCL, which will be used in
either the type check (for example in oclAsType(OclType))
- and evaluation process (for example in oclIsKindOf(OclType)).
isSubtypeOf in interface ClassifierDescriptormodelType - a possible supertype of the model.
true if this type is a suptype of
the specified type, otherwise false.public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object o)
ClassifierDescriptortrue if the specified Object is a
ClassifierDescriptor describing the same classifier
as this ClassifierDescriptor.
- Specified by:
equals in interface ClassifierDescriptor- Overrides:
equals in class java.lang.Object
- Returns:
true if the specified Object is a
ClassifierDescriptor describing the same classifier
as this ClassifierDescriptor, false
otherwise.
public javax.jmi.model.Classifier getClassifier()
public int hashCode()
hashCode in class java.lang.Object
public TypedProperty getAttribute(java.lang.String attrName,
boolean classScoped)
throws UndefinedFeatureException
ClassifierDescriptor
getAttribute in interface ClassifierDescriptorattrName - the name of the attributeclassScoped - true if the attribute is called
on the classifier itself.
UndefinedFeatureException - if the attribute is not defined
on this type.
public TypedProperty getOperation(java.lang.String operationName,
ClassifierDescriptor[] params,
boolean classScoped)
throws UndefinedFeatureException
ClassifierDescriptor
getOperation in interface ClassifierDescriptoroperationName - the name of the operation.params - the parameters of the operation.classScoped - true if the operation is
called on the classifier itself.
UndefinedFeatureException - if the operation could
not be resolved on this type.
public TypedAssociation getAssociation(java.lang.String assocName,
Type[] qualifiers)
throws UndefinedFeatureException
ClassifierDescriptor
getAssociation in interface ClassifierDescriptorassocName - the role-name of the association/navigation.
UndefinedFeatureExceptionModelType.isDescribedBy(ClassifierDescriptor)public Classifier getOclSupertype()
ClassifierDescriptor
getOclSupertype in interface ClassifierDescriptorpublic boolean isStateDefined(java.lang.String state)
ClassifierDescriptortrue if the specified state is defined on
the statemachine attached to this type. The state will be used
for the predefined Operation oclInState(OclState). The argument
state will be represented as a String. The form
of the String is described in the Standard itself.
isStateDefined in interface ClassifierDescriptorstate - a state of this type's statemachine.
true if this type has at least one
statemachine attached to itself which defines the specified
state, false otherwise.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||