|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectinfo.sswap.http.representation.json.JsonImportFactory
public class JsonImportFactory
Builds an Imports object based on information in a JSONArray.
Constructor Summary | |
---|---|
JsonImportFactory()
|
Method Summary | |
---|---|
static Imports |
buildImports(org.json.JSONArray array,
Prefixes prefixes)
Builds Imports object from a JSON Array |
static Imports |
buildImports(java.lang.String string,
Prefixes prefixes)
Builds Imports object from a JSON Array |
static Imports |
extractImports(org.json.JSONObject containingObject,
Prefixes prefixes)
Extracts imports information from a JSON object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JsonImportFactory()
Method Detail |
---|
public static Imports extractImports(org.json.JSONObject containingObject, Prefixes prefixes) throws org.json.JSONException
containingObject
- the JSON object containing the imports definitionprefixes
- the prefixes object for resolution of QNames
org.json.JSONException
- if the JSON has invalid structurepublic static Imports buildImports(org.json.JSONArray array, Prefixes prefixes) throws org.json.JSONException
array
- the JSONArray that should only contain strings (either URIs or QNames)prefixes
- the object that contains information about prefixes
org.json.JSONException
- if the contents of the array are not stringspublic static Imports buildImports(java.lang.String string, Prefixes prefixes) throws org.json.JSONException
string
- either URI or QNameprefixes
- the object that contains information about prefixes
org.json.JSONException
- if the contents of the array are not strings
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |