edu.sdsc.grid.io
Class MetaDataSelect

java.lang.Object
  extended by edu.sdsc.grid.io.MetaDataSelect

public final class MetaDataSelect
extends java.lang.Object

A "meta data select" indicates a single field that should be returned on a query.

There are no 'set' methods - once constructed, the object cannot be changed.


Method Summary
 boolean equals(java.lang.Object obj)
          Tests this MetaDataSelect object for equality with the given object.
 MetaDataField getField()
          Returns the MetaDataField object describing the field selected by this object.
 java.lang.String getFieldName()
          Returns the name of the field selected by this object.
 int getOperation()
          Returns the operation code on this selection.
 java.lang.String toString()
          Returns a string representation of the object.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getFieldName

public java.lang.String getFieldName()
Returns the name of the field selected by this object.


getField

public MetaDataField getField()
Returns the MetaDataField object describing the field selected by this object.


getOperation

public int getOperation()
Returns the operation code on this selection. Typically this is '1' and just flags this field as one to return in a query. Other operation codes include those for:


toString

public java.lang.String toString()
Returns a string representation of the object.

Overrides:
toString in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Tests this MetaDataSelect object for equality with the given object. Returns true if and only if the argument is not null and both are MetaDataSelect objects with equal field and operation values.

Overrides:
equals in class java.lang.Object
Parameters:
obj - The object to be compared with this abstract pathname
Returns:
true if and only if the objects are the same; false otherwise