|
IBM Rational Software Modeler Release 6.0 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.ibm.xtools.patterns.framework.AbstractPatternStore.Instance
The abstract pattern store instance class defines the methods necessary to persist and reconsitute persisted pattern instances.
| Constructor Summary | |
AbstractPatternStore.Instance()
|
|
| Method Summary | |
abstract void |
addParameterValues(AbstractPatternInstance instance,
IParameterDescriptor parameter,
Object[] value)
Adds a parameter value to the given instance's persistent representation. |
abstract boolean |
containsInstance(AbstractPatternInstance instance)
Determines if a pattern instance is already contained with the pattern instance store. |
abstract Object |
createInstance(AbstractPatternStore.Definition definitionStore,
AbstractPatternInstance instance,
Object targetObject)
Creates a new pattern instance in the pattern instance store. |
abstract Object |
getDefinition(AbstractPatternInstance instance)
|
abstract IPatternIdentity |
getDefinitionIdentity(AbstractPatternStore.Definition definitionStore,
Object instance)
Get the definition identity associated with the instance representation object being passed in. |
abstract Object[] |
getParameterValues(AbstractPatternInstance instance,
IParameterDescriptor parameter)
Get the persisted parameter values for the given instance and parameter descriptor. |
abstract void |
removeInstance(AbstractPatternInstance instance)
Remove the persisted pattern instance given the transient pattern instance. |
abstract void |
removeParameterValues(AbstractPatternInstance instance,
IParameterDescriptor parameter,
Object[] value)
Remove the given parameter values from the pattern instance store. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public AbstractPatternStore.Instance()
| Method Detail |
public abstract void addParameterValues(AbstractPatternInstance instance,
IParameterDescriptor parameter,
Object[] value)
instance - the instance of interestparameter - the parameter to add a value tovalue - the value to be added to the given parameter within the
instance storepublic abstract boolean containsInstance(AbstractPatternInstance instance)
instance - the pattern instance of interest
public abstract Object createInstance(AbstractPatternStore.Definition definitionStore,
AbstractPatternInstance instance,
Object targetObject)
definitionStore - the associated definition store, this is needed so any
appropriate connections between the definition and instance
can be madeinstance - the instance to be persisted in the pattern instance storetargetObject - the target object defines the context
public abstract IPatternIdentity getDefinitionIdentity(AbstractPatternStore.Definition definitionStore,
Object instance)
definitionStore - the definition store that is used internally by the instance
store when needed to implement this method's underlying
behaviorinstance - the object that represents the instance in the persistent
store (or has some known relationship to the object that
represents the instance in the persistent store)
public abstract Object[] getParameterValues(AbstractPatternInstance instance,
IParameterDescriptor parameter)
instance - the instance of interestparameter - the parameter descriptor that qualifies the values to
reconstitute
public abstract void removeInstance(AbstractPatternInstance instance)
instance - the instance corresponding to the pattern store instance to
remove
public abstract void removeParameterValues(AbstractPatternInstance instance,
IParameterDescriptor parameter,
Object[] value)
instance - the instance that qualifies the values to removeparameter - the parameter of interestvalue - the value to remove from the persisted values in the pattern
instance storepublic abstract Object getDefinition(AbstractPatternInstance instance)
|
IBM Rational Software Modeler Release 6.0 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2004. All rights reserved.