|
IBM Rational Software Modeler Release 6.0 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.ibm.xtools.patterns.framework.PatternMetatype
This abstract class is the common implementation for a pattern metatype that represents an EClass in an EMF metamodel.
| Field Summary | |
protected org.eclipse.emf.ecore.EClass |
metaClass
The EClass metatype for this type |
| Constructor Summary | |
PatternMetatype(org.eclipse.emf.ecore.EClass type)
Constructs a pattern metatype given an EClass to represent the element type. |
|
| Method Summary | |
boolean |
equals(Object object)
|
String |
getDescription()
Retrieve the localized description of the transformation item. |
org.eclipse.emf.ecore.EClass |
getEClass()
Returns the EClass representing the metatype, if the associated metamodel is an EMF metamodel. |
IEnumerationLiteral[] |
getEnumerationLiterals()
Returns the array of enumeration literals for an enumeration metatype. |
String |
getId()
Retrieve the unique id of the transformation item. |
String |
getImage(Object object)
Returns the human readable image of the given object. |
org.eclipse.emf.ecore.EPackage |
getMetamodel()
Returns the EPackage that is the root of the package hierarchy containing the EClass of the metatype, if the associated metamodel is an EMF metamodel. |
String |
getMetamodelName()
Returns the name of the metamodel of the metatype. |
String |
getName()
Retrieve the localized name of the transformation item. |
int |
hashCode()
|
boolean |
isAssignableFrom(IPatternMetatype metatype)
Indicates whether this metatype is either the same as, or a superclass of, the given metatype. |
boolean |
isEnumeration()
Indicates whether the metatype is an enumeration. |
boolean |
isValidValue(Object object)
Indicates whether the given object is a valid value of the metatype. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected final org.eclipse.emf.ecore.EClass metaClass
| Constructor Detail |
public PatternMetatype(org.eclipse.emf.ecore.EClass type)
type - the EClass for the element type| Method Detail |
public String getId()
ITransformationItem
getId in interface ITransformationItempublic String getName()
ITransformationItem
getName in interface ITransformationItempublic String getDescription()
ITransformationItem
getDescription in interface ITransformationItempublic String getMetamodelName()
IPatternMetatype
getMetamodelName in interface IPatternMetatypepublic org.eclipse.emf.ecore.EClass getEClass()
IPatternMetatype
getEClass in interface IPatternMetatypenull.public org.eclipse.emf.ecore.EPackage getMetamodel()
IPatternMetatypeUse the getEClass method to retrieve the EClass representing the metatype.
getMetamodel in interface IPatternMetatypenull.public boolean isEnumeration()
IPatternMetatypeThe metatype is an enumeration if the values of the type are a fixed set
of enumeration literals. Use the getEnumerationLiterals
method to retrieve the array of enumeration literals.
isEnumeration in interface IPatternMetatypetrue if the metatype is an enumeration;
otherwise, it returns false.public IEnumerationLiteral[] getEnumerationLiterals()
IPatternMetatype
getEnumerationLiterals in interface IPatternMetatypenull.public boolean isAssignableFrom(IPatternMetatype metatype)
IPatternMetatypeIndicates whether this metatype is either the same as, or a superclass of, the given metatype.
isAssignableFrom in interface IPatternMetatypemetatype - The object to be tested as a subtype
of this metatype.
true if this metatype is the same as or
as supertype of the given metatype; otherwise, it returns false.public boolean isValidValue(Object object)
IPatternMetatype
isValidValue in interface IPatternMetatypeobject - The object to be tested as a value of this metatype.
true if the object is a valid value of the metatype;
otherwise, it returns false.public String getImage(Object object)
IPatternMetatypeIf the object is not a valid value of the metatype the image will be empty.
getImage in interface IPatternMetatypeobject - The object for which the image is to be returned.
public boolean equals(Object object)
public int hashCode()
public String toString()
|
IBM Rational Software Modeler Release 6.0 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2004. All rights reserved.