thredds.catalog
Class InvProperty

java.lang.Object
  extended by thredds.catalog.InvProperty
Direct Known Subclasses:
DataRootConfig

public class InvProperty
extends Object

A Property is a name/value pair.

Author:
john caron

Constructor Summary
InvProperty()
           
InvProperty(String name, String value)
          Constructor
 
Method Summary
 boolean equals(Object o)
          InvProperty elements with same name are equal.
 String getName()
          Get the name of the property.
 String getValue()
          Get the value of the property.
 int hashCode()
          Override Object.hashCode() to be consistent with equals.
 void setValue(String value)
          Set the value of the property.
 String toString()
          string representation
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InvProperty

public InvProperty()

InvProperty

public InvProperty(String name,
                   String value)
Constructor

Parameters:
name - name
value - value
Method Detail

getName

public String getName()
Get the name of the property.

Returns:
the name of the property.

getValue

public String getValue()
Get the value of the property.

Returns:
the value of the property.

setValue

public void setValue(String value)
Set the value of the property.

Parameters:
value - set to this value

toString

public String toString()
string representation

Overrides:
toString in class Object

equals

public boolean equals(Object o)
InvProperty elements with same name are equal.

Overrides:
equals in class Object

hashCode

public int hashCode()
Override Object.hashCode() to be consistent with equals.

Overrides:
hashCode in class Object


Copyright © 1999-2011 UCAR/Unidata. All Rights Reserved.