Class JsonHelper
java.lang.Object
org.eclipse.lyo.oslc4j.provider.json4j.JsonHelper
Deprecated.
Use JSON-LD support in Jena provider.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
Deprecated.System property "org.eclipse.lyo.oslc4j.readSpecialNumberValues" : When "true", read "INF", "-INF", and "NaN" strings for Infinity, -Infinity, and NaN float and double values, respectively.static final String
Deprecated.System property "org.eclipse.lyo.oslc4j.writeSpecialNumberValues" : When "true", write "INF", "-INF", and "NaN" strings for Infinity, -Infinity, and NaN float and double values, respectively. -
Method Summary
Modifier and TypeMethodDescriptionprotected static void
addAboutURI
(org.apache.wink.json4j.JSONObject jsonObject, Map<String, String> namespaceMappings, Map<String, String> reverseNamespaceMappings, Class<? extends Object> objectClass, URI aboutURI) Deprecated.protected static void
addExtendedProperties
(Map<String, String> namespaceMappings, Map<String, String> reverseNamespaceMappings, org.apache.wink.json4j.JSONObject jsonObject, IExtendedResource extendedResource, Map<String, Object> properties, Map<Object, org.apache.wink.json4j.JSONObject> visitedObjects) Deprecated.static org.apache.wink.json4j.JSONObject
createJSON
(String descriptionAbout, String responseInfoAbout, ResponseInfo<?> responseInfo, Object[] objects, Map<String, Object> properties) Deprecated.protected static void
fillInRdfType
(String rdfPrefix, org.apache.wink.json4j.JSONObject jsonObject, IExtendedResource resource) Deprecated.static Object[]
Deprecated.protected static org.apache.wink.json4j.JSONObject
handleResourceReference
(Map<String, String> namespaceMappings, Map<String, String> reverseNamespaceMappings, Class<?> resourceClass, Method method, URI uri) Deprecated.
-
Field Details
-
OSLC4J_WRITE_SPECIAL_NUMS
Deprecated.System property "org.eclipse.lyo.oslc4j.writeSpecialNumberValues" : When "true", write "INF", "-INF", and "NaN" strings for Infinity, -Infinity, and NaN float and double values, respectively. Enabled by default. -
OSLC4J_READ_SPECIAL_NUMS
Deprecated.System property "org.eclipse.lyo.oslc4j.readSpecialNumberValues" : When "true", read "INF", "-INF", and "NaN" strings for Infinity, -Infinity, and NaN float and double values, respectively. Enabled by default.
-
-
Method Details
-
createJSON
public static org.apache.wink.json4j.JSONObject createJSON(String descriptionAbout, String responseInfoAbout, ResponseInfo<?> responseInfo, Object[] objects, Map<String, Object> properties) throws DatatypeConfigurationException, IllegalAccessException, IllegalArgumentException, InvocationTargetException, org.apache.wink.json4j.JSONException, OslcCoreApplicationExceptionDeprecated.- Throws:
DatatypeConfigurationException
IllegalAccessException
IllegalArgumentException
InvocationTargetException
org.apache.wink.json4j.JSONException
OslcCoreApplicationException
-
fromJSON
public static Object[] fromJSON(org.apache.wink.json4j.JSONObject jsonObject, Class<?> beanClass) throws DatatypeConfigurationException, IllegalAccessException, IllegalArgumentException, InstantiationException, InvocationTargetException, OslcCoreApplicationException, URISyntaxException Deprecated. -
addExtendedProperties
protected static void addExtendedProperties(Map<String, String> namespaceMappings, Map<String, throws org.apache.wink.json4j.JSONException, DatatypeConfigurationException, IllegalAccessException, InvocationTargetException, OslcCoreApplicationExceptionString> reverseNamespaceMappings, org.apache.wink.json4j.JSONObject jsonObject, IExtendedResource extendedResource, Map<String, Object> properties, Map<Object, org.apache.wink.json4j.JSONObject> visitedObjects) Deprecated.- Throws:
org.apache.wink.json4j.JSONException
DatatypeConfigurationException
IllegalAccessException
InvocationTargetException
OslcCoreApplicationException
-
handleResourceReference
protected static org.apache.wink.json4j.JSONObject handleResourceReference(Map<String, String> namespaceMappings, Map<String, throws OslcCoreRelativeURIException, org.apache.wink.json4j.JSONExceptionString> reverseNamespaceMappings, Class<?> resourceClass, Method method, URI uri) Deprecated.- Throws:
OslcCoreRelativeURIException
org.apache.wink.json4j.JSONException
-
addAboutURI
protected static void addAboutURI(org.apache.wink.json4j.JSONObject jsonObject, Map<String, String> namespaceMappings, Map<String, throws OslcCoreRelativeURIException, org.apache.wink.json4j.JSONExceptionString> reverseNamespaceMappings, Class<? extends Object> objectClass, URI aboutURI) Deprecated.- Throws:
OslcCoreRelativeURIException
org.apache.wink.json4j.JSONException
-
fillInRdfType
protected static void fillInRdfType(String rdfPrefix, org.apache.wink.json4j.JSONObject jsonObject, IExtendedResource resource) throws URISyntaxException Deprecated.- Throws:
URISyntaxException
-