edu.indiana.dde.mylead.common
Interface MyLeadContextQuery

All Known Implementing Classes:
MyLeadQueryChain, MyLeadQueryPlan, MyLeadQuerySet

public interface MyLeadContextQuery

A myLEAD query consists of a target and optionally a query which provides the context for the target in that the query specifies the objects that the target should contain and also the hierarchy of objects that the target should be contained within. The context query can be a single chain of objects above or below the target which can be represented by an instance of the MyLeadQueryChain class. Alternately, the context could be a set of object chains above and below the target which is represented by an instance of the MyLeadQueryPlan class. An even more complex context could be where the target has to be within one of a number of alternate query plans - this is represented by an instance of the MyLeadQuerySet class. Each of these classes implements this interface, and the interface has one method - wrapQuery. This method must create an XML fragment that will validate against the query element of the LeadQueryType in the leadActivity.xsd schema which is used to validate the OGSA-DAI perform documents used for myLEAD queries.


Method Summary
 java.lang.String wrapQuery()
          Used to create an XML fragment that will validate against the query element of of the LeadQueryType in the leadActivity.xsd schema which is used to validate the OGSA-DAI perform documents used for myLEAD queries.
 

Method Detail

wrapQuery

public java.lang.String wrapQuery()
Used to create an XML fragment that will validate against the query element of of the LeadQueryType in the leadActivity.xsd schema which is used to validate the OGSA-DAI perform documents used for myLEAD queries.

Returns:
String with the XML fragment for the query element of the LeadQueryType in the leadActivity.xsd schema.