Interface Shipment
- All Superinterfaces:
Aggregateable, Browsable, Extensible, Identifiable, OsidObject
A Shipment represents data associated to a resource
representing a shipment. Contact information for this object can be
managed in the Contact OSID.
-
Method Summary
Modifier and TypeMethodDescriptiongetDate()Gets the date this shipment was received.Gets the entries of this shipment.Gets the entryIdsof this shipment.getOrder()Gets the order associated with this shipment.Gets the orderIdassociated with this shipment.getShipmentRecord(Type shipmentRecordType) Gets the shipment record corresponding to the givenShipmentrecordType.This method is used to retrieve an object implementing the requested record.Gets the resource.Gets the resourceIdrepresenting the shipment.booleanhasOrder()Tests if this shipment has a related order.Methods inherited from interface Browsable
getProperties, getPropertiesByRecordTypeModifier and TypeMethodDescriptionGets a list of properties.getPropertiesByRecordType(Type recordType) Gets a list of properties corresponding to the specified record type.Methods inherited from interface Extensible
getRecordTypes, hasRecordTypeModifier and TypeMethodDescriptionGets the record types available in this object.booleanhasRecordType(Type recordType) Tests if this object supports the given recordType.Methods inherited from interface Identifiable
getId, isCurrentMethods inherited from interface OsidObject
getDescription, getDisplayName, getGenusType, isOfGenusTypeModifier and TypeMethodDescriptionGets the description associated with this instance of this OSID object.Gets the preferred display name associated with this instance of this OSID object appropriate for display to the user.Gets the genus type of this object.booleanisOfGenusType(Type genusType) Tests if this object is of the given genusType.
-
Method Details
-
getSourceId
Id getSourceId()Gets the resourceIdrepresenting the shipment.- Returns:
- the resource
Id - Compliance:
mandatory- This method must be implemented.
-
getSource
Gets the resource.- Returns:
- the resource
- Throws:
OperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
hasOrder
boolean hasOrder()Tests if this shipment has a related order.- Returns:
trueif this shipment relates to an odrer,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getOrderId
Id getOrderId()Gets the orderIdassociated with this shipment.- Returns:
- the order
Id - Throws:
IllegalStateException-hasOrder()isfalse- Compliance:
mandatory- This method must be implemented.
-
getOrder
Gets the order associated with this shipment.- Returns:
- the order
- Throws:
IllegalStateException-hasOrder()isfalseOperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getDate
DateTime getDate()Gets the date this shipment was received.- Returns:
- the received date
- Compliance:
mandatory- This method must be implemented.
-
getEntryIds
IdList getEntryIds()Gets the entryIdsof this shipment.- Returns:
- the entry
Ids - Compliance:
mandatory- This method must be implemented.
-
getEntries
Gets the entries of this shipment.- Returns:
- the entries
- Throws:
OperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getShipmentRecord
Gets the shipment record corresponding to the givenShipmentrecordType.This method is used to retrieve an object implementing the requested record. TheshipmentRecordTypemay be theTypereturned ingetRecordTypes()or any of its parents in aTypehierarchy wherehasRecordType(shipmentRecordType)istrue.- Parameters:
shipmentRecordType- the type of shipment record to retrieve- Returns:
- the shipment record
- Throws:
NullArgumentException-shipmentRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(shipmentRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-