Class ResourceShapeFactory
- java.lang.Object
-
- org.eclipse.lyo.oslc4j.core.model.ResourceShapeFactory
-
- Direct Known Subclasses:
ShaclShapeFactory
public class ResourceShapeFactory extends Object
-
-
Field Summary
Fields Modifier and Type Field 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
-
Constructor Summary
Constructors Modifier Constructor Description protected
ResourceShapeFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method 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, Representation userSpecifiedRepresentation, Class<?> componentType)
-
-
-
Field Detail
-
METHOD_NAME_START_GET
protected static final String METHOD_NAME_START_GET
- See Also:
- Constant Field Values
-
METHOD_NAME_START_IS
protected static final String METHOD_NAME_START_IS
- See Also:
- Constant Field Values
-
METHOD_NAME_START_SET
protected static final String METHOD_NAME_START_SET
- See Also:
- Constant Field Values
-
METHOD_NAME_START_GET_LENGTH
protected static final int METHOD_NAME_START_GET_LENGTH
-
METHOD_NAME_START_IS_LENGTH
protected static final int METHOD_NAME_START_IS_LENGTH
-
-
Method Detail
-
createResourceShape
public static ResourceShape createResourceShape(String baseURI, String resourceShapesPath, String resourceShapePath, Class<?> resourceClass) throws OslcCoreApplicationException, URISyntaxException
-
getComponentType
protected static Class<?> getComponentType(Class<?> resourceClass, Method method, Class<?> type) throws OslcCoreInvalidPropertyTypeException
-
validateSetMethodExists
protected static void validateSetMethodExists(Class<?> resourceClass, Method getMethod) throws OslcCoreMissingSetMethodException
-
validateUserSpecifiedValueType
protected static void validateUserSpecifiedValueType(Class<?> resourceClass, Method method, ValueType userSpecifiedValueType, Representation userSpecifiedRepresentation, Class<?> componentType) throws OslcCoreInvalidValueTypeException
-
-