|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<ActionType>
org.xenei.jena.entities.impl.ActionType
public enum ActionType
An enumeration of Action types.
| Enum Constant Summary | |
|---|---|
EXISTENTIAL
Indicates a method that checks for the existance of a value |
|
GETTER
Indicates a method that gets a value |
|
REMOVER
Indicates a method that removes a value |
|
SETTER
Indicates a method that sets a value |
|
| Method Summary | |
|---|---|
String |
extractName(String name)
Extract the local name portion of the function name/ |
boolean |
isA(String functionName)
Test to see if the function name is of this action type. |
static ActionType |
parse(String functionName)
Parse the action type from the function name. |
static ActionType |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static ActionType[] |
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, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final ActionType GETTER
public static final ActionType SETTER
public static final ActionType REMOVER
public static final ActionType EXISTENTIAL
| Method Detail |
|---|
public static ActionType[] values()
for (ActionType c : ActionType.values()) System.out.println(c);
public static ActionType 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 static ActionType parse(String functionName)
| Function prefix | ActionType |
|---|---|
| get or is | GETTER |
| set or add | SETTER |
| remove | REMOVER |
| has | EXISTENTIAL |
functionName -
IllegalArgumentException - if the function does not have an action type prefix.public boolean isA(String functionName)
functionName - The name to test
public String extractName(String name)
name - The function name to extract the local portion from.
IllegalArgumentException - fur unrecognized ActionType instances.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||