edu.ucsb.adl.middleware
Class Query.Constraint

java.lang.Object
  |
  +--edu.ucsb.adl.middleware.Query.Constraint
Direct Known Subclasses:
Query.BooleanConstraint, Query.SimpleConstraint
Enclosing class:
Query

public abstract static class Query.Constraint
extends java.lang.Object

Abstract base class for constraints.


Field Summary
protected  Query.Constraint m_parent
          The constraint's parent or null.
 
Constructor Summary
Query.Constraint()
          Constructs a Constraint with no parent.
 
Method Summary
 Query.Constraint getParent()
          Returns the constraint's parent.
abstract  java.lang.String toHTML(java.lang.String mapServerURL)
          Converts the constraint to HTML.
abstract  java.lang.String toXML(int level)
          Converts the constraint to XML.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_parent

protected Query.Constraint m_parent
The constraint's parent or null.

Constructor Detail

Query.Constraint

public Query.Constraint()
Constructs a Constraint with no parent.

Method Detail

getParent

public Query.Constraint getParent()
Returns the constraint's parent.

Returns:
The parent constraint or null.

toHTML

public abstract java.lang.String toHTML(java.lang.String mapServerURL)
Converts the constraint to HTML.

Parameters:
mapServerURL - The template URL of a map server or null.
Returns:
An HTML fragment consisting of one or more <li> elements.

toXML

public abstract java.lang.String toXML(int level)
Converts the constraint to XML.

Parameters:
level - The current indentation level; should be nonnegative.
Returns:
An XML fragment.