Class DataObjectImpl1

java.lang.Object
info.oais.implementation.infomodel.DataObjectImpl1
All Implemented Interfaces:
DataObject, Serializable
Direct Known Subclasses:
DigitalObjectImpl1, InformationPackageImpl1, PhysicalObjectImpl1

public class DataObjectImpl1
extends Object
implements DataObject, Serializable
An implementation of a DataObject - which could be a PhysicalObject or a DigitalObject.
Since:
11-Sep-2021 21:34:49
Version:
1.0
Author:
David
See Also:
Serialized Form
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      SerialVersionUID to be used when object is serialized.
      See Also:
      Constant Field Values
    • m_DigitalObject

      DigitalObject m_DigitalObject
      The internal value for the DigitalObject for the DataObject.
    • m_PhysicalObject

      PhysicalObject m_PhysicalObject
      The internal value for the PhysicalObject for the DataObject.
    • m_Identifier

      Identifier m_Identifier
      The internal value for the Identifier for the DataObject.
  • Constructor Details

    • DataObjectImpl1

      public DataObjectImpl1()
      Constructor for the DataObject - creates blank Physical and Digital objects.
  • Method Details

    • getDigitalObject

      public DigitalObject getDigitalObject()
      Get the DigitalObject (if any) which makes up the DataObject.
      Specified by:
      getDigitalObject in interface DataObject
      Returns:
      The DigitalObject or null
    • setDigitalObject

      public void setDigitalObject​(DigitalObject digobj)
      Set the DigitalObject of the DataObject.
      Specified by:
      setDigitalObject in interface DataObject
      Parameters:
      digobj - The DigitalObject of the DataObject;
    • getPhysicalObject

      public PhysicalObject getPhysicalObject()
      Get the PhysicallObject (if any) which makes up the DataObject.
      Specified by:
      getPhysicalObject in interface DataObject
      Returns:
      The PhysicalObject or null
    • setPhysicalObject

      public void setPhysicalObject​(PhysicalObject physobj)
      Set the PhysicallObject of the DataObject.
      Specified by:
      setPhysicalObject in interface DataObject
      Parameters:
      physobj - The PhysicalObject of the DataObject;
    • getIdentifier

      public Identifier getIdentifier()
      Description copied from interface: DataObject
      Get the Identifier for the DataObject
      Specified by:
      getIdentifier in interface DataObject
      Returns:
      Identifier for the DataObject
    • setIdentifier

      public void setIdentifier​(Identifier id)
      Set the Identifier for the DataObject
      Specified by:
      setIdentifier in interface DataObject
      Parameters:
      id - The identifier for the DataObject