| Java API Reference | Class Hierarchy | All Classes | All Fields and Methods |
com.ibm.xtools.patterns.framework
+-- Object +-- PatternMetatype
public Class PatternMetatype
extends Object
Represents the abstract class that is the common implementation for a pattern metatype that represents an EClass in an EMF metamodel.
| Constructor summary |
|---|
| PatternMetatype(EClass type) Constructs a pattern metatype given an EClass to represent the element type. |
| Method summary | |
|---|---|
| Object | ensureType(Object value) Retrieves the type value. |
| boolean | equals(Object object) Compares for equality through the default implementation of java.lang.Object.equals(Object). |
| List | getAlternateTypes() Retrieves the array of pattern type objects. |
| String | getDescription() Retrieves the pattern description. |
| EClass | getEClass() Retrieves the EClass that represents the element type. |
| IEnumerationLiteral | getEnumerationLiterals() Retrieves the IEnumerationLiteral objects. |
| String | getId() Retrieves the Id of the object. |
| String | getImage(Object object) Retrieves a string representing the image value. |
| EPackage | getMetamodel() Retrieves the EPackage representing the metamodel name value. |
| String | getMetamodelName() Retrieves a string representing the metamodel name value. |
| String | getName() Retrieves the name of the object. |
| int | hashCode() Retrieves the hash code value of the parameter. |
| boolean | isAssignableFrom(IPatternMetatype metatype) Retrieves whether the object has a metatype. |
| boolean | isEnumeration() Retrieves whether the object is an enumeration. |
| boolean | isValidValue(Object object) Retrieves whether the object has a valid value. |
| String | toString() Retrieves the string value. |
Constructor detail
public PatternMetatype(EClass type)
Constructs a pattern metatype given an EClass to represent the element type.
Parameters:
| type | - The EClass for the element type. |
Method detail
public Object ensureType(Object value)
Retrieves the type value.
Parameters:
| value | - The type value to ensure. |
Returns:
A String representing the type value. |
public boolean equals(Object object)
Compares for equality through the default implementation of java.lang.Object.equals(Object).
Parameters:
| object | - The object to be compared. |
Returns:
A boolean value of true if the object is equal. Otherwise, it returns a value of false. |
public List getAlternateTypes()
Retrieves the array of pattern type objects.
Returns:
A List of IPatternMetatype objects representing the alternate type values. |
public String getDescription()
Retrieves the pattern description.
Returns:
A string representing the description value. |
public EClass getEClass()
Retrieves the EClass that represents the element type.
Returns:
The EClass value. |
public IEnumerationLiteral getEnumerationLiterals()
Retrieves the IEnumerationLiteral objects.
Returns:
An array of IEnumerationLiteral objects representing the enumeration literals value. |
public String getId()
Retrieves the Id of the object.
Returns:
The Id of the object. |
public String getImage(Object object)
Retrieves a string representing the image value.
Parameters:
| object | - The object for which to retrieve the image. |
Returns:
A string representing the object image value. |
public EPackage getMetamodel()
Retrieves the EPackage representing the metamodel name value.
Returns:
An EPackage object representing the metamodel name value. |
public String getMetamodelName()
Retrieves a string representing the metamodel name value.
Returns:
A string representing the metamodel name value. |
public String getName()
Retrieves the name of the object.
Returns:
A string representing the name value. |
public int hashCode()
Retrieves the hash code value of the parameter.
Returns:
An integer representing the value. |
public boolean isAssignableFrom(IPatternMetatype metatype)
Retrieves whether the object has a metatype.
Parameters:
| metatype | - The metatype to search. |
Returns:
A boolean value of true if the object has metatype. Otherwise, it returns a value of false. |
public boolean isEnumeration()
Retrieves whether the object is an enumeration.
Returns:
A boolean value of true if the object is an enumeration. Otherwise, it returns a value of false. |