Class HeaderType
- java.lang.Object
-
- com.lyncode.xoai.dataprovider.xml.oaipmh.HeaderType
-
- All Implemented Interfaces:
XMLWritable
public class HeaderType extends Object implements XMLWritable
A header has a unique identifier, a datestamp, and withSpec(s) in case the item from which the record is disseminated belongs to set(s). the header can carry a deleted status indicating that the record is deleted. Java class for headerType complex type. The following schema fragment specifies the expected content contained within this class.
-
-
Field Summary
Fields Modifier and Type Field Description protected Stringdatestampprotected Stringidentifierprotected List<String>setSpecprotected StatusTypestatus
-
Constructor Summary
Constructors Constructor Description HeaderType()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDatestamp()Gets the value of the datestamp property.StringgetIdentifier()Gets the value of the identifier property.List<String>getSetSpec()Gets the value of the withSpec property.StatusTypegetStatus()Gets the value of the status property.voidsetDatestamp(String value)Sets the value of the datestamp property.voidsetIdentifier(String value)Sets the value of the identifier property.voidsetStatus(StatusType value)Sets the value of the status property.voidwrite(XmlOutputContext context)
-
-
-
Field Detail
-
identifier
protected String identifier
-
datestamp
protected String datestamp
-
status
protected StatusType status
-
-
Method Detail
-
getIdentifier
public String getIdentifier()
Gets the value of the identifier property.- Returns:
- possible object is ;
-
setIdentifier
public void setIdentifier(String value)
Sets the value of the identifier property.- Parameters:
value- allowed object is ;
-
getDatestamp
public String getDatestamp()
Gets the value of the datestamp property.- Returns:
- possible object is ;
-
setDatestamp
public void setDatestamp(String value)
Sets the value of the datestamp property.- Parameters:
value- allowed object is ;
-
getSetSpec
public List<String> getSetSpec()
Gets the value of the withSpec 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 method for the withSpec property. For example, to add a new item, do as follows: getSetSpec().add(newItem); Objects of the following type(s) are allowed in the list ;
-
getStatus
public StatusType getStatus()
Gets the value of the status property.- Returns:
- possible object is ;
-
setStatus
public void setStatus(StatusType value)
Sets the value of the status property.- Parameters:
value- allowed object is ;
-
write
public void write(XmlOutputContext context) throws WritingXmlException
- Specified by:
writein interfaceXMLWritable- Throws:
WritingXmlException
-
-