public class ModelElementSelectionInfo extends Object implements MessageSource
Modifier and Type | Class and Description |
---|---|
static class |
ModelElementSelectionInfo.ModelElementType |
Constructor and Description |
---|
ModelElementSelectionInfo()
Default model element selection, with
null for all filter
criteria. |
ModelElementSelectionInfo(ModelElementSelectionInfo.ModelElementType modelElementType,
Pattern modelElementStereotypePattern,
Pattern modelElementNamePattern,
Pattern modelElementOwnerNamePattern,
Pattern propertyValueTypeStereotypePattern,
Pattern applicationSchemaNamePattern) |
Modifier and Type | Method and Description |
---|---|
Pattern |
getApplicationSchemaNamePattern() |
Pattern |
getModelElementNamePattern() |
Pattern |
getModelElementOwnerNamePattern() |
Pattern |
getModelElementStereotypePattern() |
ModelElementSelectionInfo.ModelElementType |
getModelElementType() |
Pattern |
getPropertyValueTypeStereotypePattern() |
boolean |
hasApplicationSchemaNamePattern() |
boolean |
hasModelElementNamePattern() |
boolean |
hasModelElementOwnerNamePattern() |
boolean |
hasModelElementStereotypePattern() |
boolean |
hasModelElementType() |
boolean |
hasPropertyValueTypeStereotypePattern() |
boolean |
matches(Info infoType)
Determines if the given info type matches the filter criteria defined by
this object.
|
String |
message(int mnr)
Return a message for a message number.
|
static ModelElementSelectionInfo |
parse(Element element) |
public ModelElementSelectionInfo()
null
for all filter
criteria. Means that this ModelElementSelectionInfo will select any model
element.public ModelElementSelectionInfo(ModelElementSelectionInfo.ModelElementType modelElementType, Pattern modelElementStereotypePattern, Pattern modelElementNamePattern, Pattern modelElementOwnerNamePattern, Pattern propertyValueTypeStereotypePattern, Pattern applicationSchemaNamePattern)
public Pattern getModelElementStereotypePattern()
null
if this
filter criterium was not set in the configuration.public Pattern getPropertyValueTypeStereotypePattern()
null
if
this filter criterium was not set in the configuration.public Pattern getModelElementNamePattern()
null
if this filter
criterium was not set in the configuration.public Pattern getModelElementOwnerNamePattern()
null
if this
filter criterium was not set in the configuration.public ModelElementSelectionInfo.ModelElementType getModelElementType()
null
if this filter criterium was not set in the
configuration.public Pattern getApplicationSchemaNamePattern()
null
if this
filter criterium was not set in the configuration.public boolean hasModelElementNamePattern()
true
if this configuration entry has a value for the
modelElementName attribute, else false
public boolean hasModelElementOwnerNamePattern()
true
if this configuration entry has a value for the
modelElementOwnerName attribute, else false
public boolean hasModelElementStereotypePattern()
true
if this configuration entry has a value for the
modelElementStereotype attribute, else false
public boolean hasPropertyValueTypeStereotypePattern()
true
if this configuration entry has a value for the
propertyValueTypeStereotype attribute, else false
public boolean hasApplicationSchemaNamePattern()
true
if this configuration entry has a value for the
applicationSchemaName attribute, else false
public boolean hasModelElementType()
true
if this configuration entry has a value for the
modelElementType attribute, else false
public boolean matches(Info infoType)
infoType
- true
if the info type matches the filter criteria,
otherwise false
.public static ModelElementSelectionInfo parse(Element element)
public String message(int mnr)
MessageSource
message
in interface MessageSource
Copyright © 2017. All rights reserved.