Class InformationObjectFactory

java.lang.Object
info.oais.implementation.infomodel.InformationObjectFactory
All Implemented Interfaces:
AbstractOaisFactory<InformationObject>

public class InformationObjectFactory
extends Object
implements AbstractOaisFactory<InformationObject>
An implementation of the AbstractOaisFactory interface to create OAIS information objects.
For example ProvenanceInformation pi = (ProvenanceInformation)InformationObjectFactory.create("ProvenanceInformation");
Since:
06-Sep-2021 15:59:46
Version:
1.0
Author:
David
  • Constructor Details

    • InformationObjectFactory

      public InformationObjectFactory()
  • Method Details

    • create

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