|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<Entity> pt.digitalis.dif.dem.Entity
public enum Entity
Defines the known entity types to the framework.
Enum Constant Summary | |
---|---|
APPLICATION
A @ApplicationDefinition annotated Entity. |
|
PROVIDER
A @ProviderDefinition annotated Entity. |
|
SERVICE
A @ServiceDefinition annotated Entity. |
|
STAGE
A @StageDefinition annotated Entity. |
|
VALIDATOR
A @ValidatorDefinition annotated Entity. |
Method Summary | |
---|---|
static Entity |
getEntityTypeFromClass(pt.digitalis.utils.bytecode.holders.ClassHolder clazz)
Returns the Entity type of annotated class, null if no valid entity annotation is found. |
String |
getFullyQualifiedName()
Returns the Entity's FQN. |
static String |
getID(Entity type,
String id)
The ID builder utility method. |
String |
getName()
Returns the Entity's name. |
static Entity |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static Entity[] |
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 Entity VALIDATOR
@ValidatorDefinition
annotated Entity.
public static final Entity PROVIDER
@ProviderDefinition
annotated Entity.
public static final Entity APPLICATION
@ApplicationDefinition
annotated Entity.
public static final Entity SERVICE
@ServiceDefinition
annotated Entity.
public static final Entity STAGE
@StageDefinition
annotated Entity.
Method Detail |
---|
public static Entity[] values()
for (Entity c : Entity.values()) System.out.println(c);
public static Entity 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 getFullyQualifiedName()
public String getName()
public static String getID(Entity type, String id)
type
- the type of the entityid
- the id of the entity
public static Entity getEntityTypeFromClass(pt.digitalis.utils.bytecode.holders.ClassHolder clazz) throws pt.digitalis.utils.inspection.exception.ResourceNotFoundException
clazz
- the class to inspect
pt.digitalis.utils.inspection.exception.ResourceNotFoundException
- if the class annotations can't be read
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |