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
For example
ProvenanceInformation pi = (ProvenanceInformation)InformationObjectFactory.create("ProvenanceInformation");
- Since:
- 06-Sep-2021 15:59:46
- Version:
- 1.0
- Author:
- David
-
Constructor Summary
Constructors Constructor Description InformationObjectFactory()
-
Method Summary
Modifier and Type Method Description InformationObject
create(String infoType)
Returns a new InformationObject sub-type depending on the value of infoType.
-
Constructor Details
-
InformationObjectFactory
public InformationObjectFactory()
-
-
Method Details
-
create
Returns a new InformationObject sub-type depending on the value of infoType.- Specified by:
create
in interfaceAbstractOaisFactory<InformationObject>
- Parameters:
infoType
- String to indicate which InfoObject the create.- Returns:
- The Object created of the type requested.
-