| Java API Reference | Class Hierarchy | All Classes | All Fields and Methods |
com.ibm.xtools.patterns.framework.java
+-- Object +-- PatternMetatype.JavaMetatype
final public Class PatternMetatype.JavaMetatype
extends Object
This class is the common implementation for a pattern metatype that represents a java class.
| 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 | |
|---|---|
| Object | ensureType(Object value) |
| List | getAlternateTypes() |
| String | getDescription() |
| EClass | getEClass() |
| IEnumerationLiteral | getEnumerationLiterals() |
| String | getId() |
| String | getImage(Object object) |
| EPackage | getMetamodel() |
| String | getMetamodelName() |
| String | getName() |
| boolean | isAssignableFrom(IPatternMetatype metatype) |
| boolean | isEnumeration() |
| boolean | isValidValue(Object object) |
Constructor detail
public PatternMetatype.JavaMetatype(Class clazz)
Constructs a java metatype for the given java class.
Parameters:
| clazz | - |
public PatternMetatype.JavaMetatype(String className)
Constructs a java metatype for the java class with the given class name, for example, 'java.lang.String'.
Parameters:
| className | - |
Throws:
| ClassNotFoundException | - Thrown when a parameter or return value is not valid.
|
Method detail
public List getAlternateTypes()
Returns:
a List object. representing the alternate types value
|
public IEnumerationLiteral getEnumerationLiterals()
Returns:
an array of IEnumerationLiteral object.s representing the enumeration literals value
|
public EPackage getMetamodel()
Returns:
an EPackage object. representing the metamodel value
|
public String getMetamodelName()
Returns:
a String representing the metamodel name value
|