public abstract class ModelElementFacadeLogic extends MetafacadeBase implements ModelElementFacade
ModelElementFacade
,
Serialized FormModifier and Type | Field and Description |
---|---|
protected org.omg.uml.foundation.core.ModelElement |
metaObject
The underlying UML object
|
contextRoot
Modifier | Constructor and Description |
---|---|
protected |
ModelElementFacadeLogic(org.omg.uml.foundation.core.ModelElement metaObjectIn,
String context)
Create Metafacade implementation instance using the MetafacadeFactory from the context
|
Modifier and Type | Method and Description |
---|---|
void |
copyTaggedValues(ModelElementFacade element)
Copies all tagged values from the given ModelElementFacade to this model element facade.
|
Object |
findTaggedValue(String tagName)
Finds the tagged value with the specified 'tagName'.
|
Collection<Object> |
findTaggedValues(String tagName)
Returns all the values for the tagged value with the specified name.
|
String |
getBindedFullyQualifiedName(ModelElementFacade bindedElement)
Returns the fully qualified name of the model element.
|
Collection<ConstraintFacade> |
getConstraints()
Gets the model element to which the constraint applies (i.e.
|
Collection<ConstraintFacade> |
getConstraints(String kind)
Returns the constraints of the argument kind that have been placed onto this model.
|
String |
getDocumentation(String indent)
Gets the documentation for the model element, The indent argument is prefixed to each line.
|
String |
getDocumentation(String indent,
int lineLength)
This method returns the documentation for this model element, with the lines wrapped after
the specified number of characters, values of less than 1 will indicate no line wrapping is
required.
|
String |
getDocumentation(String indent,
int lineLength,
boolean htmlStyle)
This method returns the documentation for this model element, with the lines wrapped after
the specified number of characters, values of less than 1 will indicate no line wrapping is
required.
|
String |
getFullyQualifiedName()
The fully qualified name of this model element.
|
String |
getFullyQualifiedName(boolean modelName)
Returns the fully qualified name of the model element.
|
String |
getFullyQualifiedNamePath()
Returns the fully qualified name as a path, the returned value always starts with out a slash
'/'.
|
String |
getId()
Gets the unique identifier of the underlying model element.
|
Collection<String> |
getKeywords()
UML2: Retrieves the keywords for this element.
|
String |
getLabel()
UML2: Retrieves a localized label for this named element.
|
TypeMappings |
getLanguageMappings()
The language mappings that have been set for this model element.
|
ModelFacade |
getModel()
Represents a model element.
|
String |
getName()
The name of the model element.
|
ModelElementFacade |
getPackage()
Represents a model element.
|
String |
getPackageName()
The name of this model element's package.
|
String |
getPackageName(boolean modelName)
Gets the package name (optionally providing the ability to retrieve the model name and not
the mapped name).
|
String |
getPackagePath()
Returns the package as a path, the returned value always starts with out a slash '/'.
|
String |
getQualifiedName()
UML2: Returns the value of the 'Qualified Name' attribute.
|
PackageFacade |
getRootPackage()
Gets all the model elements belonging to the root package.
|
Collection<DependencyFacade> |
getSourceDependencies()
The source element of this dependency.
|
StateMachineFacade |
getStateMachineContext()
Represents a model element.
|
Collection<String> |
getStereotypeNames()
The collection of ALL stereotype names for this model element.
|
Collection<StereotypeFacade> |
getStereotypes()
Represents a model element.
|
Collection<TaggedValueFacade> |
getTaggedValues()
Represents a model element.
|
Collection<DependencyFacade> |
getTargetDependencies()
Gets the element to which the dependencies belong.
|
Object |
getTemplateParameter(String parameterName)
Get the template parameter for this model element having the parameterName
|
Collection<TemplateParameterFacade> |
getTemplateParameters()
Represents a model element.
|
String |
getVisibility()
The visibility (i.e.
|
protected abstract void |
handleCopyTaggedValues(ModelElementFacade element)
Method to be implemented in descendants
Copies all tagged values from the given ModelElementFacade to this model element facade.
|
protected abstract Object |
handleFindTaggedValue(String tagName)
Method to be implemented in descendants
Finds the tagged value with the specified 'tagName'.
|
protected abstract Collection<Object> |
handleFindTaggedValues(String tagName)
Method to be implemented in descendants
Returns all the values for the tagged value with the specified name.
|
protected abstract String |
handleGetBindedFullyQualifiedName(ModelElementFacade bindedElement)
Method to be implemented in descendants
Returns the fully qualified name of the model element.
|
protected abstract Collection |
handleGetConstraints()
UML Specific type is returned in Collection, transformed by shieldedElements to AndroMDA Metafacade type
|
protected abstract Collection<ConstraintFacade> |
handleGetConstraints(String kind)
Method to be implemented in descendants
Returns the constraints of the argument kind that have been placed onto this model.
|
protected abstract String |
handleGetDocumentation(String indent)
Method to be implemented in descendants
Gets the documentation for the model element, The indent argument is prefixed to each line.
|
protected abstract String |
handleGetDocumentation(String indent,
int lineLength)
Method to be implemented in descendants
This method returns the documentation for this model element, with the lines wrapped after
the specified number of characters, values of less than 1 will indicate no line wrapping is
required.
|
protected abstract String |
handleGetDocumentation(String indent,
int lineLength,
boolean htmlStyle)
Method to be implemented in descendants
This method returns the documentation for this model element, with the lines wrapped after
the specified number of characters, values of less than 1 will indicate no line wrapping is
required.
|
protected abstract String |
handleGetFullyQualifiedName() |
protected abstract String |
handleGetFullyQualifiedName(boolean modelName)
Method to be implemented in descendants
Returns the fully qualified name of the model element.
|
protected abstract String |
handleGetFullyQualifiedNamePath() |
protected abstract String |
handleGetId() |
protected abstract Collection<String> |
handleGetKeywords() |
protected abstract String |
handleGetLabel() |
protected abstract TypeMappings |
handleGetLanguageMappings() |
protected abstract Object |
handleGetModel()
UML Specific type is transformed by shieldedElements to AndroMDA Metafacade type
|
protected abstract String |
handleGetName() |
protected abstract Object |
handleGetPackage()
UML Specific type is transformed by shieldedElements to AndroMDA Metafacade type
|
protected abstract String |
handleGetPackageName() |
protected abstract String |
handleGetPackageName(boolean modelName)
Method to be implemented in descendants
Gets the package name (optionally providing the ability to retrieve the model name and not
the mapped name).
|
protected abstract String |
handleGetPackagePath() |
protected abstract String |
handleGetQualifiedName() |
protected abstract Object |
handleGetRootPackage()
UML Specific type is transformed by shieldedElements to AndroMDA Metafacade type
|
protected abstract Collection |
handleGetSourceDependencies()
UML Specific type is returned in Collection, transformed by shieldedElements to AndroMDA Metafacade type
|
protected abstract Object |
handleGetStateMachineContext()
UML Specific type is transformed by shieldedElements to AndroMDA Metafacade type
|
protected abstract Collection<String> |
handleGetStereotypeNames() |
protected abstract Collection |
handleGetStereotypes()
UML Specific type is returned in Collection, transformed by shieldedElements to AndroMDA Metafacade type
|
protected abstract Collection |
handleGetTaggedValues()
UML Specific type is returned in Collection, transformed by shieldedElements to AndroMDA Metafacade type
|
protected abstract Collection |
handleGetTargetDependencies()
UML Specific type is returned in Collection, transformed by shieldedElements to AndroMDA Metafacade type
|
protected abstract Object |
handleGetTemplateParameter(String parameterName)
Method to be implemented in descendants
Get the template parameter for this model element having the parameterName
|
protected abstract Collection |
handleGetTemplateParameters()
UML Specific type is returned in Collection, transformed by shieldedElements to AndroMDA Metafacade type
|
protected abstract String |
handleGetVisibility() |
protected abstract boolean |
handleHasExactStereotype(String stereotypeName)
Method to be implemented in descendants
Returns true if the model element has the exact stereotype (meaning no stereotype inheritance
is taken into account when searching for the stereotype), false otherwise.
|
protected abstract boolean |
handleHasKeyword(String keywordName)
Method to be implemented in descendants
Does the UML Element contain the named Keyword? Keywords can be separated by space, comma,
pipe, semicolon, or << >>
|
protected abstract boolean |
handleHasStereotype(String stereotypeName)
Method to be implemented in descendants
Returns true if the model element has the specified stereotype.
|
protected abstract boolean |
handleIsBindingDependenciesPresent() |
protected abstract boolean |
handleIsConstraintsPresent() |
protected abstract boolean |
handleIsDocumentationPresent() |
protected abstract boolean |
handleIsReservedWord() |
protected abstract boolean |
handleIsTemplateParametersPresent() |
protected abstract boolean |
handleIsValidIdentifierName() |
protected abstract String |
handleTranslateConstraint(String name,
String translation)
Method to be implemented in descendants
Searches for the constraint with the specified 'name' on this model element, and if found
translates it using the specified 'translation' from a translation library discovered by the
framework.
|
protected abstract String[] |
handleTranslateConstraints(String translation)
Method to be implemented in descendants
Translates all constraints belonging to this model element with the given 'translation'.
|
protected abstract String[] |
handleTranslateConstraints(String kind,
String translation)
Method to be implemented in descendants
Translates the constraints of the specified 'kind' belonging to this model element.
|
boolean |
hasExactStereotype(String stereotypeName)
Returns true if the model element has the exact stereotype (meaning no stereotype inheritance
is taken into account when searching for the stereotype), false otherwise.
|
boolean |
hasKeyword(String keywordName)
Does the UML Element contain the named Keyword? Keywords can be separated by space, comma,
pipe, semicolon, or << >>
|
boolean |
hasStereotype(String stereotypeName)
Returns true if the model element has the specified stereotype.
|
boolean |
isBindingDependenciesPresent()
True if there are target dependencies from this element that are instances of BindingFacade.
|
boolean |
isConstraintsPresent()
Indicates if any constraints are present on this model element.
|
boolean |
isDocumentationPresent()
Indicates if any documentation is present on this model element.
|
boolean |
isModelElementFacadeMetaType() |
boolean |
isReservedWord()
True if this element name is a reserved word in Java, C#, ANSI or ISO C, C++, JavaScript.
|
boolean |
isTemplateParametersPresent()
True is there are template parameters on this model element.
|
boolean |
isValidIdentifierName()
True if this element name is a valid identifier name in Java, C#, ANSI or ISO C, C++,
JavaScript.
|
void |
resetMetafacadeContext(String context)
Reset context only for non-root metafacades
|
String |
toString() |
String |
translateConstraint(String name,
String translation)
Searches for the constraint with the specified 'name' on this model element, and if found
translates it using the specified 'translation' from a translation library discovered by the
framework.
|
String[] |
translateConstraints(String translation)
Translates all constraints belonging to this model element with the given 'translation'.
|
String[] |
translateConstraints(String kind,
String translation)
Translates the constraints of the specified 'kind' belonging to this model element.
|
void |
validateInvariants(Collection<ModelValidationMessage> validationMessages) |
compareTo, equals, getConfiguredProperty, getDebug, getMetafacadeContext, getMetaObject, getValidationName, getValidationOwner, hashCode, initialize, isConfiguredProperty, isMetafacadePropertyCachingEnabled, setMetafacadeContext, setProperty, shieldedElement, shieldedElements, THIS, validate
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getValidationName, getValidationOwner, initialize
protected org.omg.uml.foundation.core.ModelElement metaObject
ModelElement
protected ModelElementFacadeLogic(org.omg.uml.foundation.core.ModelElement metaObjectIn, String context)
metaObjectIn
- context
- public void resetMetafacadeContext(String context)
resetMetafacadeContext
in class MetafacadeBase
context
- public boolean isModelElementFacadeMetaType()
isModelElementFacadeMetaType
in interface ModelElementFacade
ModelElementFacade
protected abstract String handleGetVisibility()
ModelElementFacade.getVisibility()
public final String getVisibility()
getVisibility
in interface ModelElementFacade
protected abstract String handleGetPackagePath()
ModelElementFacade.getPackagePath()
public final String getPackagePath()
getPackagePath
in interface ModelElementFacade
protected abstract String handleGetName()
ModelElementFacade.getName()
public final String getName()
getName
in interface ModelElementFacade
protected abstract String handleGetPackageName()
ModelElementFacade.getPackageName()
public final String getPackageName()
getPackageName
in interface ModelElementFacade
protected abstract String handleGetFullyQualifiedName()
ModelElementFacade.getFullyQualifiedName()
public final String getFullyQualifiedName()
getFullyQualifiedName
in interface ModelElementFacade
protected abstract String handleGetFullyQualifiedNamePath()
ModelElementFacade.getFullyQualifiedNamePath()
public final String getFullyQualifiedNamePath()
getFullyQualifiedNamePath
in interface ModelElementFacade
protected abstract TypeMappings handleGetLanguageMappings()
ModelElementFacade.getLanguageMappings()
public final TypeMappings getLanguageMappings()
getLanguageMappings
in interface ModelElementFacade
protected abstract Collection<String> handleGetStereotypeNames()
ModelElementFacade.getStereotypeNames()
public final Collection<String> getStereotypeNames()
getStereotypeNames
in interface ModelElementFacade
protected abstract String handleGetId()
ModelElementFacade.getId()
public final String getId()
getId
in interface ModelElementFacade
protected abstract boolean handleIsConstraintsPresent()
ModelElementFacade.isConstraintsPresent()
public final boolean isConstraintsPresent()
isConstraintsPresent
in interface ModelElementFacade
protected abstract boolean handleIsBindingDependenciesPresent()
ModelElementFacade.isBindingDependenciesPresent()
public final boolean isBindingDependenciesPresent()
isBindingDependenciesPresent
in interface ModelElementFacade
protected abstract boolean handleIsTemplateParametersPresent()
ModelElementFacade.isTemplateParametersPresent()
public final boolean isTemplateParametersPresent()
isTemplateParametersPresent
in interface ModelElementFacade
protected abstract Collection<String> handleGetKeywords()
ModelElementFacade.getKeywords()
public final Collection<String> getKeywords()
getKeywords
in interface ModelElementFacade
protected abstract String handleGetLabel()
ModelElementFacade.getLabel()
public final String getLabel()
getLabel
in interface ModelElementFacade
protected abstract String handleGetQualifiedName()
ModelElementFacade.getQualifiedName()
public final String getQualifiedName()
getQualifiedName
in interface ModelElementFacade
protected abstract boolean handleIsReservedWord()
ModelElementFacade.isReservedWord()
public final boolean isReservedWord()
isReservedWord
in interface ModelElementFacade
protected abstract boolean handleIsDocumentationPresent()
ModelElementFacade.isDocumentationPresent()
public final boolean isDocumentationPresent()
isDocumentationPresent
in interface ModelElementFacade
protected abstract boolean handleIsValidIdentifierName()
ModelElementFacade.isValidIdentifierName()
public final boolean isValidIdentifierName()
isValidIdentifierName
in interface ModelElementFacade
protected abstract Object handleFindTaggedValue(String tagName)
tagName
- public Object findTaggedValue(String tagName)
findTaggedValue
in interface ModelElementFacade
tagName
- String
TODO: Model Documentation for
ModelElementFacade.findTaggedValue(tagName)protected abstract boolean handleHasStereotype(String stereotypeName)
stereotypeName
- public boolean hasStereotype(String stereotypeName)
hasStereotype
in interface ModelElementFacade
stereotypeName
- String
TODO: Model Documentation for
ModelElementFacade.hasStereotype(stereotypeName)protected abstract String handleGetDocumentation(String indent)
getDocumentation(indent, 64)
.indent
- public String getDocumentation(String indent)
getDocumentation(indent, 64)
.getDocumentation
in interface ModelElementFacade
indent
- String
Specifies the amount to indent by.
protected abstract String handleGetFullyQualifiedName(boolean modelName)
modelName
- public String getFullyQualifiedName(boolean modelName)
getFullyQualifiedName
in interface ModelElementFacade
modelName
- boolean
If true, then the original model name will be returned regardless of any underlying language
mappings used.protected abstract String handleGetDocumentation(String indent, int lineLength)
getDocumentation(indent, lineLength, true)
.indent
- lineLength
- public String getDocumentation(String indent, int lineLength)
getDocumentation(indent, lineLength, true)
.getDocumentation
in interface ModelElementFacade
indent
- String
TODO: Model Documentation for
ModelElementFacade.getDocumentation(indent)lineLength
- int
TODO: Model Documentation for
ModelElementFacade.getDocumentation(lineLength)protected abstract boolean handleHasExactStereotype(String stereotypeName)
stereotypeName
- public boolean hasExactStereotype(String stereotypeName)
hasExactStereotype
in interface ModelElementFacade
stereotypeName
- String
The name of the stereotype to check for.protected abstract String handleTranslateConstraint(String name, String translation)
name
- translation
- public String translateConstraint(String name, String translation)
translateConstraint
in interface ModelElementFacade
name
- String
The name of the constraint to find.translation
- String
The name of the translation to use. This must be a translation within a translation library
discovered by the framework.protected abstract String[] handleTranslateConstraints(String kind, String translation)
kind
- translation
- public String[] translateConstraints(String kind, String translation)
translateConstraints
in interface ModelElementFacade
kind
- String
The 'kind' of the constraint (i.e. inv, body, pre, post, etc.).translation
- String
The name of the translation to use. This must be a translation within a translation library
discovered by the framework.protected abstract String[] handleTranslateConstraints(String translation)
translation
- public String[] translateConstraints(String translation)
translateConstraints
in interface ModelElementFacade
translation
- String
The name of the translation to use. This must be a translation within a translation library
discovered by the framework.protected abstract Collection<ConstraintFacade> handleGetConstraints(String kind)
kind
- public Collection<ConstraintFacade> getConstraints(String kind)
getConstraints
in interface ModelElementFacade
kind
- String
TODO: Model Documentation for
ModelElementFacade.getConstraints(kind)protected abstract Collection<Object> handleFindTaggedValues(String tagName)
tagName
- public Collection<Object> findTaggedValues(String tagName)
findTaggedValues
in interface ModelElementFacade
tagName
- String
TODO: Model Documentation for
ModelElementFacade.findTaggedValues(tagName)protected abstract String handleGetDocumentation(String indent, int lineLength, boolean htmlStyle)
indent
- lineLength
- htmlStyle
- public String getDocumentation(String indent, int lineLength, boolean htmlStyle)
getDocumentation
in interface ModelElementFacade
indent
- String
TODO: Model Documentation for
ModelElementFacade.getDocumentation(indent)lineLength
- int
TODO: Model Documentation for
ModelElementFacade.getDocumentation(lineLength)htmlStyle
- boolean
TODO: Model Documentation for
ModelElementFacade.getDocumentation(htmlStyle)protected abstract String handleGetPackageName(boolean modelName)
modelName
- public String getPackageName(boolean modelName)
getPackageName
in interface ModelElementFacade
modelName
- boolean
A flag indicating whether or not the model name should be retrieved.protected abstract void handleCopyTaggedValues(ModelElementFacade element)
element
- public void copyTaggedValues(ModelElementFacade element)
copyTaggedValues
in interface ModelElementFacade
element
- ModelElementFacade
The element from which to copy the tagged values.protected abstract Object handleGetTemplateParameter(String parameterName)
parameterName
- public Object getTemplateParameter(String parameterName)
getTemplateParameter
in interface ModelElementFacade
parameterName
- String
TODO: Model Documentation for
ModelElementFacade.getTemplateParameter(parameterName)protected abstract boolean handleHasKeyword(String keywordName)
keywordName
- public boolean hasKeyword(String keywordName)
hasKeyword
in interface ModelElementFacade
keywordName
- String
Keyword to find in the list of UML Element Keywords.protected abstract String handleGetBindedFullyQualifiedName(ModelElementFacade bindedElement)
bindedElement
- public String getBindedFullyQualifiedName(ModelElementFacade bindedElement)
getBindedFullyQualifiedName
in interface ModelElementFacade
bindedElement
- ModelElementFacade
the element that will be used to find binding to the templates parameters of this element.public final Collection<DependencyFacade> getSourceDependencies()
getSourceDependencies
in interface ModelElementFacade
protected abstract Collection handleGetSourceDependencies()
public final Collection<DependencyFacade> getTargetDependencies()
getTargetDependencies
in interface ModelElementFacade
protected abstract Collection handleGetTargetDependencies()
public final Collection<ConstraintFacade> getConstraints()
getConstraints
in interface ModelElementFacade
protected abstract Collection handleGetConstraints()
public final Collection<StereotypeFacade> getStereotypes()
getStereotypes
in interface ModelElementFacade
protected abstract Collection handleGetStereotypes()
public final ModelFacade getModel()
getModel
in interface ModelElementFacade
protected abstract Object handleGetModel()
public final Collection<TaggedValueFacade> getTaggedValues()
getTaggedValues
in interface ModelElementFacade
protected abstract Collection handleGetTaggedValues()
public final Collection<TemplateParameterFacade> getTemplateParameters()
getTemplateParameters
in interface ModelElementFacade
protected abstract Collection handleGetTemplateParameters()
public final ModelElementFacade getPackage()
getPackage
in interface ModelElementFacade
protected abstract Object handleGetPackage()
public final PackageFacade getRootPackage()
getRootPackage
in interface ModelElementFacade
protected abstract Object handleGetRootPackage()
public final StateMachineFacade getStateMachineContext()
getStateMachineContext
in interface ModelElementFacade
protected abstract Object handleGetStateMachineContext()
public void validateInvariants(Collection<ModelValidationMessage> validationMessages)
validateInvariants
in interface ModelElementFacade
validateInvariants
in class MetafacadeBase
validationMessages
- CollectionMetafacadeBase.validateInvariants(Collection validationMessages)
public String toString()
toString
in class MetafacadeBase
Object.toString()
Copyright © 2003–2014 AndroMDA.org. All rights reserved.