Class InformationPackageFactory

java.lang.Object
info.oais.implementation.infomodel.InformationPackageFactory
All Implemented Interfaces:
AbstractOaisFactory<InformationPackage>

public class InformationPackageFactory
extends Object
implements AbstractOaisFactory<InformationPackage>
An implementation of the AbstractOaisFactory interface to create OAIS Information Package.
The returned Object must be cast into the appropriate subtype.
Since:
06-Sep-2021 15:59:46
Version:
1.0
Author:
David
  • Constructor Details

    • InformationPackageFactory

      public InformationPackageFactory()
  • Method Details

    • create

      public InformationPackage create​(String packageType)
      Returns a new InformationPackage sub-type depending on the value of infoType.
      Specified by:
      create in interface AbstractOaisFactory<InformationPackage>
      Parameters:
      packageType - String which indicates which type of Package to create.
      Returns:
      The Object created of the type requested.