|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eigenbase.enki.jmi.impl.RefBaseObjectBase org.eigenbase.enki.jmi.impl.RefPackageBase org.eigenbase.enki.hibernate.jmi.HibernateRefPackage net.sf.farrago.cwm.behavioral.BehavioralPackage$Hib
public class BehavioralPackage$Hib
Behavioral package implementation. The Behavioral metamodel depends on the following package: org.omg::CWM::ObjectModel::Core The Behavioral metamodel collects together classes and associations that describe the behavior of CWM types and provides a foundation for recording the invocations of defined behaviors. The elements of the Behavioral metamodel are shown in the following figure. OCL Representation of Behavioral Constraints Operations The operation hasSameSignature checks if the argument has the same signature as the instance itself. hasSameSignature ( b : BehavioralFeature ) : Boolean; hasSameSignature (b) = (self.name = b.name) and (self.parameter->size = b.parameter->size) and Sequence{ 1..(self.parameter->size) }->forAll( index : Integer | b.parameter->at(index).type = self.parameter->at(index).type and b.parameter->at(index).kind = self.parameter->at(index).kind ) The operation allOperations results in a Set containing all Operations of the Classifier itself and all its inherited Operations. allOperations : Set(Operation); allOperations = self.allFeatures->select(f | f.ockIsKindOf(Operations)) The operation allMethods results in a Set containing all Methods of the Classifier itself and all its inherited Methods. allOperations : Set(Method); allMethods = self.allFeatures->select(f | f.ockIsKindOf(Method)) Constraints [C-4-1] All Parameters should have a unique name. context BehavioralFeature inv: self.parameter->forAll(p1, p2 | p1.name = p2.name implies p1 = p2) [C-4-2] The type of the Parameters should be included in the Namespace of the Classifier. context BehavioralFeature inv: self.parameter->forAll( p | self.owner.namespace.allContents->includes (p.type) ) [C-4-3] The number of arguments must be the same as the number of parameters of the Operation. context CallAction inv: self.actualArgument->size = self.operation.parameter->size [C-4-4] An Interface can only contain Operations. context Interface inv: self.allFeatures->forAll( f | f.oclIsKindOf( Operation ) ) [C-4-5] An Interface cannot contain any ModelElements. context Interface inv: self.allContents->isEmpty [C-4-6] All Features defined in an Interface are public. context Interface inv: self.allFeatures->forAll( f | f.visibility = #public ) [C-4-7] If the realized Operation is a query, then so is the Method. context Method inv: self.specification->isQuery implies self.isQuery
Note: This type should not be subclassed, implemented or directly instantiated by clients. It is generated from a MOF metamodel and implemented by Enki or MDR.
Field Summary | |
---|---|
private BehavioralFeatureParameter |
behavioralFeatureParameter
|
private CallArguments |
callArguments
|
private CalledOperation |
calledOperation
|
private CwmArgumentClass |
cwmArgumentClass
|
private CwmBehavioralFeatureClass |
cwmBehavioralFeatureClass
|
private CwmCallActionClass |
cwmCallActionClass
|
private CwmEventClass |
cwmEventClass
|
private CwmInterfaceClass |
cwmInterfaceClass
|
private CwmMethodClass |
cwmMethodClass
|
private CwmOperationClass |
cwmOperationClass
|
private CwmParameterClass |
cwmParameterClass
|
private EventParameter |
eventParameter
|
private OperationMethod |
operationMethod
|
private ParameterType |
parameterType
|
Constructor Summary | |
---|---|
BehavioralPackage$Hib(RefPackage container)
|
Method Summary | |
---|---|
void |
addAliasPackages()
|
protected void |
checkConstraints(List<JmiException> errors,
boolean deepVerify)
|
BehavioralFeatureParameter |
getBehavioralFeatureParameter()
Returns BehavioralFeatureParameter association proxy object. |
CallArguments |
getCallArguments()
Returns CallArguments association proxy object. |
CalledOperation |
getCalledOperation()
Returns CalledOperation association proxy object. |
CwmArgumentClass |
getCwmArgument()
Returns CwmArgument class proxy object. |
CwmBehavioralFeatureClass |
getCwmBehavioralFeature()
Returns CwmBehavioralFeature class proxy object. |
CwmCallActionClass |
getCwmCallAction()
Returns CwmCallAction class proxy object. |
CwmEventClass |
getCwmEvent()
Returns CwmEvent class proxy object. |
CwmInterfaceClass |
getCwmInterface()
Returns CwmInterface class proxy object. |
CwmMethodClass |
getCwmMethod()
Returns CwmMethod class proxy object. |
CwmOperationClass |
getCwmOperation()
Returns CwmOperation class proxy object. |
CwmParameterClass |
getCwmParameter()
Returns CwmParameter class proxy object. |
EventParameter |
getEventParameter()
Returns EventParameter association proxy object. |
OperationMethod |
getOperationMethod()
Returns OperationMethod association proxy object. |
ParameterType |
getParameterType()
Returns ParameterType association proxy object. |
Methods inherited from class org.eigenbase.enki.hibernate.jmi.HibernateRefPackage |
---|
getHibernateRepository, refDelete |
Methods inherited from class org.eigenbase.enki.jmi.impl.RefPackageBase |
---|
addAssociation, addClass, addPackage, getRepository, refAllAssociations, refAllClasses, refAllPackages, refAssociation, refAssociation, refClass, refClass, refCreateStruct, refCreateStruct, refGetEnum, refGetEnum, refImmediatePackage, refPackage, refPackage |
Methods inherited from class org.eigenbase.enki.jmi.impl.RefBaseObjectBase |
---|
createInstance, equals, getCurrentInitializer, getEnum, getInitializer, getMofId, getTag, hashCode, invokeMethod, invokeMethod, logJmi, refMetaObject, refMofId, refOutermostPackage, refVerifyConstraints, setMofId, setRefMetaObject |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.jmi.reflect.RefPackage |
---|
refAllAssociations, refAllClasses, refAllPackages, refAssociation, refAssociation, refClass, refClass, refCreateStruct, refCreateStruct, refDelete, refGetEnum, refGetEnum, refPackage, refPackage |
Methods inherited from interface javax.jmi.reflect.RefBaseObject |
---|
equals, hashCode, refImmediatePackage, refMetaObject, refMofId, refOutermostPackage, refVerifyConstraints |
Field Detail |
---|
private final CwmArgumentClass cwmArgumentClass
private final CwmBehavioralFeatureClass cwmBehavioralFeatureClass
private final CwmCallActionClass cwmCallActionClass
private final CwmEventClass cwmEventClass
private final CwmInterfaceClass cwmInterfaceClass
private final CwmMethodClass cwmMethodClass
private final CwmOperationClass cwmOperationClass
private final CwmParameterClass cwmParameterClass
private final BehavioralFeatureParameter behavioralFeatureParameter
private final CallArguments callArguments
private final EventParameter eventParameter
private final CalledOperation calledOperation
private final OperationMethod operationMethod
private final ParameterType parameterType
Constructor Detail |
---|
public BehavioralPackage$Hib(RefPackage container)
Method Detail |
---|
public void addAliasPackages()
addAliasPackages
in class RefPackageBase
public CwmArgumentClass getCwmArgument()
BehavioralPackage
getCwmArgument
in interface BehavioralPackage
public CwmBehavioralFeatureClass getCwmBehavioralFeature()
BehavioralPackage
getCwmBehavioralFeature
in interface BehavioralPackage
public CwmCallActionClass getCwmCallAction()
BehavioralPackage
getCwmCallAction
in interface BehavioralPackage
public CwmEventClass getCwmEvent()
BehavioralPackage
getCwmEvent
in interface BehavioralPackage
public CwmInterfaceClass getCwmInterface()
BehavioralPackage
getCwmInterface
in interface BehavioralPackage
public CwmMethodClass getCwmMethod()
BehavioralPackage
getCwmMethod
in interface BehavioralPackage
public CwmOperationClass getCwmOperation()
BehavioralPackage
getCwmOperation
in interface BehavioralPackage
public CwmParameterClass getCwmParameter()
BehavioralPackage
getCwmParameter
in interface BehavioralPackage
public BehavioralFeatureParameter getBehavioralFeatureParameter()
BehavioralPackage
getBehavioralFeatureParameter
in interface BehavioralPackage
public CallArguments getCallArguments()
BehavioralPackage
getCallArguments
in interface BehavioralPackage
public EventParameter getEventParameter()
BehavioralPackage
getEventParameter
in interface BehavioralPackage
public CalledOperation getCalledOperation()
BehavioralPackage
getCalledOperation
in interface BehavioralPackage
public OperationMethod getOperationMethod()
BehavioralPackage
getOperationMethod
in interface BehavioralPackage
public ParameterType getParameterType()
BehavioralPackage
getParameterType
in interface BehavioralPackage
protected void checkConstraints(List<JmiException> errors, boolean deepVerify)
checkConstraints
in class RefBaseObjectBase
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |