public class PatternMatchModel extends Model
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,Set<Object>> |
componentMap |
protected Set<PatternMatch> |
matches |
protected Map<String,Collection<PatternMatch>> |
matchMap |
aliases, ENV_PREFIX, name, PROPERTY_ALIASES, PROPERTY_NAME, PROPERTY_READONLOAD, PROPERTY_READONLY, PROPERTY_STOREONDISPOSAL, propertyGetter, propertySetter, readOnLoad, storeOnDisposal| Constructor and Description |
|---|
PatternMatchModel() |
| Modifier and Type | Method and Description |
|---|---|
void |
addMatch(PatternMatch match) |
void |
addMatches(Collection<PatternMatch> matches) |
Collection<?> |
allContents()
Returns a collection containing all of the objects contained in
this model.
|
Object |
createInstance(String type) |
void |
deleteElement(Object instance) |
void |
dispose() |
Collection<?> |
getAllOfKind(String type) |
Collection<?> |
getAllOfType(String type) |
Object |
getElementById(String id) |
String |
getElementId(Object instance) |
Object |
getEnumerationValue(String enumeration,
String label) |
Set<PatternMatch> |
getMatches() |
IPropertyGetter |
getPropertyGetter() |
IPropertySetter |
getPropertySetter() |
String |
getTypeNameOf(Object instance)
Returns a string representing the type of the instance object.
|
Object |
getTypeOf(Object instance) |
boolean |
hasType(String type) |
boolean |
isInstantiable(String type) |
boolean |
isModelElement(Object instance)
Used to test whether a Java object can be contained by this model.
|
void |
load() |
boolean |
owns(Object instance)
Used to test whether an object is contained in this model.
|
void |
setElementId(Object instance,
String newId) |
void |
setPatterns(Collection<Pattern> patterns) |
boolean |
store() |
boolean |
store(String location) |
String |
toString() |
allInstances, createInstance, getAliases, getFullyQualifiedTypeNameOf, getMetamodel, getName, getTransactionSupport, isOfKind, isOfType, isPropertySet, isReadOnLoad, isStoredOnDisposal, knowsAboutProperty, load, load, load, setName, setReadOnLoad, setStoredOnDisposalprotected final Map<String,Collection<PatternMatch>> matchMap
protected final Set<PatternMatch> matches
public void dispose()
public void addMatches(Collection<PatternMatch> matches)
matches - public void addMatch(PatternMatch match)
public void setPatterns(Collection<Pattern> patterns)
public void load()
throws EolModelLoadingException
EolModelLoadingExceptionpublic Object getEnumerationValue(String enumeration, String label) throws EolEnumerationValueNotFoundException
public Collection<?> allContents()
IModelpublic Set<PatternMatch> getMatches()
public Collection<?> getAllOfType(String type) throws EolModelElementTypeNotFoundException
public Collection<?> getAllOfKind(String type) throws EolModelElementTypeNotFoundException
public String getTypeNameOf(Object instance)
IModelinstance - The model object whose type is to be determined.public Object createInstance(String type) throws EolModelElementTypeNotFoundException, EolNotInstantiableModelElementTypeException
public void deleteElement(Object instance) throws EolRuntimeException
EolRuntimeExceptionpublic boolean owns(Object instance)
IModelinstance - the Java object to test.public boolean isInstantiable(String type)
public boolean isModelElement(Object instance)
IModelisModelElement in interface IModelisModelElement in class Modelinstance - the Java object to test.public boolean hasType(String type)
public boolean store(String location)
public boolean store()
public IPropertyGetter getPropertyGetter()
getPropertyGetter in interface IModelgetPropertyGetter in class Modelpublic IPropertySetter getPropertySetter()
getPropertySetter in interface IModelgetPropertySetter in class ModelCopyright © 2020. All rights reserved.