org.apache.stanbol.entityhub.servicesapi.model
Enum ManagedEntityState

java.lang.Object
  extended by java.lang.Enum<ManagedEntityState>
      extended by org.apache.stanbol.entityhub.servicesapi.model.ManagedEntityState
All Implemented Interfaces:
Serializable, Comparable<ManagedEntityState>

public enum ManagedEntityState
extends Enum<ManagedEntityState>

Enumeration that defines the different states of Entities managed by the Entityhub

Author:
Rupert Westenthaler

Enum Constant Summary
active
          Symbols with that state are ready to be used.
depreciated
          This symbol should no longer be moved.
proposed
          Indicates usually a newly created Symbol that needs some kind of confirmation.
removed
          This symbol is marked as removed
 
Method Summary
static ManagedEntityState getState(String uri)
          Getter for the State based on the URI.
 String getUri()
           
static boolean isState(String uri)
           
 String toString()
           
static ManagedEntityState valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ManagedEntityState[] 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

removed

public static final ManagedEntityState removed
This symbol is marked as removed


depreciated

public static final ManagedEntityState depreciated
This symbol should no longer be moved. Usually there are one or more new symbols that should be used instead of this one. See Symbol#getSuccessors() for more information


proposed

public static final ManagedEntityState proposed
Indicates usually a newly created Symbol that needs some kind of confirmation.


active

public static final ManagedEntityState active
Symbols with that state are ready to be used.

Method Detail

values

public static ManagedEntityState[] 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 (ManagedEntityState c : ManagedEntityState.values())
    System.out.println(c);

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

valueOf

public static ManagedEntityState 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

getUri

public String getUri()

toString

public String toString()
Overrides:
toString in class Enum<ManagedEntityState>

getState

public static ManagedEntityState getState(String uri)
                                   throws IllegalArgumentException
Getter for the State based on the URI.

Parameters:
uri - the URI
Returns:
the State
Throws:
IllegalArgumentException - if the parsed URI does not represent a state

isState

public static boolean isState(String uri)


Copyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.