|
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
com.ibm.xtools.patterns.framework.uml2.persistence.PatternInstanceStore
This is the UML2 pattern instance store which is the default persistent store for pattern instances in the framework. The pattern instance store is compatible and is used in conjunction with the UML2 pattern definition store also found in this package. A concrete factory is also supplied in this package in order to keep the family of concrete products (the pattern definition store and the pattern instance store) instantiated together when the concrete pattern store factory is selected by the client (or by default) via an abstract configuration. The purpose of the pattern instance store is to persist and reconstitute pattern instances from UML2 models. For the UML2 persistent store implementation, the pattern instance is mapped to a UML2 templateable element. This UML2 templateable element contains a UML2 template binding that points to the UML2 template signature as persisted by the pattern definition store.
Constructor Summary | |
protected |
PatternInstanceStore()
Instantiation only from subclasses and this package's classes. |
Method Summary | |
void |
addParameterValues(AbstractPatternInstance instance,
IParameterDescriptor parameter,
Object[] value)
Adds a parameter value to the given instance's persistent representation. |
boolean |
containsInstance(AbstractPatternInstance instance)
Determines if a pattern instance is already contained with the pattern instance store. |
Object |
createInstance(AbstractPatternStore.Definition definitionStore,
AbstractPatternInstance instance,
Object targetObject)
Creates a new pattern instance in the pattern instance store. |
Object |
getDefinition(AbstractPatternInstance instance)
|
IPatternIdentity |
getDefinitionIdentity(AbstractPatternStore.Definition definitionStore,
Object representation)
Get the definition identity associated with the instance representation object being passed in. |
Object[] |
getParameterValues(AbstractPatternInstance instance,
IParameterDescriptor parameter)
Get the persisted parameter values for the given instance and parameter descriptor. |
static boolean |
isInstanceRepresentation(Object representation)
Determines if the representation object passed in is an instance representation. |
void |
removeInstance(AbstractPatternInstance instance)
Remove the persisted pattern instance given the transient pattern instance. |
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 |
protected PatternInstanceStore()
Method Detail |
public static boolean isInstanceRepresentation(Object representation)
representation
- a potential instance representation
public void addParameterValues(AbstractPatternInstance instance, IParameterDescriptor parameter, Object[] value)
AbstractPatternStore.Instance
addParameterValues
in class AbstractPatternStore.Instance
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 boolean containsInstance(AbstractPatternInstance instance)
AbstractPatternStore.Instance
containsInstance
in class AbstractPatternStore.Instance
instance
- the pattern instance of interest
public Object createInstance(AbstractPatternStore.Definition definitionStore, AbstractPatternInstance instance, Object targetObject)
AbstractPatternStore.Instance
createInstance
in class AbstractPatternStore.Instance
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 Object getDefinition(AbstractPatternInstance instance)
getDefinition
in class AbstractPatternStore.Instance
public IPatternIdentity getDefinitionIdentity(AbstractPatternStore.Definition definitionStore, Object representation)
AbstractPatternStore.Instance
getDefinitionIdentity
in class AbstractPatternStore.Instance
definitionStore
- the definition store that is used internally by the instance
store when needed to implement this method's underlying
behaviorrepresentation
- 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 Object[] getParameterValues(AbstractPatternInstance instance, IParameterDescriptor parameter)
AbstractPatternStore.Instance
getParameterValues
in class AbstractPatternStore.Instance
instance
- the instance of interestparameter
- the parameter descriptor that qualifies the values to
reconstitute
public void removeInstance(AbstractPatternInstance instance)
AbstractPatternStore.Instance
removeInstance
in class AbstractPatternStore.Instance
instance
- the instance corresponding to the pattern store instance to
removepublic void removeParameterValues(AbstractPatternInstance instance, IParameterDescriptor parameter, Object[] value)
AbstractPatternStore.Instance
removeParameterValues
in class AbstractPatternStore.Instance
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 store
|
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.