Changeset 2663 for trunk/java-client


Ignore:
Timestamp:
2001-07-22T23:06:57+12:00 (23 years ago)
Author:
bas6
Message:

Added method getNumOfDocIdsRetrieved() to NzdlResultSet. Added a couple of comments to NzdlDocumentInfo

Location:
trunk/java-client/org/nzdl/gsdl/service
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/java-client/org/nzdl/gsdl/service/NzdlDocumentInfo.java

    r2467 r2663  
    104104    }
    105105  }
    106  
     106
     107/**
     108 * Returns all metadata keys for each metadata value in the document.
     109 * Each item returned corresponds to a value in the 'values' Vector.
     110 *  The keys may include such Strings as title, author, creator etc.
     111 * Where there is more than one instance of a metadata value (for
     112 * example, if there are two authors) then two author keys will be
     113 * produced each corresponding to an author name in the values Vector.
     114 * @return an enumerated set of key strings
     115 */
    107116  public Enumeration getKeys() {return keys.elements();};
     117
     118
     119 /**
     120 * Returns all metadata values in the document.
     121 * Each item returned corresponds to a key in the 'keys' Vector.
     122 *  The keys may include such Strings as title, author, creator etc.
     123 * @return an enumerated set of value strings
     124 */
    108125  public Enumeration getValues() {return values.elements();};
    109126}
  • trunk/java-client/org/nzdl/gsdl/service/NzdlResultSet.java

    r2320 r2663  
    287287  }
    288288
     289    /**
     290   * Returns the number of document ID's retrieved <br>
     291   * Pre: A {@link NzdlResponse NzdlResponse} object has been created. A
     292   * {@link NzdlService NzdlService} object has filled the NzdlResponse
     293   * object with results from servicing a {@link NzdlRequest NzdlRequest}.<br>
     294   * @return The number of documents IDs that have been retrieved from the
     295   * collection
     296   */
     297  public long getNumOfDocIdsRetrieved() {
     298    return m_docIDs.size();
     299  }
     300
    289301}
Note: See TracChangeset for help on using the changeset viewer.