public interface ModelElementFacade
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 all constraints belonging to the model element.
|
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()
Return the model containing this model element (multiple models may be loaded and processed
at the same time).
|
String |
getName()
The name of the model element.
|
ModelElementFacade |
getPackage()
Gets the package to which this model element belongs.
|
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 the root package for the model element.
|
Collection<DependencyFacade> |
getSourceDependencies()
Gets the dependencies for which this model element is the source.
|
StateMachineFacade |
getStateMachineContext()
If this model element is the context of an activity graph, this represents that activity
graph.
|
Collection<String> |
getStereotypeNames()
The collection of ALL stereotype names for this model element.
|
Collection<StereotypeFacade> |
getStereotypes()
Gets all stereotypes for this model element.
|
Collection<TaggedValueFacade> |
getTaggedValues()
Return the TaggedValues associated with this model element, under all stereotypes.
|
Collection<DependencyFacade> |
getTargetDependencies()
Gets the dependencies for which this model element is the target.
|
Object |
getTemplateParameter(String parameterName)
Get the template parameter for this model element having the parameterName
|
Collection<TemplateParameterFacade> |
getTemplateParameters()
Get the template parameters for this model element
|
String |
getValidationName()
Gets the name of the metafacade used within validation messages.
|
Object |
getValidationOwner()
Gets the metafacade that acts as the
owner of this metafacade. |
String |
getVisibility()
The visibility (i.e.
|
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.
|
void |
initialize()
Provides any required initialization of the metafacade.
|
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()
Indicates the metafacade type (used for metafacade mappings).
|
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.
|
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)
Performs validation of any invariants found on this model element
and stores the messages within the
validationMessages
collection. |
boolean isModelElementFacadeMetaType()
true
void initialize()
Object getValidationOwner()
owner
of this metafacade.
(for example: an operation is an owner of its parameters, etc). This is used
by AndroMDA's validation framework to provide more context as to where the
error has occurred.String getValidationName()
void validateInvariants(Collection<ModelValidationMessage> validationMessages)
validationMessages
collection.validationMessages
- the collection of messages to which additional
validation messages will be added if invariants are broken.void copyTaggedValues(ModelElementFacade element)
element
- ModelElementFacadeObject findTaggedValue(String tagName)
tagName
- StringCollection<Object> findTaggedValues(String tagName)
tagName
- StringString getBindedFullyQualifiedName(ModelElementFacade bindedElement)
bindedElement
- ModelElementFacadeCollection<ConstraintFacade> getConstraints()
Collection<ConstraintFacade> getConstraints(String kind)
kind
- StringString getDocumentation(String indent)
getDocumentation(indent, 64)
.indent
- StringString getDocumentation(String indent, int lineLength)
getDocumentation(indent, lineLength, true)
.indent
- StringlineLength
- intString getDocumentation(String indent, int lineLength, boolean htmlStyle)
indent
- StringlineLength
- inthtmlStyle
- booleanString getFullyQualifiedName()
String getFullyQualifiedName(boolean modelName)
modelName
- booleanString getFullyQualifiedNamePath()
Collection<String> getKeywords()
TypeMappings getLanguageMappings()
ModelFacade getModel()
ModelElementFacade getPackage()
String getPackageName()
String getPackageName(boolean modelName)
modelName
- booleanString getPackagePath()
String getQualifiedName()
PackageFacade getRootPackage()
Collection<DependencyFacade> getSourceDependencies()
StateMachineFacade getStateMachineContext()
Collection<String> getStereotypeNames()
Collection<StereotypeFacade> getStereotypes()
Collection<TaggedValueFacade> getTaggedValues()
Collection<DependencyFacade> getTargetDependencies()
Object getTemplateParameter(String parameterName)
parameterName
- StringCollection<TemplateParameterFacade> getTemplateParameters()
String getVisibility()
boolean hasExactStereotype(String stereotypeName)
stereotypeName
- Stringboolean hasKeyword(String keywordName)
keywordName
- Stringboolean hasStereotype(String stereotypeName)
stereotypeName
- Stringboolean isBindingDependenciesPresent()
boolean isConstraintsPresent()
boolean isDocumentationPresent()
boolean isReservedWord()
boolean isTemplateParametersPresent()
boolean isValidIdentifierName()
String translateConstraint(String name, String translation)
name
- Stringtranslation
- StringString[] translateConstraints(String translation)
translation
- StringString[] translateConstraints(String kind, String translation)
kind
- Stringtranslation
- StringCopyright © 2003–2014 AndroMDA.org. All rights reserved.