uk.ac.soton.itinnovation.registry.icomponent.search.query
Class XmlQuery

java.lang.Object
  extended by uk.ac.soton.itinnovation.registry.icomponent.search.query.XmlQuery
All Implemented Interfaces:
XmlQuerySubUnitContainer, XmlQueryUnit

public class XmlQuery
extends Object
implements XmlQueryUnit, XmlQuerySubUnitContainer

This class is a container for object-oriented XML-based queries: ooXmlQL.

Author:
Uwe Radetzki

Field Summary
 String returnRelation
           
 
Constructor Summary
XmlQuery()
           
 
Method Summary
 void addNamespaceDeclaration(NamespaceDeclaration namespace)
           
 void addQuerySubUnit(XmlQueryUnit subquery)
           
 void addVariableDeclaration(VariableDeclaration aggFunc)
           
 FromXmlQueryHolder getFrom()
           
 JoinXmlQueryHolder getJoin()
           
 ArrayList<NamespaceDeclaration> getNamespaceDeclarations()
           
 XmlQueryUnit getParent()
          Get the parent xml query, if it exists.
 String[] getSelect()
           
 String getSelectUnparsed()
           
 XmlQueryUnit getSubquery()
           
 ArrayList<VariableDeclaration> getVariableDeclarations()
           
 String getWhere()
           
 boolean isDistinct()
           
 void setDistinct(boolean distinct)
           
 void setFromXmlQueryHolder(FromXmlQueryHolder from)
           
 void setJoin(JoinXmlQueryHolder join)
           
 void setParent(XmlQueryUnit parent)
          Set the parent of this xml query.
 void setSelect(String[] select)
           
 void setSelectUnparsed(String selectUnparsed)
           
 void setWhere(String where)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

returnRelation

public String returnRelation
Constructor Detail

XmlQuery

public XmlQuery()
Method Detail

toString

public String toString()
Overrides:
toString in class Object

getSelectUnparsed

public String getSelectUnparsed()

setSelectUnparsed

public void setSelectUnparsed(String selectUnparsed)

isDistinct

public boolean isDistinct()

setDistinct

public void setDistinct(boolean distinct)

getSelect

public String[] getSelect()

setSelect

public void setSelect(String[] select)

getSubquery

public XmlQueryUnit getSubquery()

addQuerySubUnit

public void addQuerySubUnit(XmlQueryUnit subquery)
Specified by:
addQuerySubUnit in interface XmlQuerySubUnitContainer

addVariableDeclaration

public void addVariableDeclaration(VariableDeclaration aggFunc)

getVariableDeclarations

public ArrayList<VariableDeclaration> getVariableDeclarations()

addNamespaceDeclaration

public void addNamespaceDeclaration(NamespaceDeclaration namespace)

getNamespaceDeclarations

public ArrayList<NamespaceDeclaration> getNamespaceDeclarations()

getWhere

public String getWhere()

setWhere

public void setWhere(String where)

getJoin

public JoinXmlQueryHolder getJoin()

setJoin

public void setJoin(JoinXmlQueryHolder join)

setFromXmlQueryHolder

public final void setFromXmlQueryHolder(FromXmlQueryHolder from)

getFrom

public final FromXmlQueryHolder getFrom()

getParent

public XmlQueryUnit getParent()
Description copied from interface: XmlQueryUnit
Get the parent xml query, if it exists.

Specified by:
getParent in interface XmlQueryUnit
Returns:
the parent xml query, null otherwise.

setParent

public void setParent(XmlQueryUnit parent)
Description copied from interface: XmlQueryUnit
Set the parent of this xml query.

Specified by:
setParent in interface XmlQueryUnit


Copyright © 2001-2007 University of Southampton IT Innovation Centre. All Rights Reserved.