public class ResourceShapeFactory extends Object
Modifier and Type | Field and Description |
---|---|
protected static Map<Class<?>,ValueType> |
CLASS_TO_VALUE_TYPE |
protected static String |
METHOD_NAME_START_GET |
protected static int |
METHOD_NAME_START_GET_LENGTH |
protected static String |
METHOD_NAME_START_IS |
protected static int |
METHOD_NAME_START_IS_LENGTH |
protected static String |
METHOD_NAME_START_SET |
Modifier | Constructor and Description |
---|---|
protected |
ResourceShapeFactory() |
Modifier and Type | Method and Description |
---|---|
static ResourceShape |
createResourceShape(String baseURI,
String resourceShapesPath,
String resourceShapePath,
Class<?> resourceClass) |
protected static Class<?> |
getComponentType(Class<?> resourceClass,
Method method,
Class<?> type) |
protected static String |
getDefaultPropertyName(Method method) |
protected static void |
validateSetMethodExists(Class<?> resourceClass,
Method getMethod) |
protected static void |
validateUserSpecifiedValueType(Class<?> resourceClass,
Method method,
ValueType userSpecifiedValueType,
Class<?> componentType) |
protected static final String METHOD_NAME_START_GET
protected static final String METHOD_NAME_START_IS
protected static final String METHOD_NAME_START_SET
protected static final int METHOD_NAME_START_GET_LENGTH
protected static final int METHOD_NAME_START_IS_LENGTH
public static ResourceShape createResourceShape(String baseURI, String resourceShapesPath, String resourceShapePath, Class<?> resourceClass) throws OslcCoreApplicationException, URISyntaxException
protected static Class<?> getComponentType(Class<?> resourceClass, Method method, Class<?> type) throws OslcCoreInvalidPropertyTypeException
protected static void validateSetMethodExists(Class<?> resourceClass, Method getMethod) throws OslcCoreMissingSetMethodException
protected static void validateUserSpecifiedValueType(Class<?> resourceClass, Method method, ValueType userSpecifiedValueType, Class<?> componentType) throws OslcCoreInvalidValueTypeException
Copyright © 2020. All rights reserved.