IBM Rational Software Modeler
Release 6.0

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

java.lang.Object
  extended bycom.ibm.xtools.patterns.framework.AbstractPatternMetatype
      extended bycom.ibm.xtools.patterns.framework.java.PatternMetatype

public class PatternMetatype
extends AbstractPatternMetatype

The pattern metatype class to use when dealing with Java classes and types.


Nested Class Summary
 class PatternMetatype.JavaMetatype
          This class is the common implementation for a pattern metatype that represents a java class.
 
Constructor Summary
PatternMetatype(Class javaClass)
          Constructs a new pattern metatype based on the given Java class instance.
 
Method Summary
 boolean equals(Object object)
           
 IPatternMetatype getIPatternMetatype()
          Get an IPatternMetatype associated with this PatternMetatype.
 int hashCode()
           
 boolean isValidValue(Object object)
          Determines if the object specified is a valid value for this metatype.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PatternMetatype

public PatternMetatype(Class javaClass)
Constructs a new pattern metatype based on the given Java class instance.

Parameters:
javaClass - the Java class instance corresponding to the type this metatype class represents
Method Detail

getIPatternMetatype

public IPatternMetatype getIPatternMetatype()
Get an IPatternMetatype associated with this PatternMetatype.

Returns:
the associated IPatternMetatype

equals

public boolean equals(Object object)

hashCode

public int hashCode()

isValidValue

public boolean isValidValue(Object object)
Description copied from class: AbstractPatternMetatype
Determines if the object specified is a valid value for this metatype.

Specified by:
isValidValue in class AbstractPatternMetatype
Parameters:
object - the object to test
Returns:
true if the object is a valid value for this metatype otherwise false

toString

public String toString()

IBM Rational Software Modeler
Release 6.0


Guidelines for using Eclipse APIs.

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