Class ResourceShapeFactory
java.lang.Object
org.eclipse.lyo.oslc4j.core.model.ResourceShapeFactory
- Direct Known Subclasses:
ShaclShapeFactory
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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 Details
-
METHOD_NAME_START_GET
- See Also:
-
METHOD_NAME_START_IS
- See Also:
-
METHOD_NAME_START_SET
- See Also:
-
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 -
CLASS_TO_VALUE_TYPE
-
-
Constructor Details
-
ResourceShapeFactory
protected ResourceShapeFactory()
-
-
Method Details
-
createResourceShape
public static ResourceShape createResourceShape(String baseURI, String resourceShapesPath, String resourceShapePath, Class<?> resourceClass) throws OslcCoreApplicationException, URISyntaxException -
getDefaultPropertyName
-
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
-