|
COSMOS ${releaseVersion} resource-modeling Project Internal API Specification |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.cosmos.rm.repository.internal.operations.AbstractListenerManager
org.eclipse.cosmos.rm.repository.internal.operations.AbstractSMLOperation
public abstract class AbstractSMLOperation
An abstract class used to implement common functionality between repository operations.
| Constructor Summary | |
|---|---|
AbstractSMLOperation(org.eclipse.cosmos.rm.repository.provisional.core.ISMLRepository repository)
Constructor |
|
| Method Summary | |
|---|---|
void |
addArgument(java.lang.Object argument)
Adds an argument to this operation. |
protected boolean |
checkType(java.lang.Class expected,
java.lang.Class actual)
Checks that the expected class is equivalent to actual |
protected boolean |
checkType(java.lang.Object[] arguments,
java.lang.Class expected)
Checks that each argument's class is of type expected |
protected boolean |
checkType(java.lang.Object[] arguments,
java.lang.Class[] expectedClasses)
Checks to ensure that argument[i]'s class is equivalent to expectedClasses[i]. |
java.lang.Object[] |
getArguments()
|
protected org.eclipse.cosmos.rm.repository.provisional.core.ISMLRepository |
getRepository()
|
void |
setArguments(java.lang.Object[] arguments)
Sets the arguments of this operation. |
protected void |
setRepository(org.eclipse.cosmos.rm.repository.provisional.core.ISMLRepository repository)
|
| Methods inherited from class org.eclipse.cosmos.rm.repository.internal.operations.AbstractListenerManager |
|---|
addProgressListener, getProgressListeners, removeProgressListener |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.eclipse.cosmos.rm.repository.provisional.operations.ISMLOperation |
|---|
addProgressListener, getId, removeProgressListener, run |
| Constructor Detail |
|---|
public AbstractSMLOperation(org.eclipse.cosmos.rm.repository.provisional.core.ISMLRepository repository)
expectedArgType - The expected argument type| Method Detail |
|---|
public void setArguments(java.lang.Object[] arguments)
throws java.lang.IllegalArgumentException
org.eclipse.cosmos.rm.repository.provisional.operations.ISMLOperation
setArguments in interface org.eclipse.cosmos.rm.repository.provisional.operations.ISMLOperationarguments - The arguments of this operation
java.lang.IllegalArgumentException - If the argument type is not what is
expected by the underlying implementationISMLOperation.setArguments(java.lang.Object[])
public void addArgument(java.lang.Object argument)
throws java.lang.IllegalArgumentException
org.eclipse.cosmos.rm.repository.provisional.operations.ISMLOperation
addArgument in interface org.eclipse.cosmos.rm.repository.provisional.operations.ISMLOperationargument - The argument to be added
java.lang.IllegalArgumentException - If the argument type is not what is
expected by the underlying implementationISMLOperation.addArgument(java.lang.Object)public java.lang.Object[] getArguments()
protected org.eclipse.cosmos.rm.repository.provisional.core.ISMLRepository getRepository()
protected void setRepository(org.eclipse.cosmos.rm.repository.provisional.core.ISMLRepository repository)
repository - the repository to set
protected boolean checkType(java.lang.Class expected,
java.lang.Class actual)
expected - The expected class nameactual - The actual class name
protected boolean checkType(java.lang.Object[] arguments,
java.lang.Class expected)
arguments - The argumentsexpected - The expected class
protected boolean checkType(java.lang.Object[] arguments,
java.lang.Class[] expectedClasses)
|
COSMOS ${releaseVersion} resource-modeling Project Internal API Specification |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||