Class DataSampler

java.lang.Object
org.opengis.cite.cat20.dgiwg10.util.DataSampler

public class DataSampler extends Object
Author:
Lyn Goltz
  • Constructor Details

    • DataSampler

      public DataSampler(Document capabilitiesDocument)
      Instantiates a new DataSampler, call #acquireRecords() to collection records
      Parameters:
      capabilitiesDocument - never nul
  • Method Details

    • acquireRecords

      public void acquireRecords()
      Requests 10 records in dublin core (full) from the CSW.
    • getRecords

      public Map<String,Node> getRecords()
      Returns:
      the requested records, may be null if the service does not provide any records, an error occurred during requesting the records or #acquireRecords() was not invoked before
    • findSampleIdentifier

      public String findSampleIdentifier()
      Returns:
      an existing identifier if available, null if no identifier is available