net.sourceforge.nrl.parser.model
Enum IModelElement.ElementType

java.lang.Object
  extended by java.lang.Enum<IModelElement.ElementType>
      extended by net.sourceforge.nrl.parser.model.IModelElement.ElementType
All Implemented Interfaces:
Serializable, Comparable<IModelElement.ElementType>
Enclosing interface:
IModelElement

public static enum IModelElement.ElementType
extends Enum<IModelElement.ElementType>

A short summary of what sort of model element this is. Used by IModelElement.getElementType().


Enum Constant Summary
Classifier
          Element is a classifier (IClassifier}.
DataType
          Element is a data type (IDataType).
DataTypeWithAttributes
          Element is a data type (IDataType), but has attributes.
Enumeration
          Element is an IClassifier representing an enumeration.
Package
          Element is an IPackage.
 
Method Summary
static IModelElement.ElementType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static IModelElement.ElementType[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

Classifier

public static final IModelElement.ElementType Classifier
Element is a classifier (IClassifier}.


DataType

public static final IModelElement.ElementType DataType
Element is a data type (IDataType).


DataTypeWithAttributes

public static final IModelElement.ElementType DataTypeWithAttributes
Element is a data type (IDataType), but has attributes.


Enumeration

public static final IModelElement.ElementType Enumeration
Element is an IClassifier representing an enumeration.


Package

public static final IModelElement.ElementType Package
Element is an IPackage.

Method Detail

values

public static final IModelElement.ElementType[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(IModelElement.ElementType c : IModelElement.ElementType.values())
        System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they're declared

valueOf

public static IModelElement.ElementType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name


Copyright © 2006-2010 Christian Nentwich and others