org.gcube.opensearch.opensearchlibrary.query
Class BasicURLTemplate.Parameter

java.lang.Object
  extended by org.gcube.opensearch.opensearchlibrary.query.BasicURLTemplate.Parameter
Enclosing class:
BasicURLTemplate

protected static class BasicURLTemplate.Parameter
extends Object

Class representing a query parameter, containing the qualified name of the parameter and information about whether the parameter is required or not

Author:
gerasimos.farantatos

Field Summary
 String name
           
 
Constructor Summary
BasicURLTemplate.Parameter()
          Creates a new Parameter object
BasicURLTemplate.Parameter(String name, boolean optional)
          Creates a new Parameter object with a given qualified name and required-optional information
 
Method Summary
 boolean equals(Object p)
          Determines if two Parameter objects are the same.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

public String name
Constructor Detail

BasicURLTemplate.Parameter

public BasicURLTemplate.Parameter()
Creates a new Parameter object


BasicURLTemplate.Parameter

public BasicURLTemplate.Parameter(String name,
                                  boolean optional)
Creates a new Parameter object with a given qualified name and required-optional information

Parameters:
name - The qualified name of the parameter
optional - False if the parameter is required, true otherwise
Method Detail

equals

public boolean equals(Object p)
Determines if two Parameter objects are the same. Two parameters are considered the same if they have the same qualified name, regardless of their required or optional status

Overrides:
equals in class Object
Parameters:
p - The Parameter that will be checked for equality with this instance
Returns:
true if the parameters are equal, false otherwise


Copyright © 2013. All Rights Reserved.