org.ocltf.model
Interface ElementFacade

All Known Subinterfaces:
AssociationEndFacade, AssociationFacade, AttributeFacade, ClassifierFacade, ConstraintFacade, GeneralizationFacade, OperationFacade, ParameterFacade, TaggedValueFacade

public interface ElementFacade

Specifies a "facade" for a model element. Provides information about the model element.

Author:
Chad Brandon

Method Summary
 ConstraintFacade findConstraint(java.lang.String name)
          Searches for and returns the value of a constraint having the specified name on this model element
 java.lang.String findTagValue(java.lang.String tagName)
          Searches for and returns the value of a given tag on the underlying model element.
 java.util.Collection getConstraints()
          Returns the Collection of ConstraintFacade instances.
 java.lang.String getFullyQualifiedName()
          Returns the fully qualified name of the given model element.
 java.util.Collection getGeneralizations()
          Returns the Collection of GeneralizationFacade instances.
 java.lang.String getId()
          Gets the id for the underlying model element
 java.lang.String getName()
          Retrieves the name of the underlying model element.
 java.lang.String getPackageName()
          Returns the name of the package name of the underlying model element.
 java.util.Collection getStereotypeNames()
          Retrieves all stereo type names belonging to the underlying model element.
 java.util.Collection getTaggedValues()
          Retrieves the Collection of TaggedValueFacades belonging to the underlying model element.
 ClassifierFacade getType()
          Gets the type of the underlying model element.
 

Method Detail

getId

public java.lang.String getId()
Gets the id for the underlying model element

Returns:
String the ID as a String.

getType

public ClassifierFacade getType()
Gets the type of the underlying model element.

Returns:
ClassifierFacade

getGeneralizations

public java.util.Collection getGeneralizations()
Returns the Collection of GeneralizationFacade instances.

Returns:
Collection of generalizations

findTagValue

public java.lang.String findTagValue(java.lang.String tagName)
Searches for and returns the value of a given tag on the underlying model element.

Parameters:
tagName - the name of the tag to find.
Returns:
String value of tag, null if tag not found

getTaggedValues

public java.util.Collection getTaggedValues()
Retrieves the Collection of TaggedValueFacades belonging to the underlying model element.

Returns:
Collection of tagged values.

getFullyQualifiedName

public java.lang.String getFullyQualifiedName()
Returns the fully qualified name of the given model element. The fully qualified name includes complete package qualified name of the underlying model element.

Returns:
String fully qualified name.

getConstraints

public java.util.Collection getConstraints()
Returns the Collection of ConstraintFacade instances.

Returns:
Collection with found constraints (if any)

getPackageName

public java.lang.String getPackageName()
Returns the name of the package name of the underlying model element.

Returns:
fully qualified name of the package

getName

public java.lang.String getName()
Retrieves the name of the underlying model element.

Returns:
String the name.

getStereotypeNames

public java.util.Collection getStereotypeNames()
Retrieves all stereo type names belonging to the underlying model element.

Returns:

findConstraint

public ConstraintFacade findConstraint(java.lang.String name)
Searches for and returns the value of a constraint having the specified name on this model element

Parameters:
name - - constraint name
Returns:
Constraint


Copyright © 2003-2004 Chad Brandon. All Rights Reserved.