fipaos.ont.fipa.fipaman
Class SearchConstraints

java.lang.Object
  |
  +--fipaos.ont.fipa.fipaman.SearchConstraints
All Implemented Interfaces:
java.io.Serializable

public class SearchConstraints
extends java.lang.Object
implements java.io.Serializable

This type of object represents a set of constraints to limit the function of searching within a directory.

See Also:
Serialized Form

Constructor Summary
SearchConstraints()
          This is a null constructor.
SearchConstraints(Content constraints_content)
          This constructor constructs a SearchConstraints object with a Content object generated by the SL parser.
SearchConstraints(int max_depth)
          This constructor creates the object with the specified max.depth.
SearchConstraints(java.lang.Integer max_depth)
          This constructor creates the object with the max-depth
SearchConstraints(java.lang.Integer max_depth, java.lang.Integer max_results)
          This method creates a SearchConstraints object with the specified attributes.
SearchConstraints(int max_depth, int max_results)
          This constructor creates the object with the specified attribute.
SearchConstraints(java.lang.String constraints_string)
          This constructor creates a SearchConstraints with the specified string.
 
Method Summary
 java.lang.Integer getMaxDepth()
          Get the name of the object
 java.lang.Integer getMaxResults()
          Get the object
static void main(java.lang.String[] args)
          This is used for testing purposes/.
 void setMaxDepth(java.lang.Integer max_depth)
          This method sets the max.
 void setMaxResults(java.lang.Integer max_results)
          This method sets the maximum number of results
 java.lang.String toString()
          This method returns the string representation of the object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SearchConstraints

public SearchConstraints(java.lang.String constraints_string)
                  throws ParserException
This constructor creates a SearchConstraints with the specified string.
Parameters:
constraints_string - string to be parsed
Throws:
ParserException - if the string is invalid

SearchConstraints

public SearchConstraints(Content constraints_content)
This constructor constructs a SearchConstraints object with a Content object generated by the SL parser.
Parameters:
constraints_content - Content object generated by the SL parser

SearchConstraints

public SearchConstraints(int max_depth)
This constructor creates the object with the specified max.depth.
Parameters:
max_depth - The max. depth of propagation of the search to federated directories. This value should not be negative.

SearchConstraints

public SearchConstraints(java.lang.Integer max_depth)
This constructor creates the object with the max-depth
Parameters:
max_depth - Integer wrapper object

SearchConstraints

public SearchConstraints(int max_depth,
                         int max_results)
This constructor creates the object with the specified attribute.
Parameters:
max_depth - maximum depth
max_results - maximum number of results

SearchConstraints

public SearchConstraints(java.lang.Integer max_depth,
                         java.lang.Integer max_results)
This method creates a SearchConstraints object with the specified attributes.
Parameters:
max_depth - maximum depth
max_results - maximum number of results

SearchConstraints

public SearchConstraints()
This is a null constructor.
Method Detail

setMaxDepth

public void setMaxDepth(java.lang.Integer max_depth)
This method sets the max. depth.
Parameters:
max_depth - maximum depth

setMaxResults

public void setMaxResults(java.lang.Integer max_results)
This method sets the maximum number of results
Parameters:
max_results - maximum number of results

getMaxDepth

public java.lang.Integer getMaxDepth()
Get the name of the object
Returns:
The name of the object

getMaxResults

public java.lang.Integer getMaxResults()
Get the object
Returns:
the object

toString

public java.lang.String toString()
This method returns the string representation of the object
Overrides:
toString in class java.lang.Object
Returns:
string representation of the object

main

public static void main(java.lang.String[] args)
This is used for testing purposes/.
Parameters:
args - arguments