org.oclc.da.gdfr.registryprototype
Class Ref

java.lang.Object
  extended by org.oclc.da.gdfr.registryprototype.Ref

public class Ref
extends java.lang.Object


Constructor Summary
Ref()
          Default constructor, does nothing
Ref(java.lang.String[] ks, java.lang.String[] vals)
          Constructor
 
Method Summary
 boolean equals(java.lang.Object obj)
          Compares this to another object by converting to Strings and using the String.equals() method
 java.lang.String[] getKeys()
          Get all Keys associated with this Ref
 java.lang.String getValue(java.lang.String key)
          Returns the value associated with the given key
 java.lang.String[] getValues()
          Get all Values associated with this Ref
 java.lang.String toString()
          String representation of a Ref.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Ref

public Ref()
Default constructor, does nothing


Ref

public Ref(java.lang.String[] ks,
           java.lang.String[] vals)
Constructor

Parameters:
ks - Keys to set
vals - Values to set
Method Detail

equals

public boolean equals(java.lang.Object obj)
Compares this to another object by converting to Strings and using the String.equals() method

Overrides:
equals in class java.lang.Object

getKeys

public java.lang.String[] getKeys()
Get all Keys associated with this Ref

Returns:
String[] of keys

getValues

public java.lang.String[] getValues()
Get all Values associated with this Ref

Returns:
String[] of values

getValue

public java.lang.String getValue(java.lang.String key)
Returns the value associated with the given key

Parameters:
key - The key to search on
Returns:
the value, if the key is valid, null otherwise

toString

public java.lang.String toString()
String representation of a Ref. Consists of << + guid_key + :: + guid_value + >><< + versionID_key + :: + versionID_value>>

Overrides:
toString in class java.lang.Object


Copyright © 2008 OCLC Online Computer Library Center, Inc.. All Rights Reserved.