Enum AccessType
- java.lang.Object
-
- java.lang.Enum<AccessType>
-
- org.gcube.informationsystem.base.reference.AccessType
-
- All Implemented Interfaces:
Serializable,Comparable<AccessType>
public enum AccessType extends Enum<AccessType>
Enumerates the basic type names.- Author:
- Luca Frosini (ISTI - CNR)
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CONSISTS_OFCONTEXTENTITYENTITY_ELEMENTENTITY_TYPEFACETIS_PARENT_OFIS_RELATED_TOPROPERTYPROPERTY_DEFINITIONPROPERTY_ELEMENTPROPERTY_TYPEQUERY_TEMPLATERELATIONRELATION_ELEMENTRELATION_TYPERESOURCETEMPLATE_VARIABLE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AccessTypegetAccessType(Class<?> clz)static AccessTypegetAccessType(String typeName)Provide the access type from the name provided type name as argument<ISM extends Element,ISMC extends ISM,ISMD extends ISMC>
Class<ISMD>getDummyImplementationClass()static AccessType[]getERTypes()<ISM extends Element,ISMC extends ISM>
Class<ISMC>getImplementationClass()static AccessType[]getModelTypes()StringgetName()<ISM extends Element>
Class<ISM>getTypeClass()StringlowerCaseFirstCharacter()static Set<String>names()StringtoString()static AccessTypevalueOf(String name)Returns the enum constant of this type with the specified name.static AccessType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PROPERTY_ELEMENT
public static final AccessType PROPERTY_ELEMENT
-
PROPERTY_DEFINITION
public static final AccessType PROPERTY_DEFINITION
-
PROPERTY_TYPE
public static final AccessType PROPERTY_TYPE
-
TEMPLATE_VARIABLE
public static final AccessType TEMPLATE_VARIABLE
-
PROPERTY
public static final AccessType PROPERTY
-
ENTITY_ELEMENT
public static final AccessType ENTITY_ELEMENT
-
ENTITY_TYPE
public static final AccessType ENTITY_TYPE
-
QUERY_TEMPLATE
public static final AccessType QUERY_TEMPLATE
-
CONTEXT
public static final AccessType CONTEXT
-
ENTITY
public static final AccessType ENTITY
-
RESOURCE
public static final AccessType RESOURCE
-
FACET
public static final AccessType FACET
-
RELATION_ELEMENT
public static final AccessType RELATION_ELEMENT
-
RELATION_TYPE
public static final AccessType RELATION_TYPE
-
IS_PARENT_OF
public static final AccessType IS_PARENT_OF
-
RELATION
public static final AccessType RELATION
-
IS_RELATED_TO
public static final AccessType IS_RELATED_TO
-
CONSISTS_OF
public static final AccessType CONSISTS_OF
-
-
Method Detail
-
values
public static AccessType[] 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 (AccessType c : AccessType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AccessType 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 nameNullPointerException- if the argument is null
-
getImplementationClass
public <ISM extends Element,ISMC extends ISM> Class<ISMC> getImplementationClass()
-
getDummyImplementationClass
public <ISM extends Element,ISMC extends ISM,ISMD extends ISMC> Class<ISMD> getDummyImplementationClass()
-
getName
public String getName()
-
lowerCaseFirstCharacter
public String lowerCaseFirstCharacter()
-
toString
public String toString()
- Overrides:
toStringin classEnum<AccessType>
-
getAccessType
public static AccessType getAccessType(String typeName)
Provide the access type from the name provided type name as argument- Parameters:
typeName- type name- Returns:
- the AccessType from the name provided type name as argument, null otherwise
-
getAccessType
public static AccessType getAccessType(Class<?> clz)
-
getModelTypes
public static AccessType[] getModelTypes()
- Returns:
- an array of AccessTypes containing only Model Types (i.e. Property, Resource, Facet, IsRelatedTo, ConsistsOf)
-
getERTypes
public static AccessType[] getERTypes()
- Returns:
- an array of AccessTypes containing only Entity/Relation Model Types (i.e. Resource, Facet, IsRelatedTo, ConsistsOf)
-
-