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, setStoredOnDisposal
protected 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
EolModelLoadingException
public Object getEnumerationValue(String enumeration, String label) throws EolEnumerationValueNotFoundException
public Collection<?> allContents()
IModel
public Set<PatternMatch> getMatches()
public Collection<?> getAllOfType(String type) throws EolModelElementTypeNotFoundException
public Collection<?> getAllOfKind(String type) throws EolModelElementTypeNotFoundException
public String getTypeNameOf(Object instance)
IModel
instance
- The model object whose type is to be determined.public Object createInstance(String type) throws EolModelElementTypeNotFoundException, EolNotInstantiableModelElementTypeException
public void deleteElement(Object instance) throws EolRuntimeException
EolRuntimeException
public boolean owns(Object instance)
IModel
instance
- the Java object to test.public boolean isInstantiable(String type)
public boolean isModelElement(Object instance)
IModel
isModelElement
in interface IModel
isModelElement
in class Model
instance
- the Java object to test.public boolean hasType(String type)
public boolean store(String location)
public boolean store()
public IPropertyGetter getPropertyGetter()
getPropertyGetter
in interface IModel
getPropertyGetter
in class Model
public IPropertySetter getPropertySetter()
getPropertySetter
in interface IModel
getPropertySetter
in class Model
Copyright © 2020. All rights reserved.