Package nl.b3p.csw.jaxb.csw
Class HarvestType
- java.lang.Object
-
- nl.b3p.csw.jaxb.csw.RequestBaseType
-
- nl.b3p.csw.jaxb.csw.HarvestType
-
public class HarvestType extends RequestBaseType
Requests that the catalogue attempt to harvest a resource from some network location identified by the source URL. Source - a URL from which the resource is retrieved ResourceType - normally a URI that specifies the type of the resource (DCMES v1.1) being harvested if it is known. ResourceFormat - a media type indicating the format of the resource being harvested. The default is "application/xml". ResponseHandler - a reference to some endpoint to which the response shall be forwarded when the harvest operation has been completed HarvestInterval - an interval expressed using the ISO 8601 syntax; it specifies the interval between harvest attempts (e.g., P6M indicates an interval of six months).Java class for HarvestType complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="HarvestType"> <complexContent> <extension base="{http://www.opengis.net/cat/csw/2.0.2}RequestBaseType"> <sequence> <element name="Source" type="{http://www.w3.org/2001/XMLSchema}anyURI"/> <element name="ResourceType" type="{http://www.w3.org/2001/XMLSchema}string"/> <element name="ResourceFormat" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/> <element name="HarvestInterval" type="{http://www.w3.org/2001/XMLSchema}duration" minOccurs="0"/> <element name="ResponseHandler" type="{http://www.w3.org/2001/XMLSchema}anyURI" maxOccurs="unbounded" minOccurs="0"/> </sequence> </extension> </complexContent> </complexType>
-
-
Field Summary
Fields Modifier and Type Field Description protected DurationharvestIntervalprotected StringresourceFormatprotected StringresourceTypeprotected List<String>responseHandlerprotected Stringsource-
Fields inherited from class nl.b3p.csw.jaxb.csw.RequestBaseType
service, version
-
-
Constructor Summary
Constructors Constructor Description HarvestType()Default no-arg constructorHarvestType(String service, String version, String source, String resourceType, String resourceFormat, Duration harvestInterval, List<String> responseHandler)Fully-initialising value constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DurationgetHarvestInterval()Gets the value of the harvestInterval property.StringgetResourceFormat()Gets the value of the resourceFormat property.StringgetResourceType()Gets the value of the resourceType property.List<String>getResponseHandler()Gets the value of the responseHandler property.StringgetSource()Gets the value of the source property.voidsetHarvestInterval(Duration value)Sets the value of the harvestInterval property.voidsetResourceFormat(String value)Sets the value of the resourceFormat property.voidsetResourceType(String value)Sets the value of the resourceType property.voidsetSource(String value)Sets the value of the source property.-
Methods inherited from class nl.b3p.csw.jaxb.csw.RequestBaseType
getService, getVersion, setService, setVersion
-
-
-
-
Method Detail
-
getSource
public String getSource()
Gets the value of the source property.- Returns:
- possible object is
String
-
setSource
public void setSource(String value)
Sets the value of the source property.- Parameters:
value- allowed object isString
-
getResourceType
public String getResourceType()
Gets the value of the resourceType property.- Returns:
- possible object is
String
-
setResourceType
public void setResourceType(String value)
Sets the value of the resourceType property.- Parameters:
value- allowed object isString
-
getResourceFormat
public String getResourceFormat()
Gets the value of the resourceFormat property.- Returns:
- possible object is
String
-
setResourceFormat
public void setResourceFormat(String value)
Sets the value of the resourceFormat property.- Parameters:
value- allowed object isString
-
getHarvestInterval
public Duration getHarvestInterval()
Gets the value of the harvestInterval property.- Returns:
- possible object is
Duration
-
setHarvestInterval
public void setHarvestInterval(Duration value)
Sets the value of the harvestInterval property.- Parameters:
value- allowed object isDuration
-
getResponseHandler
public List<String> getResponseHandler()
Gets the value of the responseHandler property.This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a
setmethod for the responseHandler property.For example, to add a new item, do as follows:
getResponseHandler().add(newItem);Objects of the following type(s) are allowed in the list
String
-
-