IBM Rational Software Modeler
Release 6.0

com.ibm.xtools.patterns.framework.uml2
Class PatternMetatype

java.lang.Object
  extended bycom.ibm.xtools.patterns.framework.PatternMetatype
      extended bycom.ibm.xtools.patterns.framework.uml2.PatternMetatype
All Implemented Interfaces:
IPatternMetatype, ITransformationItem
Direct Known Subclasses:
PatternMetatype.Enumeration

public class PatternMetatype
extends PatternMetatype

A pattern metatype encapsulates the types used when defining patterns. The core metatypes are defined in the pattern service and are specialized here for use by framework-based patterns. This class defines a UML2-specific pattern metatype that extends the framework's base pattern metatype which in turn specializes the core pattern service's metatypes.


Nested Class Summary
static class PatternMetatype.Enumeration
          An enumeration metatype, defines enumeration literals as potential values.
 
Field Summary
static PatternMetatype BOOLEAN_METATYPE
          An instance of a pattern metatype corresponding to a UML2 literal boolean
static PatternMetatype INTEGER_METATYPE
          An instance of a pattern metatype corresponding to a UML2 literal integer
static PatternMetatype STRING_METATYPE
          An instance of a pattern metatype corresponding to a UML2 literal string
 
Fields inherited from class com.ibm.xtools.patterns.framework.PatternMetatype
metaClass
 
Constructor Summary
PatternMetatype(EClass type)
          Constructs a pattern metatype given the EClass of the element from within the UML2 metamodel.
 
Method Summary
 String getImage(Object object)
          Returns the human readable image of the given object.
 
Methods inherited from class com.ibm.xtools.patterns.framework.PatternMetatype
equals, getDescription, getEClass, getEnumerationLiterals, getId, getMetamodel, getMetamodelName, getName, hashCode, isAssignableFrom, isEnumeration, isValidValue, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

BOOLEAN_METATYPE

public static PatternMetatype BOOLEAN_METATYPE
An instance of a pattern metatype corresponding to a UML2 literal boolean


INTEGER_METATYPE

public static PatternMetatype INTEGER_METATYPE
An instance of a pattern metatype corresponding to a UML2 literal integer


STRING_METATYPE

public static PatternMetatype STRING_METATYPE
An instance of a pattern metatype corresponding to a UML2 literal string

Constructor Detail

PatternMetatype

public PatternMetatype(EClass type)
Constructs a pattern metatype given the EClass of the element from within the UML2 metamodel. Invokes the super constructor of the pattern metatype within the top-level framework package.

Parameters:
type - the element type within the UML2 metamodel
Method Detail

getImage

public String getImage(Object object)
Description copied from interface: IPatternMetatype
Returns the human readable image of the given object.

If the object is not a valid value of the metatype the image will be empty.

Specified by:
getImage in interface IPatternMetatype
Overrides:
getImage in class PatternMetatype

IBM Rational Software Modeler
Release 6.0


Guidelines for using Eclipse APIs.

Copyright (c) IBM Corp. and others 2004. All rights reserved.