eu.emi.emir.client.glue2
Class JaxbToJson
java.lang.Object
eu.emi.emir.client.glue2.JaxbToJson
public class JaxbToJson
- extends Object
Converts XML to json array
- Author:
- a.memon
|
Method Summary |
static org.codehaus.jettison.json.JSONArray |
convert(org.ogf.schemas.glue._2009._03.spec_2.ServiceT service)
|
static org.codehaus.jettison.json.JSONArray |
convert(String glueXml)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JaxbToJson
public JaxbToJson()
convert
public static org.codehaus.jettison.json.JSONArray convert(String glueXml)
throws org.codehaus.jettison.json.JSONException,
DatatypeConfigurationException
- Parameters:
glueXml - valid glue2.0 xml document containing service and endpoint description
- Returns:
- JSONArray object for registration or update
- Throws:
org.codehaus.jettison.json.JSONException
DatatypeConfigurationException
convert
public static org.codehaus.jettison.json.JSONArray convert(org.ogf.schemas.glue._2009._03.spec_2.ServiceT service)
throws org.codehaus.jettison.json.JSONException,
DatatypeConfigurationException
- Throws:
org.codehaus.jettison.json.JSONException
DatatypeConfigurationException
Copyright © 2013 EMI. All Rights Reserved.