org.plasma.sdo.helper
Class PlasmaQueryHelper

java.lang.Object
  extended by org.plasma.sdo.helper.PlasmaQueryHelper

public class PlasmaQueryHelper
extends Object


Field Summary
static PlasmaQueryHelper INSTANCE
           
 
Method Summary
 List<Type> define(InputStream queryInputStream, String targetNamespaceURI, String supplierUri)
          Define a Query as Types.
 List<Type> define(Query query, String targetNamespaceURI, String targetNamespacePrefix, String supplierUri)
          Define a Query as Types.
 List<Type> define(Reader queryReader, String targetNamespaceURI, String supplierUri)
          Define a Query as Types.
 List<Type> define(String queryXML, String supplierUri)
          Define a Query as Types.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static PlasmaQueryHelper INSTANCE
Method Detail

define

public List<Type> define(String queryXML,
                         String supplierUri)
Define a Query as Types. The Types are available through TypeHelper and DataGraph getType() methods. Same as define(new StringReader(xsd), null)

Parameters:
queryXML - the XML Query.
supplierUri - the URI for the SDO namespace which supplied the types used in the given query
Returns:
the defined Types.
Throws:
IllegalArgumentException - if the Types could not be defined.

define

public List<Type> define(Reader queryReader,
                         String targetNamespaceURI,
                         String supplierUri)
Define a Query as Types. The Types are available through TypeHelper and DataGraph getType() methods.

Parameters:
xsdReader - reader to an XML Schema.
targetNamespaceURI - the URI of the types to be defined
supplierUri - the URI for the SDO namespace which supplied the types used in the given query
Returns:
the defined Types.
Throws:
IllegalArgumentException - if the Types could not be defined.

define

public List<Type> define(InputStream queryInputStream,
                         String targetNamespaceURI,
                         String supplierUri)
Define a Query as Types. The Types are available through TypeHelper and DataGraph getType() methods.

Parameters:
queryInputStream - input stream to a Query.
targetNamespaceURI - the URI of the types to be defined
supplierUri - the URI for the SDO namespace which supplied the types used in the given query
Returns:
the defined Types.
Throws:
IllegalArgumentException - if the Types could not be defined.

define

public List<Type> define(Query query,
                         String targetNamespaceURI,
                         String targetNamespacePrefix,
                         String supplierUri)
Define a Query as Types. The Types are available through TypeHelper and DataGraph getType() methods.

Parameters:
query - the input Query.
targetNamespaceURI - the URI of the types to be defined
supplierUri - the URI for the SDO namespace which supplied the types used in the given query
Returns:
the defined Types.
Throws:
IllegalArgumentException - if the Types could not be defined.


Copyright © 2014. All rights reserved.