org.n52.oxf.ows.capabilities
Class Contents

java.lang.Object
  extended by org.n52.oxf.ows.capabilities.Contents

public class Contents
extends Object

Could also be implemented by using Generics. This class is a container for the dataIdentificationList elements. dataIdentifications are something like FeatureTypes (WFS) or Layers (WMS) or Coverages (WCS). This container can be empty or null, if the service has no data (i.e. WebNotificationService, WebAlertService, SensorPlaningService).

Author:
Theodor Foerster, Arne Broering

Constructor Summary
Contents()
          initializes a new (empty) ArrayList for dataIdentifications.
Contents(List<Dataset> dataIdentificationList)
           
 
Method Summary
 void addDataIdentication(Dataset di)
           
 Dataset getDataIdentification(int i)
           
 Dataset getDataIdentification(String identifier)
           
 int getDataIdentificationCount()
           
 String[] getDataIdentificationIDArray()
           
 void removeDataIdentification(int i)
           
 String toXML()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Contents

public Contents()
initializes a new (empty) ArrayList for dataIdentifications.


Contents

public Contents(List<Dataset> dataIdentificationList)
Method Detail

addDataIdentication

public void addDataIdentication(Dataset di)

toXML

public String toXML()
Returns:
a XML representation of this Contents-section.

getDataIdentification

public Dataset getDataIdentification(int i)

getDataIdentification

public Dataset getDataIdentification(String identifier)
Parameters:
identifier -
Returns:
the dataset with the specified identifier/name or null if there is no dataset with teh specified identifier/name.

getDataIdentificationCount

public int getDataIdentificationCount()

getDataIdentificationIDArray

public String[] getDataIdentificationIDArray()

removeDataIdentification

public void removeDataIdentification(int i)


Copyright © 2012-2013 52north.org. All Rights Reserved.