IBM Rational Software Modeler
Release 6.0

com.ibm.xtools.emf.query.conditions.eobjects
Class TypeRelation

java.lang.Object
  extended byorg.eclipse.emf.common.util.AbstractEnumerator
      extended bycom.ibm.xtools.emf.query.conditions.eobjects.TypeRelation
All Implemented Interfaces:
org.eclipse.emf.common.util.Enumerator

public final class TypeRelation
extends org.eclipse.emf.common.util.AbstractEnumerator

An enumerator for the kinds of relatioships between EClasses/types. It is primarily used by EObjectTypeRelationCondition to check for relations between EObjects


Field Summary
static int BASETYPE
          The integer value of the BASETYPE_LITERAL TypeRelation enumeration literal.
static TypeRelation BASETYPE_LITERAL
          A TypeRelation enumeration literal used to denote that one type is a base type of another.
static int DIRECT_BASETYPE
          The integer value of the DIRECT_BASETYPE_LITERAL TypeRelation enumeration literal.
static TypeRelation DIRECT_BASETYPE_LITERAL
          A TypeRelation enumeration literal used to denote that one type is a direct super type of another.
static int DIRECT_SUBTYPE
          The integer value of the DIRECT_SUBTYPE_LITERAL TypeRelation enumeration literal.
static TypeRelation DIRECT_SUBTYPE_LITERAL
          A TypeRelation enumeration literal used to denote that one type is a direct sub type of another.
static int RELATED_TYPE
          The integer value of the RELATED_TYPE_LITERAL TypeRelation enumeration literal.
static TypeRelation RELATED_TYPE_LITERAL
          A TypeRelation enumeration literal used to denote the presence of a relationship between two types, regardless of the nature of this relationship, in other words, either type could be a parent of another, or they could be the same.
static int SAMETYPE
          The integer value of the SAMETYPE_LITERAL TypeRelation enumeration literal.
static TypeRelation SAMETYPE_LITERAL
          A TypeRelation enumeration literal used to denote that two types are exactly the same.
static int SAMETYPE_OR_BASETYPE
          The integer value of the SAMETYPE_OR_BASETYPE_LITERAL TypeRelation enumeration literal.
static TypeRelation SAMETYPE_OR_BASETYPE_LITERAL
          A TypeRelation enumeration literal used to denote that one type is either the same or a super type of another.
static int SAMETYPE_OR_DIRECT_BASETYPE
          The integer value of the SAMETYPE_OR_DIRECT_BASETYPE_LITERAL TypeRelation enumeration literal.
static TypeRelation SAMETYPE_OR_DIRECT_BASETYPE_LITERAL
          A TypeRelation enumeration literal used to denote that one type is either the same or a direct base type of another.
static int SAMETYPE_OR_DIRECT_SUBTYPE
          The integer value of the SAMETYPE_OR_DIRECT_SUBTYPE_LITERAL TypeRelation enumeration literal.
static TypeRelation SAMETYPE_OR_DIRECT_SUBTYPE_LITERAL
          A TypeRelation enumeration literal used to denote that one type is either the same or a direct sub type of another.
static int SAMETYPE_OR_SUBTYPE
          The integer value of the SAMETYPE_OR_SUBTYPE_LITERAL TypeRelation enumeration literal.
static TypeRelation SAMETYPE_OR_SUBTYPE_LITERAL
          A TypeRelation enumeration literal used to denote that one type is either the same or a sub type of another.
static int SUBTYPE
          The integer value of the SUBTYPE_LITERAL TypeRelation enumeration literal.
static TypeRelation SUBTYPE_LITERAL
          A TypeRelation enumeration literal used to denote that one type is a sub type of another.
static int UNDEFINED
          The integer value of the UNDEFINED_LITERAL TypeRelation enumeration literal.
static TypeRelation UNDEFINED_LITERAL
          A TypeRelation enumeration literal used to denote an undefined relationship between two types which means the two types could or could not be related at all.
static int UNRELATED_TYPE
          The integer value of the UNRELATED_TYPE_LITERAL TypeRelation enumeration literal.
static TypeRelation UNRELATED_TYPE_LITERAL
          A TypeRelation enumeration literal used to denote the absence of a relationship between two types, regardless of the nature of this relationship, in other words, either type should not be a parent of the other, nor they should be the same.
static List VALUES
          An immutable list of the enumeration literals declared by this enumerator
 
Method Summary
static TypeRelation get(int value)
          Gets the TypeRelation enumeration literal with the integer value specified in the argument.
static TypeRelation get(String name)
          Gets the TypeRelation enumeration literal with the name specified in the argument.
static int getTotalCount()
          Answers how many enumeration literals declared by this enumerator.
 
Methods inherited from class org.eclipse.emf.common.util.AbstractEnumerator
getName, getValue, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

UNDEFINED_LITERAL

public static final TypeRelation UNDEFINED_LITERAL
A TypeRelation enumeration literal used to denote an undefined relationship between two types which means the two types could or could not be related at all.


RELATED_TYPE_LITERAL

public static final TypeRelation RELATED_TYPE_LITERAL
A TypeRelation enumeration literal used to denote the presence of a relationship between two types, regardless of the nature of this relationship, in other words, either type could be a parent of another, or they could be the same.


