Interface CAInventoryObjectType<S>
- Type Parameters:
S- The type of object summaries
- All Known Implementing Classes:
CAItem,CALocation
The type of major inventory objects.
-
Method Summary
Modifier and TypeMethodDescriptiondefault Stream<CAAttachment> attachmentsWithRelation(String relation) Get the set of attachments on this object with the given relation.default Optional<CAAttachment> firstAttachmentWithRelation(String relation) Get the first attachment on this object with the given relation.default booleanhasAttachmentWithRelation(String relation) Check if this object has an attachment with the given relation.metadata()summary()types()
-
Method Details
-
summary
S summary()- Returns:
- A summary of the object
-
attachmentsWithRelation
Get the set of attachments on this object with the given relation.- Parameters:
relation- The relation- Returns:
- The attachments
-
firstAttachmentWithRelation
Get the first attachment on this object with the given relation.- Parameters:
relation- The relation- Returns:
- The attachment
-
hasAttachmentWithRelation
Check if this object has an attachment with the given relation.- Parameters:
relation- The relation- Returns:
trueif this object has an attachment with the given relation
-
metadata
SortedMap<CATypeRecordFieldIdentifier,CAMetadataType> metadata()- Returns:
- The metadata on this object
-
attachments
SortedMap<CAAttachmentKey,CAAttachment> attachments()- Returns:
- The attachments on this object
-
types
SortedSet<CATypeRecordIdentifier> types()- Returns:
- The types assigned to this object
-