Class OaiPmhElementEntity

java.lang.Object
org.opencastproject.oaipmh.persistence.OaiPmhElementEntity

@Entity(name="OaiPmhElementEntity") public class OaiPmhElementEntity extends Object
  • Constructor Details

    • OaiPmhElementEntity

      public OaiPmhElementEntity()
    • OaiPmhElementEntity

      public OaiPmhElementEntity(String elementType, String flavor, String xml)
      Constructor
      Parameters:
      elementType - the type of the media package element. Only Catalog and Attachment are supported currently
      flavor - the flavor of the media package element
      xml - the XML serialized media package element content
  • Method Details

    • getElementType

      public String getElementType()
      Returns:
      the type of the media package element
    • setElementType

      public void setElementType(String elementType)
      Set thetype of the media package element. Only Catalog and Attachment are supported currently
      Parameters:
      elementType - the media package elementy type to set
    • getFlavor

      public String getFlavor()
      Returns:
      the media package element flavor
    • setFlavor

      public void setFlavor(String flavor)
      Parameters:
      flavor - the media package element flavor to set
    • getXml

      public String getXml()
      Returns:
      the XML serialized content of the media package element
    • setXml

      public void setXml(String xml)
      Parameters:
      xml - the XML serialized content of the media package element to set
    • getOaiPmhEntity

      public OaiPmhEntity getOaiPmhEntity()
      Returns:
      the OAI-PMH entity
    • setOaiPmhEntity

      public void setOaiPmhEntity(OaiPmhEntity oaiPmhEntity)
      Parameters:
      oaiPmhEntity - the OAI-PMH entity to set