Class RecordType
- java.lang.Object
-
- com.lyncode.xoai.dataprovider.xml.oaipmh.RecordType
-
- All Implemented Interfaces:
XMLWritable
public class RecordType extends Object implements XMLWritable
A record has a header, a metadata part, and an optional about container Java class for recordType complex type. The following schema fragment specifies the expected content contained within this class.
-
-
Field Summary
Fields Modifier and Type Field Description protected List<AboutType>aboutprotected HeaderTypeheaderprotected MetadataTypemetadata
-
Constructor Summary
Constructors Constructor Description RecordType()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<AboutType>getAbout()Gets the value of the about property.HeaderTypegetHeader()Gets the value of the header property.MetadataTypegetMetadata()Gets the value of the metadata property.voidsetHeader(HeaderType value)Sets the value of the header property.voidsetMetadata(MetadataType value)Sets the value of the metadata property.voidwrite(XmlOutputContext context)
-
-
-
Field Detail
-
header
protected HeaderType header
-
metadata
protected MetadataType metadata
-
-
Method Detail
-
getHeader
public HeaderType getHeader()
Gets the value of the header property.- Returns:
- possible object is ;
-
setHeader
public void setHeader(HeaderType value)
Sets the value of the header property.- Parameters:
value- allowed object is ;
-
getMetadata
public MetadataType getMetadata()
Gets the value of the metadata property.- Returns:
- possible object is ;
-
setMetadata
public void setMetadata(MetadataType value)
Sets the value of the metadata property.- Parameters:
value- allowed object is ;
-
getAbout
public List<AboutType> getAbout()
Gets the value of the about 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 about property. For example, to add a new item, do as follows: getAbout().add(newItem); Objects of the following type(s) are allowed in the list ;
-
write
public void write(XmlOutputContext context) throws WritingXmlException
- Specified by:
writein interfaceXMLWritable- Throws:
WritingXmlException
-
-