Enum PropertyType
- java.lang.Object
-
- java.lang.Enum<PropertyType>
-
- edu.cornell.mannlib.vitro.webapp.utils.configuration.PropertyType
-
- All Implemented Interfaces:
Serializable,Comparable<PropertyType>
public enum PropertyType extends Enum<PropertyType>
An enumeration of the types of properties that the ConfigurationBeanLoader will support. Also, classes that represent the Java methods and RDF statements associated with those types.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPropertyType.FloatPropertyMethodstatic classPropertyType.FloatPropertyStatementstatic classPropertyType.PropertyMethodstatic classPropertyType.PropertyStatementstatic classPropertyType.PropertyTypeExceptionstatic classPropertyType.ResourcePropertyMethodstatic classPropertyType.ResourcePropertyStatementstatic classPropertyType.StringPropertyMethodstatic classPropertyType.StringPropertyStatement
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract PropertyType.PropertyMethodbuildPropertyMethod(Method method, Property annotation)protected abstract PropertyType.PropertyStatementbuildPropertyStatement(org.apache.jena.rdf.model.Statement s)static PropertyType.PropertyMethodcreatePropertyMethod(Method method, Property annotation)static PropertyType.PropertyStatementcreatePropertyStatement(org.apache.jena.rdf.model.Statement s)static PropertyTypetypeForObject(org.apache.jena.rdf.model.RDFNode object)static PropertyTypetypeForParameterType(Class<?> parameterType)static PropertyTypevalueOf(String name)Returns the enum constant of this type with the specified name.static PropertyType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
RESOURCE
public static final PropertyType RESOURCE
-
STRING
public static final PropertyType STRING
-
FLOAT
public static final PropertyType FLOAT
-
-
Method Detail
-
values
public static PropertyType[] 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 (PropertyType c : PropertyType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PropertyType 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
-
typeForObject
public static PropertyType typeForObject(org.apache.jena.rdf.model.RDFNode object) throws PropertyType.PropertyTypeException
-
typeForParameterType
public static PropertyType typeForParameterType(Class<?> parameterType) throws PropertyType.PropertyTypeException
-
createPropertyStatement
public static PropertyType.PropertyStatement createPropertyStatement(org.apache.jena.rdf.model.Statement s) throws PropertyType.PropertyTypeException
-
createPropertyMethod
public static PropertyType.PropertyMethod createPropertyMethod(Method method, Property annotation) throws PropertyType.PropertyTypeException
-
buildPropertyStatement
protected abstract PropertyType.PropertyStatement buildPropertyStatement(org.apache.jena.rdf.model.Statement s)
-
buildPropertyMethod
protected abstract PropertyType.PropertyMethod buildPropertyMethod(Method method, Property annotation)
-
-