|
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.Definition
com.ibm.xtools.patterns.framework.uml2.persistence.PatternDefinitionStore
This is the UML2 pattern definition store which is the default persistent store for pattern definitions in the framework. The pattern definition store is compatible and is used in conjunction with the UML2 pattern instance 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 definition store is to persist and reconstitute pattern definitions from UML2 models. Some operations offered by the pattern instance store require an instance of a pattern definition store in order to run. For the UML2 persistent store implementation, the pattern definition is mapped to a UML2 templateable element. This UML2 templateable element contains a UML2 template signature that in turn owns zero to many UML2 template parameters. The pattern instance store is responsible for the eventual template binding dependency between the bound template and the template signature of the defining template.
Constructor Summary | |
protected |
PatternDefinitionStore()
Instantiation only from subclasses and this package's classes. |
Method Summary | |
boolean |
containsDefinition(AbstractPatternDefinition definition,
Object containerObject)
Determines if a definition already exists within the container object scope. |
Object |
createDefinition(AbstractPatternDefinition definition,
Object containerObject)
Creates a new pattern definition within the persistent pattern store. |
static EAnnotation |
createEAnnotation(EModelElement container,
String source)
Creates an annotation. |
Object |
ensureDefinition(AbstractPatternDefinition definition,
Object containerObject)
Ensure a pattern definition already exists in the pattern store for the given pattern definition using the container object as the scope. |
Object |
getDefinition(AbstractPatternDefinition definition,
Object containerObject)
Retrieve a pattern definition representation in the persistent store given the pattern definition and container object. |
IPatternIdentity |
getDefinitionIdentity(Object representation)
Get the definition identity associated with the instance representation object being passed in. |
static IPatternIdentity |
getTemplateIdentity(TemplateableElement template)
Retrieves the pattern identity from the tagged template. |
Object |
getValidContainer(Object containerHint)
Get a valid container for an pattern instance to live given the input target object. |
static String |
putDetail(EAnnotation annotation,
String key,
String value)
Adds or sets a detail entry given a key/value pair. |
void |
removeDefinition(AbstractPatternDefinition definition,
Object containerObject)
Remove a pattern definition in the persistent pattern store with the given definition using the container object as the scope. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected PatternDefinitionStore()
Method Detail |
public static IPatternIdentity getTemplateIdentity(TemplateableElement template)
template
- the template tagged with the pattern identity
public boolean containsDefinition(AbstractPatternDefinition definition, Object containerObject)
AbstractPatternStore.Definition
containsDefinition
in class AbstractPatternStore.Definition
definition
- the pattern definition of interestcontainerObject
- the container object to use as the scope
public Object createDefinition(AbstractPatternDefinition definition, Object containerObject)
AbstractPatternStore.Definition
createDefinition
in class AbstractPatternStore.Definition
definition
- the pattern definition of interestcontainerObject
- the container object to use as the scope
public Object ensureDefinition(AbstractPatternDefinition definition, Object containerObject)
AbstractPatternStore.Definition
ensureDefinition
in class AbstractPatternStore.Definition
definition
- the pattern definition of interestcontainerObject
- the container object to use as the scope
public Object getDefinition(AbstractPatternDefinition definition, Object containerObject)
AbstractPatternStore.Definition
getDefinition
in class AbstractPatternStore.Definition
definition
- the pattern definition of interestcontainerObject
- the container object to use as the scope
public IPatternIdentity getDefinitionIdentity(Object representation)
AbstractPatternStore.Definition
getDefinitionIdentity
in class AbstractPatternStore.Definition
representation
- the definition representation to retrieve the pattern
identity from
public Object getValidContainer(Object containerHint)
AbstractPatternStore.Definition
getValidContainer
in class AbstractPatternStore.Definition
containerHint
- the container candidate or container hint
public void removeDefinition(AbstractPatternDefinition definition, Object containerObject)
AbstractPatternStore.Definition
removeDefinition
in class AbstractPatternStore.Definition
definition
- the pattern definition of interestcontainerObject
- the container object to use as the scopepublic static EAnnotation createEAnnotation(EModelElement container, String source)
container
- The annotation container.source
- The annotation source.
public static String putDetail(EAnnotation annotation, String key, String value)
annotation
- The annotation.key
- The key.value
- The value.
|
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.