|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectinfo.sswap.http.representation.json.JsonMappingFactory
public class JsonMappingFactory
A factory for parsing Json encoding of the subject-object mapping.
Constructor Summary | |
---|---|
JsonMappingFactory()
|
Method Summary | |
---|---|
static Mapping |
buildMapping(org.json.JSONObject jsonObject,
Prefixes prefixes)
Builds a mapping from the Json representation. |
static java.util.Collection<Mapping> |
buildMappings(org.json.JSONArray jsonArray,
Prefixes prefixes)
Builds a mapping from the Json representation. |
private static java.util.Collection<java.lang.String> |
processArray(org.json.JSONArray array,
Prefixes prefixes)
Converts a JSON array of QNames into a corresponding collection of URIs (encoded as strings) |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JsonMappingFactory()
Method Detail |
---|
public static java.util.Collection<Mapping> buildMappings(org.json.JSONArray jsonArray, Prefixes prefixes) throws org.json.JSONException
jsonArray
- the json array with the mappingsprefixes
- the definition of namespace prefixes (for QName expansion)
org.json.JSONException
public static Mapping buildMapping(org.json.JSONObject jsonObject, Prefixes prefixes) throws org.json.JSONException
jsonObject
- the json object with the mappingprefixes
- the definition of namespace prefixes (for QName expansion)
org.json.JSONException
private static java.util.Collection<java.lang.String> processArray(org.json.JSONArray array, Prefixes prefixes) throws org.json.JSONException
array
- the JSON arrayprefixes
- the prefix information for QName expansion
org.json.JSONException
- if any of the elements of the array is not a plain json string
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |