|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Represents a Classifier model element
Metafacade interface to be used by AndroMDA cartridges.
| Method Summary | |
AttributeFacade |
findAttribute(String name)
Return the attribute which name matches the parameter |
Collection |
getAbstractions()
Those abstraction dependencies for which this classifier is the client. |
Collection |
getAllAssociatedClasses()
Lists all classes associated to this one and any ancestor classes (through generalization). |
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. |
ClassifierFacade |
getArray()
Gets the array type for this classifier. |
String |
getArrayName()
The name of the classifier as an array. |
Collection |
getAssociatedClasses()
Lists the classes associated to this one, there is no repitition of classes. |
List |
getAssociationEnds()
Gets the association ends belonging to a classifier. |
Collection |
getAttributes()
Gets the attributes that belong to the classifier. |
Collection |
getAttributes(boolean follow)
Gets all attributes for the classifier and if 'follow' is true goes up the inheritance hierachy and gets the attributes from the super classes as well. |
String |
getFullyQualifiedArrayName()
The fully qualified name of the classifier as an array. |
Collection |
getImplementationOperations()
Returns all those operations that could be implemented at this classifier's level. |
String |
getImplementedInterfaceList()
A comma seperated list of the fully qualified names of all implemented interfaces. |
Collection |
getInstanceAttributes()
Those attributes that are scoped to an instance of this class. |
Collection |
getInstanceOperations()
Those operations that are scoped to an instance of this class. |
Collection |
getInterfaceAbstractions()
Those interfaces that are abstractions of this classifier, this basically means this classifier realizes them. |
String |
getJavaNullString()
A String representing the null-value for this classifier type to be used in a Java environment. |
Collection |
getNavigableConnectingEnds()
The other ends of this classifier's association ends which are navigable. |
Collection |
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): '(java.lang.String attributeOne, java.lang.String attributeTwo). |
Collection |
getOperations()
The operations owned by this classifier. |
Collection |
getProperties()
A collection containing all 'properties' of the classifier. |
Collection |
getProperties(boolean follow)
Gets all properties (attributes and navigable association ends) for the classifier and if 'follow' is true goes up the inheritance hierachy and gets the properties from the super classes as well. |
Collection |
getRequiredConstructorParameters()
A collection containing all required and/or read-only 'properties' of the classifier. |
Long |
getSerialVersionUID()
Returns the serial version UID of the underlying model element. |
Collection |
getStaticAttributes()
Those attributes that are scoped to the definition of this class. |
Collection |
getStaticOperations()
Those operations that are scoped to the definition of this class. |
ClassifierFacade |
getSuperClass()
This class' superclass, returns the generalization if it is a ClassifierFacade, null otherwise. |
String |
getWrapperName()
The wrapper name for this classifier if a mapped type has a defined wrapper class (ie. |
boolean |
isAbstract()
Indicates if this classifier is 'abstract'. |
boolean |
isArrayType()
True if this classifier represents an array type. |
boolean |
isAssociationClass()
|
boolean |
isBlobType()
Returns true if this type represents a Blob type. |
boolean |
isBooleanType()
Indicates if this type represents a boolean type or not. |
boolean |
isClassifierFacadeMetaType()
Indicates the metafacade type (used for metafacade mappings). |
boolean |
isClobType()
Returns true if this type represents a Clob type. |
boolean |
isCollectionType()
True if this classifier represents a collection type. |
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 |
isEnumeration()
True if this classifier is in fact marked as an enumeration. |
boolean |
isFileType()
Returns true if this type represents a 'file' type. |
boolean |
isInterface()
True/false depending on whether or not this Classifier represents an interface. |
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 |
isMapType()
Indicates whether or not this classifier represents a Map type. |
boolean |
isPrimitive()
Indicates whether or not this classifier represents a primitive type. |
boolean |
isSetType()
True if this classifier represents a set type. |
boolean |
isStringType()
Indicates whether or not this classifier represents a string type. |
boolean |
isTimeType()
Indicates whether or not this classifier represents a time type. |
| Methods inherited from interface org.andromda.metafacades.uml.GeneralizableElementFacade |
findTaggedValue, getAllGeneralizations, getAllSpecializations, getGeneralization, getGeneralizationLinks, getGeneralizationList, getGeneralizationRoot, getGeneralizations, getSpecializations, isGeneralizableElementFacadeMetaType |
| Method Detail |
public boolean isClassifierFacadeMetaType()
truepublic AttributeFacade findAttribute(String name)
Return the attribute which name matches the parameter
public Collection getAbstractions()
Those abstraction dependencies for which this classifier is the client.
public Collection 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.
public Collection getAllProperties()
A collection containing all 'properties' of the classifier and its ancestors. Properties are any attributes and navigable connecting association ends.
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.
public ClassifierFacade getArray()
Gets the array type for this classifier. If this classifier already represents an array, it just returns itself.
public String getArrayName()
The name of the classifier as an array.
public Collection getAssociatedClasses()
Lists the classes associated to this one, there is no repitition of classes. The order of the elements is predictable.
public List getAssociationEnds()
Gets the association ends belonging to a classifier.
public Collection getAttributes()
Gets the attributes that belong to the classifier.
public Collection getAttributes(boolean follow)
Gets all attributes for the classifier and if 'follow' is true goes up the inheritance hierachy and gets the attributes from the super classes as well.
public String getFullyQualifiedArrayName()
The fully qualified name of the classifier as an array.
public Collection 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.
public String getImplementedInterfaceList()
A comma seperated list of the fully qualified names of all implemented interfaces.
public Collection getInstanceAttributes()
Those attributes that are scoped to an instance of this class.
public Collection getInstanceOperations()
Those operations that are scoped to an instance of this class.
public Collection getInterfaceAbstractions()
Those interfaces that are abstractions of this classifier, this basically means this classifier realizes them.
public String getJavaNullString()
A String representing the null-value for this classifier type to be used in a Java environment.
public Collection getNavigableConnectingEnds()
The other ends of this classifier's association ends which are navigable.
public Collection 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.
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.
public String getOperationCallFromAttributes()
The attributes from this classifier in the form of an operation call (this example would be in Java): '(java.lang.String attributeOne, java.lang.String attributeTwo). If there were no attributes on the classifier, the result would be an empty '()'.
public Collection getOperations()
The operations owned by this classifier.
public Collection getProperties()
A collection containing all 'properties' of the classifier. Properties are any attributes and navigable connecting association ends.
public Collection getProperties(boolean follow)
Gets all properties (attributes and navigable association ends) for the classifier and if 'follow' is true goes up the inheritance hierachy and gets the properties from the super classes as well.
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.
public Long getSerialVersionUID()
Returns the serial version UID of the underlying model element.
public Collection getStaticAttributes()
Those attributes that are scoped to the definition of this class.
public Collection getStaticOperations()
Those operations that are scoped to the definition of this class.
public ClassifierFacade getSuperClass()
This class' superclass, returns the generalization if it is a ClassifierFacade, null otherwise.
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.
public boolean isAbstract()
Indicates if this classifier is 'abstract'.
public boolean isArrayType()
True if this classifier represents an array type. False otherwise.
public boolean isAssociationClass()
public boolean isBlobType()
Returns true if this type represents a Blob type.
public boolean isBooleanType()
Indicates if this type represents a boolean type or not.
public boolean isClobType()
Returns true if this type represents a Clob type.
public boolean isCollectionType()
True if this classifier represents a collection type. False otherwise.
public boolean isDataType()
True/false depending on whether or not this classifier represents a datatype.
public boolean isDateType()
True when this classifier is a date type.
public boolean isEnumeration()
True if this classifier is in fact marked as an enumeration.
public boolean isFileType()
Returns true if this type represents a 'file' type.
public boolean isInterface()
True/false depending on whether or not this Classifier represents an interface.
public boolean isLeaf()
True if this classifier cannot be extended and represent a leaf in the inheritance tree.
public boolean isListType()
True if this classifier represents a list type. False otherwise.
public boolean isMapType()
Indicates whether or not this classifier represents a Map type.
public boolean isPrimitive()
Indicates whether or not this classifier represents a primitive type.
public boolean isSetType()
True if this classifier represents a set type. False otherwise.
public boolean isStringType()
Indicates whether or not this classifier represents a string type.
public boolean isTimeType()
Indicates whether or not this classifier represents a time type.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||