|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<MappingState>
org.apache.stanbol.entityhub.servicesapi.model.MappingState
public enum MappingState
Enumeration that defines the different states of EntityMapping
instances.
| Enum Constant Summary | |
|---|---|
confirmed
Indicated, that this mapping is fully valied and can be used in any application context |
|
expired
This indicates that this mapping has expired. |
|
proposed
Indicated, that a mapping of the entity to the symbol is proposed. |
|
rejected
Mapping the entity to the symbol was rejected by some user/process. |
|
| Method Summary | |
|---|---|
static MappingState |
getState(String uri)
Getter for the State based on the URI. |
String |
getUri()
|
static boolean |
isState(String uri)
|
String |
toString()
|
static MappingState |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static MappingState[] |
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 |
|---|
public static final MappingState rejected
public static final MappingState proposed
public static final MappingState expired
confirmed but now waits for
some confirmation activity. Based on the application context it might
still be OK to use mappings with that state.
public static final MappingState confirmed
| Method Detail |
|---|
public static MappingState[] values()
for (MappingState c : MappingState.values()) System.out.println(c);
public static MappingState valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is nullpublic String getUri()
public String toString()
toString in class Enum<MappingState>
public static MappingState getState(String uri)
throws IllegalArgumentException
uri - the URI
IllegalArgumentException - if the parsed URI does not represent
a statepublic static boolean isState(String uri)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||