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 Summary
Fields Modifier and Type Field Description (package private) DigitalObject
m_DigitalObject
The internal value for the DigitalObject for the DataObject.(package private) Identifier
m_Identifier
The internal value for the Identifier for the DataObject.(package private) PhysicalObject
m_PhysicalObject
The internal value for the PhysicalObject for the DataObject.private static long
serialVersionUID
SerialVersionUID to be used when object is serialized. -
Constructor Summary
Constructors Constructor Description DataObjectImpl1()
Constructor for the DataObject - creates blank Physical and Digital objects. -
Method Summary
Modifier and Type Method Description DigitalObject
getDigitalObject()
Get the DigitalObject (if any) which makes up the DataObject.Identifier
getIdentifier()
Get the Identifier for the DataObjectPhysicalObject
getPhysicalObject()
Get the PhysicallObject (if any) which makes up the DataObject.void
setDigitalObject(DigitalObject digobj)
Set the DigitalObject of the DataObject.void
setIdentifier(Identifier id)
Set the Identifier for the DataObjectvoid
setPhysicalObject(PhysicalObject physobj)
Set the PhysicallObject of the DataObject.
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDSerialVersionUID to be used when object is serialized.- See Also:
- Constant Field Values
-
m_DigitalObject
DigitalObject m_DigitalObjectThe internal value for the DigitalObject for the DataObject. -
m_PhysicalObject
PhysicalObject m_PhysicalObjectThe internal value for the PhysicalObject for the DataObject. -
m_Identifier
Identifier m_IdentifierThe 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
Get the DigitalObject (if any) which makes up the DataObject.- Specified by:
getDigitalObject
in interfaceDataObject
- Returns:
- The DigitalObject or null
-
setDigitalObject
Set the DigitalObject of the DataObject.- Specified by:
setDigitalObject
in interfaceDataObject
- Parameters:
digobj
- The DigitalObject of the DataObject;
-
getPhysicalObject
Get the PhysicallObject (if any) which makes up the DataObject.- Specified by:
getPhysicalObject
in interfaceDataObject
- Returns:
- The PhysicalObject or null
-
setPhysicalObject
Set the PhysicallObject of the DataObject.- Specified by:
setPhysicalObject
in interfaceDataObject
- Parameters:
physobj
- The PhysicalObject of the DataObject;
-
getIdentifier
Description copied from interface:DataObject
Get the Identifier for the DataObject- Specified by:
getIdentifier
in interfaceDataObject
- Returns:
- Identifier for the DataObject
-
setIdentifier
Set the Identifier for the DataObject- Specified by:
setIdentifier
in interfaceDataObject
- Parameters:
id
- The identifier for the DataObject
-