Class OaiPmhElementEntity
java.lang.Object
org.opencastproject.oaipmh.persistence.OaiPmhElementEntity
-
Constructor Summary
ConstructorsConstructorDescriptionOaiPmhElementEntity(String elementType, String flavor, String xml) Constructor -
Method Summary
Modifier and TypeMethodDescriptiongetXml()voidsetElementType(String elementType) Set thetype of the media package element.voidvoidsetOaiPmhEntity(OaiPmhEntity oaiPmhEntity) void
-
Constructor Details
-
OaiPmhElementEntity
public OaiPmhElementEntity() -
OaiPmhElementEntity
Constructor- Parameters:
elementType- the type of the media package element. Only Catalog and Attachment are supported currentlyflavor- the flavor of the media package elementxml- the XML serialized media package element content
-
-
Method Details
-
getElementType
- Returns:
- the type of the media package element
-
setElementType
Set thetype of the media package element. Only Catalog and Attachment are supported currently- Parameters:
elementType- the media package elementy type to set
-
getFlavor
- Returns:
- the media package element flavor
-
setFlavor
- Parameters:
flavor- the media package element flavor to set
-
getXml
- Returns:
- the XML serialized content of the media package element
-
setXml
- Parameters:
xml- the XML serialized content of the media package element to set
-
getOaiPmhEntity
- Returns:
- the OAI-PMH entity
-
setOaiPmhEntity
- Parameters:
oaiPmhEntity- the OAI-PMH entity to set
-