fipaos.ont.fipa.fipaman
Class SearchConstraints


public class SearchConstraints
implements Serializable

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


Constructor Summary
SearchConstraints(String constraints_string)
          This constructor creates a SearchConstraints with the specified string.
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(Integer max_depth)
          This constructor creates the object with the max-depth
SearchConstraints(int max_depth, int max_results)
          This constructor creates the object with the specified attribute.
SearchConstraints(Integer max_depth, Integer max_results)
          This method creates a SearchConstraints object with the specified attributes.
SearchConstraints()
          This is a null constructor.

Method Summary
 IntegergetMaxDepth()
          Get the name of the object
 IntegergetMaxResults()
          Get the object
 static voidmain(String[] args)
          This is used for testing purposes/.
 voidsetMaxDepth(Integer max_depth)
          This method sets the max.
 voidsetMaxResults(Integer max_results)
          This method sets the maximum number of results
 StringtoString()
          This method returns the string representation of the object

Constructor Detail

SearchConstraints

public SearchConstraints(String constraints_string)
throws fipaos.parser.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(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(Integer max_depth, 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

getMaxDepth

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

getMaxResults

public Integer getMaxResults()
Get the object
Returns: the object

main

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

setMaxDepth

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

setMaxResults

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

toString

public String toString()
This method returns the string representation of the object
Returns: string representation of the object

Association Links

to Class java.lang.Integer

The max. depth of propagation

to Class java.lang.Integer

The max. no. of results