edu.indiana.dde.mylead.common
Class MyLeadElementFilter

java.lang.Object
  extended by edu.indiana.dde.mylead.common.MyLeadElementFilter
All Implemented Interfaces:
MyLeadContentFilter

public class MyLeadElementFilter
extends java.lang.Object
implements MyLeadContentFilter

This class is used to hold the criteria for an attribute filter in a myLEAD query.


Constructor Summary
MyLeadElementFilter()
          Default constructor for an instance of MyLeadElementFilter.
MyLeadElementFilter(java.lang.String attrName, java.lang.String elementName, java.lang.String name)
          This version of the MyLeadElementFilter constructor takes only a name parameter.
MyLeadElementFilter(java.lang.String attrSource, java.lang.String attrName, java.lang.String elementSource, java.lang.String elementName, java.lang.String name)
          This version of the MyLeadElementFilter constructor takes String parameters for the first attribute name and source to include in the filter.
 
Method Summary
 void addElement(java.lang.String attrSource, java.lang.String attrName, java.lang.String elementSource, java.lang.String elementName, java.lang.String name)
          This method is used to add another element to the filter.
 java.lang.String wrapFilter()
          This routine wraps up an element filter and returns a string that can then be used in a myLEAD query definition to create an OGSA-DAI perform document for the query.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MyLeadElementFilter

public MyLeadElementFilter()
Default constructor for an instance of MyLeadElementFilter.


MyLeadElementFilter

public MyLeadElementFilter(java.lang.String attrSource,
                           java.lang.String attrName,
                           java.lang.String elementSource,
                           java.lang.String elementName,
                           java.lang.String name)
This version of the MyLeadElementFilter constructor takes String parameters for the first attribute name and source to include in the filter. blank and must still be set.

Parameters:
attrName - String with the name of the attribute.
attrSource - String with the source of the attribute
elementName - String with the name of the element
elementSource - String with the source of the element
name - String with name to be included in the response doc

MyLeadElementFilter

public MyLeadElementFilter(java.lang.String attrName,
                           java.lang.String elementName,
                           java.lang.String name)
This version of the MyLeadElementFilter constructor takes only a name parameter. The default for the source will be used.

Parameters:
attrName - String with the name of the attribute.
elementName - String with the name of the element.
name - String with name to be included in the response doc
Method Detail

addElement

public void addElement(java.lang.String attrSource,
                       java.lang.String attrName,
                       java.lang.String elementSource,
                       java.lang.String elementName,
                       java.lang.String name)
This method is used to add another element to the filter.

Parameters:
attrName - String with the name of the attribute.
attrSource - String with the source of the attribute
elementName - String with the name of the element
elementSource - String with the source of the element
name - String with name to be included in the response doc

wrapFilter

public java.lang.String wrapFilter()
This routine wraps up an element filter and returns a string that can then be used in a myLEAD query definition to create an OGSA-DAI perform document for the query.

Specified by:
wrapFilter in interface MyLeadContentFilter
Returns:
String that wraps the filter in an XML fragment