org.jvnet.jax_ws_commons.json
Class SchemaInfo

java.lang.Object
  extended by org.jvnet.jax_ws_commons.json.SchemaInfo

public final class SchemaInfo
extends java.lang.Object

Captures the information parsed from XML Schema. Used to guide the JSON/XML conversion.

Author:
Kohsuke Kawaguchi

Constructor Summary
SchemaInfo(com.sun.xml.ws.api.server.WSEndpoint endpoint)
           
 
Method Summary
 javax.xml.stream.XMLStreamReader createXMLStreamReader(org.codehaus.jettison.json.JSONTokener tokener)
           
 javax.xml.stream.XMLStreamWriter createXMLStreamWriter(java.io.Writer writer)
           
 java.util.List<JsonOperation> getOperations()
           
 java.lang.String getServiceName()
           
 java.util.Set<CompositeJsonType> getTypes()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SchemaInfo

public SchemaInfo(com.sun.xml.ws.api.server.WSEndpoint endpoint)
Throws:
javax.xml.ws.WebServiceException - If failed to parse schema portion inside WSDL.
Method Detail

getServiceName

public java.lang.String getServiceName()

createXMLStreamWriter

public javax.xml.stream.XMLStreamWriter createXMLStreamWriter(java.io.Writer writer)
                                                       throws javax.xml.stream.XMLStreamException
Throws:
javax.xml.stream.XMLStreamException

createXMLStreamReader

public javax.xml.stream.XMLStreamReader createXMLStreamReader(org.codehaus.jettison.json.JSONTokener tokener)
                                                       throws org.codehaus.jettison.json.JSONException,
                                                              javax.xml.stream.XMLStreamException
Throws:
org.codehaus.jettison.json.JSONException
javax.xml.stream.XMLStreamException

getOperations

public java.util.List<JsonOperation> getOperations()

getTypes

public java.util.Set<CompositeJsonType> getTypes()