org.deegree.services.wpvs.io
Enum ModelBackend.Type

java.lang.Object
  extended by java.lang.Enum<ModelBackend.Type>
      extended by org.deegree.services.wpvs.io.ModelBackend.Type
All Implemented Interfaces:
Serializable, Comparable<ModelBackend.Type>
Enclosing class:
ModelBackend<G>

public static enum ModelBackend.Type
extends Enum<ModelBackend.Type>

The Types known to the modelbackend

Version:
$Revision: 30127 $, $Date: 2011-03-22 11:11:12 +0100 (Tue, 22 Mar 2011) $
Author:
Rutger Bezema, last edited by: $Author: aschmitz $

Enum Constant Summary
BUILDING
          Buildings are to be handled
PROTOTYPE
          Prototypes are to be handled
STAGE
          Stages are to be handled
TREE
          Trees are to be handled
 
Method Summary
 String getModelTypeName()
           
 String toString()
           
static ModelBackend.Type valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ModelBackend.Type[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

BUILDING

public static final ModelBackend.Type BUILDING
Buildings are to be handled


PROTOTYPE

public static final ModelBackend.Type PROTOTYPE
Prototypes are to be handled


STAGE

public static final ModelBackend.Type STAGE
Stages are to be handled


TREE

public static final ModelBackend.Type TREE
Trees are to be handled

Method Detail

values

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

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

valueOf

public static ModelBackend.Type 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
NullPointerException - if the argument is null

toString

public String toString()
Overrides:
toString in class Enum<ModelBackend.Type>

getModelTypeName

public String getModelTypeName()
Returns:
the name of the given type in the database.


Copyright © 2011. All Rights Reserved.