|
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.java.PatternMetatype.JavaMetatype
This class is the common implementation for a pattern metatype that represents a java class.
Field Summary | |
protected Class |
javaClazz
The java class for this metatype |
Constructor Summary | |
PatternMetatype.JavaMetatype(Class clazz)
Constructs a java metatype for the given java class. |
|
PatternMetatype.JavaMetatype(String className)
Constructs a java metatype for the java class with the given class name, for example, 'java.lang.String'. |
Method Summary | |
String |
getDescription()
Retrieve the localized description of the transformation item. |
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. |
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. |
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected final Class javaClazz
Constructor Detail |
public PatternMetatype.JavaMetatype(String className) throws ClassNotFoundException
public PatternMetatype.JavaMetatype(Class clazz)
Method Detail |
public String getId()
ITransformationItem
getId
in interface ITransformationItem
public String getName()
ITransformationItem
getName
in interface ITransformationItem
public String getDescription()
ITransformationItem
getDescription
in interface ITransformationItem
public String getMetamodelName()
IPatternMetatype
getMetamodelName
in interface IPatternMetatype
public EClass getEClass()
IPatternMetatype
getEClass
in interface IPatternMetatype
null
.public EPackage getMetamodel()
IPatternMetatype
Use the getEClass
method to retrieve the EClass representing the metatype.
getMetamodel
in interface IPatternMetatype
null
.public boolean isEnumeration()
IPatternMetatype
The 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 IPatternMetatype
true
if the metatype is an enumeration;
otherwise, it returns false
.public IEnumerationLiteral[] getEnumerationLiterals()
IPatternMetatype
getEnumerationLiterals
in interface IPatternMetatype
null
.public boolean isAssignableFrom(IPatternMetatype metatype)
IPatternMetatype
Indicates whether this metatype is either the same as, or a superclass of, the given metatype.
isAssignableFrom
in interface IPatternMetatype
metatype
- 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 IPatternMetatype
object
- 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)
IPatternMetatype
If the object is not a valid value of the metatype the image will be empty.
getImage
in interface IPatternMetatype
object
- The object for which the image is to be returned.
|
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.