|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.andromda.core.metafacade.MetafacadeBase
org.andromda.cartridges.java.metafacades.JavaClassLogic
public abstract class JavaClassLogic
Represents a Java class.
MetafacadeLogic for JavaClass
JavaClass,
Serialized Form| Field Summary | |
|---|---|
protected Object |
metaObject
The underlying UML object |
| Fields inherited from class org.andromda.core.metafacade.MetafacadeBase |
|---|
contextRoot, logger |
| Constructor Summary | |
|---|---|
protected |
JavaClassLogic(Object metaObjectIn,
String context)
Create Metafacade implementation instance using the MetafacadeFactory from the context |
| Method Summary | |
|---|---|
void |
copyTaggedValues(ModelElementFacade element)
Copies all tagged values from the given ModelElementFacade to this model element facade. |
AttributeFacade |
findAttribute(String name)
Return the attribute which name matches the parameter |
Object |
findTaggedValue(String tagName)
Finds the tagged value with the specified 'tagName'. |
Object |
findTaggedValue(String tagName,
boolean follow)
Finds the tagged value optional searching the entire inheritance hierarchy if 'follow' is set to true. |
Collection |
findTaggedValues(String tagName)
Returns all the values for the tagged value with the specified name. |
Collection<ClassifierFacade> |
getAbstractions()
Those abstraction dependencies for which this classifier is the client. |
Collection<ClassifierFacade> |
getAllAssociatedClasses()
Lists all classes associated to this one and any ancestor classes (through generalization). |
Collection<GeneralizableElementFacade> |
getAllGeneralizations()
All generalizations for this generalizable element, goes up the inheritance tree. |
Collection |
getAllProperties()
A collection containing all 'properties' of the classifier and its ancestors. |
Collection |
getAllRequiredConstructorParameters()
A collection containing all required and/or read-only 'properties' of the classifier and its ancestors. |
Collection<GeneralizableElementFacade> |
getAllSpecializations()
All specializations (travels down the inheritance hierarchy). |
ClassifierFacade |
getArray()
Gets the array type for this classifier. |
String |
getArrayName()
The name of the classifier as an array. |
Collection<ClassifierFacade> |
getAssociatedClasses()
Lists the classes associated to this one, there is no repitition of classes. |
List<AssociationEndFacade> |
getAssociationEnds()
Gets the association ends belonging to a classifier. |
List<AttributeFacade> |
getAttributes()
Gets the attributes that belong to the classifier. |
List |
getAttributes(boolean follow)
Gets all attributes for the classifier and if 'follow' is true goes up the inheritance hierarchy and gets the attributes from the super classes as well. |
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 |
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)
|
String |
getFullyQualifiedArrayName()
The fully qualified name of the classifier as an array. |
String |
getFullyQualifiedInterfaceImplementationName()
The fully qualified inteface implementation name. |
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 '/'. |
GeneralizableElementFacade |
getGeneralization()
Gets the direct generalization for this generalizable element. |
Collection<GeneralizationFacade> |
getGeneralizationLinks()
Gets the actual links that this generalization element is part of (it plays either the specialization or generalization). |
String |
getGeneralizationList()
A comma separated list of the fully qualified names of all generalizations. |
GeneralizableElementFacade |
getGeneralizationRoot()
The element found when you recursively follow the generalization path up to the root. |
Collection<GeneralizableElementFacade> |
getGeneralizations()
|
String |
getId()
Gets the unique identifier of the underlying model element. |
Collection<OperationFacade> |
getImplementationOperations()
Returns all those operations that could be implemented at this classifier's level. |
String |
getImplementedInterfaceList()
A comma separated list of the fully qualified names of all implemented interfaces. |
Collection<AttributeFacade> |
getInstanceAttributes()
Those attributes that are scoped to an instance of this class. |
List<OperationFacade> |
getInstanceOperations()
Those operations that are scoped to an instance of this class. |
Collection<ClassifierFacade> |
getInterfaceAbstractions()
Those interfaces that are abstractions of this classifier, this basically means this classifier realizes them. |
String |
getInterfaceImplementationName()
The name of the interface implementation. |
String |
getJavaNewString()
A String representing a new Constructor declaration for this classifier type to be used in a Java environment. |
String |
getJavaNullString()
A String representing the null-value for this classifier type to be used in a Java environment. |
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 elemnt. |
ModelFacade |
getModel()
|
String |
getName()
The name of the model element. |
Collection<ClassifierFacade> |
getNavigableConnectingEnds()
The other ends of this classifier's association ends which are navigable. |
List |
getNavigableConnectingEnds(boolean follow)
Get the other ends of this classifier's association ends which are navigable and if 'follow' is true goes up the inheritance hierarchy and gets the super association ends as well. |
ClassifierFacade |
getNonArray()
Assuming that the classifier is an array, this will return the non array type of the classifier from |
String |
getOperationCallFromAttributes()
The attributes from this classifier in the form of an operation call (this example would be in Java): '(String attributeOne, String attributeTwo). |
List<OperationFacade> |
getOperations()
The operations owned by this classifier. |
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 '/'. |
List |
getProperties()
A collection containing all 'properties' of the classifier. |
List |
getProperties(boolean follow)
Gets all properties (attributes and navigable association ends) for the classifier and if 'follow' is true goes up the inheritance hierarchy and gets the properties from the super classes as well. |
String |
getQualifiedName()
UML2: Returns the value of the 'Qualified Name' attribute. |
Collection |
getRequiredConstructorParameters()
A collection containing all required and/or read-only 'properties' of the classifier. |
PackageFacade |
getRootPackage()
Gets the root package for the model element. |
long |
getSerialVersionUID()
Returns the serial version UID of the underlying model element. |
Collection<DependencyFacade> |
getSourceDependencies()
Gets the dependencies for which this model element is the source. |
Collection<GeneralizableElementFacade> |
getSpecializations()
Gets the direct specializations (i.e. |
StateMachineFacade |
getStateMachineContext()
If this model element is the context of an activity graph, this represents that activity graph. |
Collection<AttributeFacade> |
getStaticAttributes()
Those attributes that are scoped to the definition of this class. |
List<OperationFacade> |
getStaticOperations()
Those operations that are scoped to the definition of this class. |
Collection<String> |
getStereotypeNames()
The collection of ALL stereotype names for this model element. |
Collection<StereotypeFacade> |
getStereotypes()
Gets all stereotypes for this model element. |
ClassifierFacade |
getSuperClass()
This class' superclass, returns the generalization if it is a ClassifierFacade, null otherwise. |
Collection<TaggedValueFacade> |
getTaggedValues()
|
Collection<DependencyFacade> |
getTargetDependencies()
Gets the dependencies for which this model element is the target. |
Object |
getTemplateParameter(String parameterName)
|
Collection<TemplateParameterFacade> |
getTemplateParameters()
|
String |
getValidationName()
|
Object |
getValidationOwner()
|
String |
getVisibility()
The visibility (i.e. |
String |
getWrapperName()
The wrapper name for this classifier if a mapped type has a defined wrapper class (ie. |
protected abstract String |
handleGetFullyQualifiedInterfaceImplementationName()
|
protected abstract String |
handleGetInterfaceImplementationName()
|
protected abstract boolean |
handleIsAbstractInterfaceImplementation()
|
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()
|
boolean |
isAbstract()
Indicates if this classifier is 'abstract'. |
boolean |
isAbstractInterfaceImplementation()
Whether or not the inteface implementation should be an abstract class. |
boolean |
isArrayType()
True if this classifier represents an array type. |
boolean |
isAssociationClass()
|
boolean |
isBindingDependenciesPresent()
|
boolean |
isBlobType()
Returns true if this type represents a Blob type. |
boolean |
isBooleanType()
Indicates if this type represents a boolean type or not. |
boolean |
isCharacterType()
Indicates if this type represents a char, Character, or java.lang.Character type or not. |
boolean |
isClassifierFacadeMetaType()
|
boolean |
isClobType()
Returns true if this type represents a Clob type. |
boolean |
isCollectionType()
True if this classifier represents a collection type. |
boolean |
isConstraintsPresent()
Indicates if any constraints are present on this model element. |
boolean |
isDataType()
True/false depending on whether or not this classifier represents a datatype. |
boolean |
isDateType()
True when this classifier is a date type. |
boolean |
isDocumentationPresent()
Indicates if any documentation is present on this model element. |
boolean |
isDoubleType()
Indicates if this type represents a Double type or not. |
boolean |
isEmbeddedValue()
Indicates whether or not this classifier represents an "EmbeddedValue'. |
boolean |
isEnumeration()
True if this classifier is in fact marked as an enumeration. |
boolean |
isFileType()
Returns true if this type represents a 'file' type. |
boolean |
isFloatType()
Indicates if this type represents a Float type or not. |
boolean |
isGeneralizableElementFacadeMetaType()
|
boolean |
isIntegerType()
Indicates if this type represents an int or Integer or java.lang.Integer type or not. |
boolean |
isInterface()
True/false depending on whether or not this Classifier represents an interface. |
boolean |
isJavaClassMetaType()
Indicates the metafacade type (used for metafacade mappings). |
boolean |
isLeaf()
True if this classifier cannot be extended and represent a leaf in the inheritance tree. |
boolean |
isListType()
True if this classifier represents a list type. |
boolean |
isLongType()
Indicates if this type represents a Long type or not. |
boolean |
isMapType()
Indicates whether or not this classifier represents a Map type. |
boolean |
isModelElementFacadeMetaType()
|
boolean |
isPrimitive()
Indicates whether or not this classifier represents a primitive type. |
boolean |
isReservedWord()
True if this element name is a reserved word in Java, C#, ANSI or ISO C, C++, JavaScript. |
boolean |
isSetType()
True if this classifier represents a set type. |
boolean |
isStringType()
Indicates whether or not this classifier represents a string type. |
boolean |
isTemplateParametersPresent()
|
boolean |
isTimeType()
Indicates whether or not this classifier represents a time type. |
boolean |
isWrappedPrimitive()
Returns true if this type is a wrapped primitive type. |
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)
|
| Methods inherited from class org.andromda.core.metafacade.MetafacadeBase |
|---|
compareTo, equals, getConfiguredProperty, getMetafacadeContext, getMetaObject, hashCode, isConfiguredProperty, isMetafacadePropertyCachingEnabled, setMetafacadeContext, setProperty, shieldedElement, shieldedElements, THIS, validate |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected Object metaObject
Object| Constructor Detail |
|---|
protected JavaClassLogic(Object metaObjectIn,
String context)
metaObjectIn - context - | Method Detail |
|---|
public void resetMetafacadeContext(String context)
resetMetafacadeContext in class MetafacadeBasecontext - MetafacadeBase.resetMetafacadeContext(String context)public boolean isJavaClassMetaType()
JavaClass
isJavaClassMetaType in interface JavaClassJavaClassprotected abstract String handleGetInterfaceImplementationName()
JavaClass.getInterfaceImplementationName()public final String getInterfaceImplementationName()
The name of the interface implementation.
getInterfaceImplementationName in interface JavaClassprotected abstract String handleGetFullyQualifiedInterfaceImplementationName()
JavaClass.getFullyQualifiedInterfaceImplementationName()public final String getFullyQualifiedInterfaceImplementationName()
The fully qualified inteface implementation name.
getFullyQualifiedInterfaceImplementationName in interface JavaClassprotected abstract boolean handleIsAbstractInterfaceImplementation()
JavaClass.isAbstractInterfaceImplementation()public final boolean isAbstractInterfaceImplementation()
Whether or not the inteface implementation should be an abstract class.
isAbstractInterfaceImplementation in interface JavaClasspublic boolean isClassifierFacadeMetaType()
isClassifierFacadeMetaType in interface ClassifierFacadeClassifierFacadepublic boolean isGeneralizableElementFacadeMetaType()
isGeneralizableElementFacadeMetaType in interface GeneralizableElementFacadeGeneralizableElementFacadepublic boolean isModelElementFacadeMetaType()
isModelElementFacadeMetaType in interface ModelElementFacadeModelElementFacadepublic AttributeFacade findAttribute(String name)
Return the attribute which name matches the parameter
findAttribute in interface ClassifierFacadeClassifierFacade.findAttribute(String name)public Collection<ClassifierFacade> getAbstractions()
Those abstraction dependencies for which this classifier is the client.
getAbstractions in interface ClassifierFacadeClassifierFacade.getAbstractions()public Collection<ClassifierFacade> getAllAssociatedClasses()
Lists all classes associated to this one and any ancestor classes (through generalization). There will be no duplicates. The order of the elements is predictable.
getAllAssociatedClasses in interface ClassifierFacadeClassifierFacade.getAllAssociatedClasses()public Collection getAllProperties()
A collection containing all 'properties' of the classifier and its ancestors. Properties are any attributes and navigable connecting association ends.
getAllProperties in interface ClassifierFacadeClassifierFacade.getAllProperties()public Collection getAllRequiredConstructorParameters()
A collection containing all required and/or read-only 'properties' of the classifier and its ancestors. Properties are any attributes and navigable connecting association ends.
getAllRequiredConstructorParameters in interface ClassifierFacadeClassifierFacade.getAllRequiredConstructorParameters()public ClassifierFacade getArray()
Gets the array type for this classifier. If this classifier already represents an array, it just returns itself.
getArray in interface ClassifierFacadeClassifierFacade.getArray()public String getArrayName()
The name of the classifier as an array.
getArrayName in interface ClassifierFacadeClassifierFacade.getArrayName()public Collection<ClassifierFacade> getAssociatedClasses()
Lists the classes associated to this one, there is no repitition of classes. The order of the elements is predictable.
getAssociatedClasses in interface ClassifierFacadeClassifierFacade.getAssociatedClasses()public List<AssociationEndFacade> getAssociationEnds()
Gets the association ends belonging to a classifier.
getAssociationEnds in interface ClassifierFacadeClassifierFacade.getAssociationEnds()public List<AttributeFacade> getAttributes()
Gets the attributes that belong to the classifier.
getAttributes in interface ClassifierFacadeClassifierFacade.getAttributes()public List getAttributes(boolean follow)
Gets all attributes for the classifier and if 'follow' is true goes up the inheritance hierarchy and gets the attributes from the super classes as well.
getAttributes in interface ClassifierFacadeClassifierFacade.getAttributes(boolean follow)public String getFullyQualifiedArrayName()
The fully qualified name of the classifier as an array.
getFullyQualifiedArrayName in interface ClassifierFacadeClassifierFacade.getFullyQualifiedArrayName()public Collection<OperationFacade> getImplementationOperations()
Returns all those operations that could be implemented at this classifier's level. This means the operations owned by this classifier as well as any realized interface's operations (recursively) in case this classifier itself is not already an interface, or generalized when this classifier is an interface.
getImplementationOperations in interface ClassifierFacadeClassifierFacade.getImplementationOperations()public String getImplementedInterfaceList()
A comma separated list of the fully qualified names of all implemented interfaces.
getImplementedInterfaceList in interface ClassifierFacadeClassifierFacade.getImplementedInterfaceList()public Collection<AttributeFacade> getInstanceAttributes()
Those attributes that are scoped to an instance of this class.
getInstanceAttributes in interface ClassifierFacadeClassifierFacade.getInstanceAttributes()public List<OperationFacade> getInstanceOperations()
Those operations that are scoped to an instance of this class.
getInstanceOperations in interface ClassifierFacadeClassifierFacade.getInstanceOperations()public Collection<ClassifierFacade> getInterfaceAbstractions()
Those interfaces that are abstractions of this classifier, this basically means this classifier realizes them.
getInterfaceAbstractions in interface ClassifierFacadeClassifierFacade.getInterfaceAbstractions()public String getJavaNewString()
A String representing a new Constructor declaration for this classifier type to be used in a Java environment.
getJavaNewString in interface ClassifierFacadeClassifierFacade.getJavaNewString()public String getJavaNullString()
A String representing the null-value for this classifier type to be used in a Java environment.
getJavaNullString in interface ClassifierFacadeClassifierFacade.getJavaNullString()public Collection<ClassifierFacade> getNavigableConnectingEnds()
The other ends of this classifier's association ends which are navigable.
getNavigableConnectingEnds in interface ClassifierFacadeClassifierFacade.getNavigableConnectingEnds()public List getNavigableConnectingEnds(boolean follow)
Get the other ends of this classifier's association ends which are navigable and if 'follow' is true goes up the inheritance hierarchy and gets the super association ends as well.
getNavigableConnectingEnds in interface ClassifierFacadeClassifierFacade.getNavigableConnectingEnds(boolean follow)public ClassifierFacade getNonArray()
Assuming that the classifier is an array, this will return the non array type of the classifier from
the model. If the classifier is NOT an array, it will just return itself.
getNonArray in interface ClassifierFacadeClassifierFacade.getNonArray()public String getOperationCallFromAttributes()
The attributes from this classifier in the form of an operation call (this example would be in Java): '(String attributeOne, String attributeTwo). If there were no attributes on the classifier, the result would be an empty '()'.
getOperationCallFromAttributes in interface ClassifierFacadeClassifierFacade.getOperationCallFromAttributes()public List<OperationFacade> getOperations()
The operations owned by this classifier.
getOperations in interface ClassifierFacadeClassifierFacade.getOperations()public List getProperties()
A collection containing all 'properties' of the classifier. Properties are any attributes and navigable connecting association ends.
getProperties in interface ClassifierFacadeClassifierFacade.getProperties()public List getProperties(boolean follow)
Gets all properties (attributes and navigable association ends) for the classifier and if 'follow' is true goes up the inheritance hierarchy and gets the properties from the super classes as well.
getProperties in interface ClassifierFacadeClassifierFacade.getProperties(boolean follow)public Collection getRequiredConstructorParameters()
A collection containing all required and/or read-only 'properties' of the classifier. Properties are any attributes and navigable connecting association ends.
getRequiredConstructorParameters in interface ClassifierFacadeClassifierFacade.getRequiredConstructorParameters()public long getSerialVersionUID()
Returns the serial version UID of the underlying model element.
getSerialVersionUID in interface ClassifierFacadeClassifierFacade.getSerialVersionUID()public Collection<AttributeFacade> getStaticAttributes()
Those attributes that are scoped to the definition of this class.
getStaticAttributes in interface ClassifierFacadeClassifierFacade.getStaticAttributes()public List<OperationFacade> getStaticOperations()
Those operations that are scoped to the definition of this class.
getStaticOperations in interface ClassifierFacadeClassifierFacade.getStaticOperations()public ClassifierFacade getSuperClass()
This class' superclass, returns the generalization if it is a ClassifierFacade, null otherwise.
getSuperClass in interface ClassifierFacadeClassifierFacade.getSuperClass()public String getWrapperName()
The wrapper name for this classifier if a mapped type has a defined wrapper class (ie. 'long' maps to 'Long'). If the classifier doesn't have a wrapper defined for it, this method will return a null. Note that wrapper mappings must be defined for the namespace by defining the 'wrapperMappingsUri', this property must point to the location of the mappings file which maps the primitives to wrapper types.
getWrapperName in interface ClassifierFacadeClassifierFacade.getWrapperName()public boolean isAbstract()
Indicates if this classifier is 'abstract'.
isAbstract in interface ClassifierFacadeClassifierFacade.isAbstract()public boolean isArrayType()
True if this classifier represents an array type. False otherwise.
isArrayType in interface ClassifierFacadeClassifierFacade.isArrayType()public boolean isAssociationClass()
isAssociationClass in interface ClassifierFacadeClassifierFacade.isAssociationClass()public boolean isBlobType()
Returns true if this type represents a Blob type.
isBlobType in interface ClassifierFacadeClassifierFacade.isBlobType()public boolean isBooleanType()
Indicates if this type represents a boolean type or not.
isBooleanType in interface ClassifierFacadeClassifierFacade.isBooleanType()public boolean isCharacterType()
Indicates if this type represents a char, Character, or java.lang.Character type or not.
isCharacterType in interface ClassifierFacadeClassifierFacade.isCharacterType()public boolean isClobType()
Returns true if this type represents a Clob type.
isClobType in interface ClassifierFacadeClassifierFacade.isClobType()public boolean isCollectionType()
True if this classifier represents a collection type. False otherwise.
isCollectionType in interface ClassifierFacadeClassifierFacade.isCollectionType()public boolean isDataType()
True/false depending on whether or not this classifier represents a datatype. A data type is a type whose instances are identified only by their value. A data type may contain attributes to support the modeling of structured data types.
isDataType in interface ClassifierFacadeClassifierFacade.isDataType()public boolean isDateType()
True when this classifier is a date type.
isDateType in interface ClassifierFacadeClassifierFacade.isDateType()public boolean isDoubleType()
Indicates if this type represents a Double type or not.
isDoubleType in interface ClassifierFacadeClassifierFacade.isDoubleType()public boolean isEmbeddedValue()
Indicates whether or not this classifier represents an "EmbeddedValue'.
isEmbeddedValue in interface ClassifierFacadeClassifierFacade.isEmbeddedValue()public boolean isEnumeration()
True if this classifier is in fact marked as an enumeration.
isEnumeration in interface ClassifierFacadeClassifierFacade.isEnumeration()public boolean isFileType()
Returns true if this type represents a 'file' type.
isFileType in interface ClassifierFacadeClassifierFacade.isFileType()public boolean isFloatType()
Indicates if this type represents a Float type or not.
isFloatType in interface ClassifierFacadeClassifierFacade.isFloatType()public boolean isIntegerType()
Indicates if this type represents an int or Integer or java.lang.Integer type or not.
isIntegerType in interface ClassifierFacadeClassifierFacade.isIntegerType()public boolean isInterface()
True/false depending on whether or not this Classifier represents an interface.
isInterface in interface ClassifierFacadeClassifierFacade.isInterface()public boolean isLeaf()
True if this classifier cannot be extended and represent a leaf in the inheritance tree.
isLeaf in interface ClassifierFacadeClassifierFacade.isLeaf()public boolean isListType()
True if this classifier represents a list type. False otherwise.
isListType in interface ClassifierFacadeClassifierFacade.isListType()public boolean isLongType()
Indicates if this type represents a Long type or not.
isLongType in interface ClassifierFacadeClassifierFacade.isLongType()public boolean isMapType()
Indicates whether or not this classifier represents a Map type.
isMapType in interface ClassifierFacadeClassifierFacade.isMapType()public boolean isPrimitive()
Indicates whether or not this classifier represents a primitive type.
isPrimitive in interface ClassifierFacadeClassifierFacade.isPrimitive()public boolean isSetType()
True if this classifier represents a set type. False otherwise.
isSetType in interface ClassifierFacadeClassifierFacade.isSetType()public boolean isStringType()
Indicates whether or not this classifier represents a string type.
isStringType in interface ClassifierFacadeClassifierFacade.isStringType()public boolean isTimeType()
Indicates whether or not this classifier represents a time type.
isTimeType in interface ClassifierFacadeClassifierFacade.isTimeType()public boolean isWrappedPrimitive()
Returns true if this type is a wrapped primitive type.
isWrappedPrimitive in interface ClassifierFacadeClassifierFacade.isWrappedPrimitive()
public Object findTaggedValue(String tagName,
boolean follow)
Finds the tagged value optional searching the entire inheritance hierarchy if 'follow' is set to true.
findTaggedValue in interface GeneralizableElementFacadeGeneralizableElementFacade.findTaggedValue(String tagName, boolean follow)public Collection<GeneralizableElementFacade> getAllGeneralizations()
All generalizations for this generalizable element, goes up the inheritance tree.
getAllGeneralizations in interface GeneralizableElementFacadeGeneralizableElementFacade.getAllGeneralizations()public Collection<GeneralizableElementFacade> getAllSpecializations()
All specializations (travels down the inheritance hierarchy).
getAllSpecializations in interface GeneralizableElementFacadeGeneralizableElementFacade.getAllSpecializations()public GeneralizableElementFacade getGeneralization()
Gets the direct generalization for this generalizable element.
getGeneralization in interface GeneralizableElementFacadeGeneralizableElementFacade.getGeneralization()public Collection<GeneralizationFacade> getGeneralizationLinks()
Gets the actual links that this generalization element is part of (it plays either the specialization or generalization).
getGeneralizationLinks in interface GeneralizableElementFacadeGeneralizableElementFacade.getGeneralizationLinks()public String getGeneralizationList()
A comma separated list of the fully qualified names of all generalizations.
getGeneralizationList in interface GeneralizableElementFacadeGeneralizableElementFacade.getGeneralizationList()public GeneralizableElementFacade getGeneralizationRoot()
The element found when you recursively follow the generalization path up to the root. If an element has no generalization itself will be considered the root.
getGeneralizationRoot in interface GeneralizableElementFacadeGeneralizableElementFacade.getGeneralizationRoot()public Collection<GeneralizableElementFacade> getGeneralizations()
getGeneralizations in interface GeneralizableElementFacadeGeneralizableElementFacade.getGeneralizations()public Collection<GeneralizableElementFacade> getSpecializations()
Gets the direct specializations (i.e. sub elements) for this generalizatble element.
getSpecializations in interface GeneralizableElementFacadeGeneralizableElementFacade.getSpecializations()public void copyTaggedValues(ModelElementFacade element)
Copies all tagged values from the given ModelElementFacade to this model element facade.
copyTaggedValues in interface ModelElementFacadeModelElementFacade.copyTaggedValues(ModelElementFacade element)public Object findTaggedValue(String tagName)
Finds the tagged value with the specified 'tagName'. In case there are more values the first one found will be returned.
findTaggedValue in interface ModelElementFacadeModelElementFacade.findTaggedValue(String tagName)public Collection findTaggedValues(String tagName)
Returns all the values for the tagged value with the specified name. The returned collection will contains only String instances, or will be empty. Never null.
findTaggedValues in interface ModelElementFacadeModelElementFacade.findTaggedValues(String tagName)public String getBindedFullyQualifiedName(ModelElementFacade bindedElement)
Returns the fully qualified name of the model element. The fully qualified name includes complete package qualified name of the underlying model element. The templates parameter will be replaced by the correct one given the binding relation of the parameter to this element.
getBindedFullyQualifiedName in interface ModelElementFacadeModelElementFacade.getBindedFullyQualifiedName(ModelElementFacade bindedElement)public Collection<ConstraintFacade> getConstraints()
Gets all constraints belonging to the model element.
getConstraints in interface ModelElementFacadeModelElementFacade.getConstraints()public Collection getConstraints(String kind)
Returns the constraints of the argument kind that have been placed onto this model. Typical kinds are "inv", "pre" and "post". Other kinds are possible.
getConstraints in interface ModelElementFacadeModelElementFacade.getConstraints(String kind)public String getDocumentation(String indent)
Gets the documentation for the model element, The indent argument is prefixed to each line. By default this method wraps lines after 64 characters.
This method is equivalent to getDocumentation(indent,
64).
getDocumentation in interface ModelElementFacadeModelElementFacade.getDocumentation(String indent)
public 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. By default paragraphs are returned as HTML.
This method is equivalent to getDocumentation(indent,
lineLength, true).
getDocumentation in interface ModelElementFacadeModelElementFacade.getDocumentation(String indent, int lineLength)
public String getDocumentation(String indent,
int lineLength,
boolean htmlStyle)
getDocumentation in interface ModelElementFacadeModelElementFacade.getDocumentation(String indent, int lineLength, boolean htmlStyle)public String getFullyQualifiedName()
The fully qualified name of this model element.
getFullyQualifiedName in interface ModelElementFacadeModelElementFacade.getFullyQualifiedName()public String getFullyQualifiedName(boolean modelName)
Returns the fully qualified name of the model element. The fully qualified name includes complete package qualified name of the underlying model element. If modelName is true, then the original name of the model element (the name contained within the model) will be the name returned, otherwise a name from a language mapping will be returned.
getFullyQualifiedName in interface ModelElementFacadeModelElementFacade.getFullyQualifiedName(boolean modelName)public String getFullyQualifiedNamePath()
Returns the fully qualified name as a path, the returned value always starts with out a slash '/'.
getFullyQualifiedNamePath in interface ModelElementFacadeModelElementFacade.getFullyQualifiedNamePath()public String getId()
Gets the unique identifier of the underlying model element.
getId in interface ModelElementFacadeModelElementFacade.getId()public Collection<String> getKeywords()
UML2: Retrieves the keywords for this element. Used to modify implementation properties which are not represented by other properties, i.e. native, transient, volatile, synchronized, (added annotations) override, deprecated. Can also be used to suppress compiler warnings: (added annotations) unchecked, fallthrough, path, serial, finally, all. Annotations require JDK5 compiler level.
getKeywords in interface ModelElementFacadeModelElementFacade.getKeywords()public String getLabel()
UML2: Retrieves a localized label for this named element.
getLabel in interface ModelElementFacadeModelElementFacade.getLabel()public TypeMappings getLanguageMappings()
The language mappings that have been set for this model elemnt.
getLanguageMappings in interface ModelElementFacadeModelElementFacade.getLanguageMappings()public ModelFacade getModel()
getModel in interface ModelElementFacadeModelElementFacade.getModel()public String getName()
The name of the model element.
getName in interface ModelElementFacadeModelElementFacade.getName()public ModelElementFacade getPackage()
Gets the package to which this model element belongs.
getPackage in interface ModelElementFacadeModelElementFacade.getPackage()public String getPackageName()
The name of this model element's package.
getPackageName in interface ModelElementFacadeModelElementFacade.getPackageName()public String getPackageName(boolean modelName)
Gets the package name (optionally providing the ability to retrieve the model name and not the mapped name).
getPackageName in interface ModelElementFacadeModelElementFacade.getPackageName(boolean modelName)public String getPackagePath()
Returns the package as a path, the returned value always starts with out a slash '/'.
getPackagePath in interface ModelElementFacadeModelElementFacade.getPackagePath()public String getQualifiedName()
UML2: Returns the value of the 'Qualified Name' attribute. A name which allows the NamedElement to be identified within a hierarchy of nested Namespaces. It is constructed from the names of the containing namespaces starting at the root of the hierarchy and ending with the name of the NamedElement itself.
getQualifiedName in interface ModelElementFacadeModelElementFacade.getQualifiedName()public PackageFacade getRootPackage()
Gets the root package for the model element.
getRootPackage in interface ModelElementFacadeModelElementFacade.getRootPackage()public Collection<DependencyFacade> getSourceDependencies()
Gets the dependencies for which this model element is the source.
getSourceDependencies in interface ModelElementFacadeModelElementFacade.getSourceDependencies()public StateMachineFacade getStateMachineContext()
If this model element is the context of an activity graph, this represents that activity graph.
getStateMachineContext in interface ModelElementFacadeModelElementFacade.getStateMachineContext()public Collection<String> getStereotypeNames()
The collection of ALL stereotype names for this model element.
getStereotypeNames in interface ModelElementFacadeModelElementFacade.getStereotypeNames()public Collection<StereotypeFacade> getStereotypes()
Gets all stereotypes for this model element.
getStereotypes in interface ModelElementFacadeModelElementFacade.getStereotypes()public Collection<TaggedValueFacade> getTaggedValues()
getTaggedValues in interface ModelElementFacadeModelElementFacade.getTaggedValues()public Collection<DependencyFacade> getTargetDependencies()
Gets the dependencies for which this model element is the target.
getTargetDependencies in interface ModelElementFacadeModelElementFacade.getTargetDependencies()public Object getTemplateParameter(String parameterName)
getTemplateParameter in interface ModelElementFacadeModelElementFacade.getTemplateParameter(String parameterName)public Collection<TemplateParameterFacade> getTemplateParameters()
getTemplateParameters in interface ModelElementFacadeModelElementFacade.getTemplateParameters()public String getVisibility()
The visibility (i.e. public, private, protected or package) of the model element, will attempt a lookup for these values in the language mappings (if any).
getVisibility in interface ModelElementFacadeModelElementFacade.getVisibility()public 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.
hasExactStereotype in interface ModelElementFacadeModelElementFacade.hasExactStereotype(String stereotypeName)public boolean hasKeyword(String keywordName)
Does the UML Element contain the named Keyword? Keywords can be separated by space, comma, pipe, semicolon, or << >>
hasKeyword in interface ModelElementFacadeModelElementFacade.hasKeyword(String keywordName)public boolean hasStereotype(String stereotypeName)
Returns true if the model element has the specified stereotype. If the stereotype itself does not match, then a search will be made up the stereotype inheritance hierarchy, and if one of the stereotype's ancestors has a matching name this method will return true, false otherwise.
For example, if we have a certain stereotype called
<
hasStereotype in interface ModelElementFacadeModelElementFacade.hasStereotype(String stereotypeName)public boolean isBindingDependenciesPresent()
isBindingDependenciesPresent in interface ModelElementFacadeModelElementFacade.isBindingDependenciesPresent()public boolean isConstraintsPresent()
Indicates if any constraints are present on this model element.
isConstraintsPresent in interface ModelElementFacadeModelElementFacade.isConstraintsPresent()public boolean isDocumentationPresent()
Indicates if any documentation is present on this model element.
isDocumentationPresent in interface ModelElementFacadeModelElementFacade.isDocumentationPresent()public boolean isReservedWord()
True if this element name is a reserved word in Java, C#, ANSI or ISO C, C++, JavaScript.
isReservedWord in interface ModelElementFacadeModelElementFacade.isReservedWord()public boolean isTemplateParametersPresent()
isTemplateParametersPresent in interface ModelElementFacadeModelElementFacade.isTemplateParametersPresent()
public 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.
translateConstraint in interface ModelElementFacadeModelElementFacade.translateConstraint(String name, String translation)public String[] translateConstraints(String translation)
Translates all constraints belonging to this model element with the given 'translation'.
translateConstraints in interface ModelElementFacadeModelElementFacade.translateConstraints(String translation)
public String[] translateConstraints(String kind,
String translation)
Translates the constraints of the specified 'kind' belonging to this model element.
translateConstraints in interface ModelElementFacadeModelElementFacade.translateConstraints(String kind, String translation)public void initialize()
initialize in interface ModelElementFacadeinitialize in class MetafacadeBaseMetafacadeBase.initialize()public Object getValidationOwner()
getValidationOwner in interface ModelElementFacadegetValidationOwner in class MetafacadeBaseMetafacadeBase.getValidationOwner()public String getValidationName()
getValidationName in interface ModelElementFacadegetValidationName in class MetafacadeBaseMetafacadeBase.getValidationName()public void validateInvariants(Collection<ModelValidationMessage> validationMessages)
validateInvariants in interface ModelElementFacadevalidateInvariants in class MetafacadeBasevalidationMessages - CollectionMetafacadeBase.validateInvariants(Collection validationMessages)public String toString()
toString in class MetafacadeBaseObject.toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||