UNRELATED_TYPE_LITERAL

public static final TypeRelation UNRELATED_TYPE_LITERAL
A TypeRelation enumeration literal used to denote the absence of a relationship between two types, regardless of the nature of this relationship, in other words, either type should not be a parent of the other, nor they should be the same.


SAMETYPE_LITERAL

public static final TypeRelation SAMETYPE_LITERAL
A TypeRelation enumeration literal used to denote that two types are exactly the same.


BASETYPE_LITERAL

public static final TypeRelation BASETYPE_LITERAL
A TypeRelation enumeration literal used to denote that one type is a base type of another.


SUBTYPE_LITERAL

public static final TypeRelation SUBTYPE_LITERAL
A TypeRelation enumeration literal used to denote that one type is a sub type of another.


DIRECT_BASETYPE_LITERAL

public static final TypeRelation DIRECT_BASETYPE_LITERAL
A TypeRelation enumeration literal used to denote that one type is a direct super type of another.


DIRECT_SUBTYPE_LITERAL

public static final TypeRelation DIRECT_SUBTYPE_LITERAL
A TypeRelation enumeration literal used to denote that one type is a direct sub type of another.


SAMETYPE_OR_DIRECT_SUBTYPE_LITERAL

public static final TypeRelation SAMETYPE_OR_DIRECT_SUBTYPE_LITERAL
A TypeRelation enumeration literal used to denote that one type is either the same or a direct sub type of another.


SAMETYPE_OR_DIRECT_BASETYPE_LITERAL

public static final TypeRelation SAMETYPE_OR_DIRECT_BASETYPE_LITERAL
A TypeRelation enumeration literal used to denote that one type is either the same or a direct base type of another.


SAMETYPE_OR_SUBTYPE_LITERAL

public static final TypeRelation SAMETYPE_OR_SUBTYPE_LITERAL
A TypeRelation enumeration literal used to denote that one type is either the same or a sub type of another.


SAMETYPE_OR_BASETYPE_LITERAL

public static final TypeRelation SAMETYPE_OR_BASETYPE_LITERAL
A TypeRelation enumeration literal used to denote that one type is either the same or a super type of another.


UNDEFINED

public static final int UNDEFINED
The integer value of the UNDEFINED_LITERAL TypeRelation enumeration literal.


RELATED_TYPE

public static final int RELATED_TYPE
The integer value of the RELATED_TYPE_LITERAL TypeRelation enumeration literal.


UNRELATED_TYPE

public static final int UNRELATED_TYPE
The integer value of the UNRELATED_TYPE_LITERAL TypeRelation enumeration literal.


SAMETYPE

public static final int SAMETYPE
The integer value of the SAMETYPE_LITERAL TypeRelation enumeration literal.


BASETYPE

public static final int BASETYPE
The integer value of the BASETYPE_LITERAL TypeRelation enumeration literal.


SUBTYPE

public static final int SUBTYPE
The integer value of the SUBTYPE_LITERAL TypeRelation enumeration literal.


DIRECT_BASETYPE

public static final int DIRECT_BASETYPE
The integer value of the DIRECT_BASETYPE_LITERAL TypeRelation enumeration literal.


DIRECT_SUBTYPE

public static final int DIRECT_SUBTYPE
The integer value of the DIRECT_SUBTYPE_LITERAL TypeRelation enumeration literal.


SAMETYPE_OR_DIRECT_SUBTYPE

public static final int SAMETYPE_OR_DIRECT_SUBTYPE
The integer value of the SAMETYPE_OR_DIRECT_SUBTYPE_LITERAL TypeRelation enumeration literal.


SAMETYPE_OR_DIRECT_BASETYPE

public static final int SAMETYPE_OR_DIRECT_BASETYPE
The integer value of the SAMETYPE_OR_DIRECT_BASETYPE_LITERAL TypeRelation enumeration literal.


SAMETYPE_OR_SUBTYPE

public static final int SAMETYPE_OR_SUBTYPE
The integer value of the SAMETYPE_OR_SUBTYPE_LITERAL TypeRelation enumeration literal.


SAMETYPE_OR_BASETYPE

public static final int SAMETYPE_OR_BASETYPE
The integer value of the SAMETYPE_OR_BASETYPE_LITERAL TypeRelation enumeration literal.


VALUES

public static final List VALUES
An immutable list of the enumeration literals declared by this enumerator

Method Detail

get

public static TypeRelation get(int value)
Gets the TypeRelation enumeration literal with the integer value specified in the argument.

Parameters:
value - An integer representing the value of a TypeRelation enumeration literal
Returns:
TypeRelation the TypeRelation having this name or null if the name is not recognised

get

public static TypeRelation get(String name)
Gets the TypeRelation enumeration literal with the name specified in the argument.

Parameters:
name - A string representing the name of a TypeRelation enumeration literal
Returns:
TypeRelation the TypeRelation having this name or null if the name is not recognised

getTotalCount

public static int getTotalCount()
Answers how many enumeration literals declared by this enumerator.

Returns:
int The total count of all enumeration literals declared by this enumerator

IBM Rational Software Modeler
Release 6.0


Guidelines for using Eclipse APIs.

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