edu.indiana.dde.mylead.common
Class MyLeadAttributeFilter

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

public class MyLeadAttributeFilter
extends java.lang.Object
implements MyLeadContentFilter

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


Constructor Summary
MyLeadAttributeFilter()
          Default constructor for an instance of MyLeadAttributeFilter.
MyLeadAttributeFilter(java.lang.String name)
          This version of the MyLeadAttributeFilter constructor takes only a name parameter.
MyLeadAttributeFilter(java.lang.String source, java.lang.String name)
          This version of the MyLeadAttributeFilter constructor takes String parameters for the first attribute name and source to include in the filter.
 
Method Summary
 void addAttribute(java.lang.String source, java.lang.String name)
          This method is used to add another attribute to the filter.
 java.lang.String wrapFilter()
          This routine wraps up an attribute 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

MyLeadAttributeFilter

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


MyLeadAttributeFilter

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

Parameters:
name - String with the name of the attribute.
source - String with the source of the attribute

MyLeadAttributeFilter

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

Parameters:
name - String with the name of the attribute.
Method Detail

addAttribute

public void addAttribute(java.lang.String source,
                         java.lang.String name)
This method is used to add another attribute to the filter.

Parameters:
name - String with the name of the attribute.
source - String with the source of the attribute

wrapFilter

public java.lang.String wrapFilter()
This routine wraps up an attribute 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