Class ExtendedExtrinsicObject
- java.lang.Object
- 
- gov.nasa.pds.registry.model.Identifiable
- 
- gov.nasa.pds.registry.model.RegistryObject
- 
- gov.nasa.pds.registry.model.ExtrinsicObject
- 
- gov.nasa.pds.registry.model.wrapper.ExtendedExtrinsicObject
 
 
 
 
- 
- All Implemented Interfaces:
- Serializable
 
 public class ExtendedExtrinsicObject extends ExtrinsicObject Class leverages the Decorator Pattern by inheriting the functions ofExtrinsicObjectthrough theExtrinsicObjectDecoratorclass. Currently no methods are overridden, however, this provides that flexibility that should be a part of extending a class.- Author:
- jpadams
- See Also:
- Serialized Form
 
- 
- 
Field SummaryFields Modifier and Type Field Description protected ExtrinsicObjectdecoratedExtrinsicstatic StringVERSION_ID_SLOTAttribute for version of a product.
 - 
Constructor SummaryConstructors Constructor Description ExtendedExtrinsicObject(ExtrinsicObject extObject)
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddInvalidAssociation(String slotName)static List<ExtendedExtrinsicObject>asSearchCoreExtrinsics(List<ExtrinsicObject> extObjList)Utility method to convert list of ExtrinsicObjects to SearchCoreExtrinsic objectsSet<Classification>getClassifications()StringgetContentVersion()StringgetDescription()Set<ExternalIdentifier>getExternalIdentifiers()StringgetGuid()StringgetHome()StringgetLid()StringgetLidvid()StringgetMimeType()StringgetName()StringgetObjectType()SlotgetSlot(String slotName)Convenience method to look up a slot with a given name.Set<Slot>getSlots()List<String>getSlotValues(String slotName)Returns a list of Strings that pertain to a particular slotObjectStatusgetStatus()StringgetVersionName()booleanhasValidAssociationValues()voidsetValidAssociationValues(boolean validAssociationValues)booleanslotIsAssociationReference(String slotName)Check if slot is an association reference by checking if the slot name ends with a "_ref"booleanslotValueIsLidvid(String slotValue)Check is slot is a lidvid.- 
Methods inherited from class gov.nasa.pds.registry.model.ExtrinsicObjectequals, hashCode, setContentVersion, setMimeType
 - 
Methods inherited from class gov.nasa.pds.registry.model.RegistryObjectsetClassifications, setDescription, setExternalIdentifiers, setLid, setName, setObjectType, setStatus, setVersionName
 - 
Methods inherited from class gov.nasa.pds.registry.model.IdentifiableaddSlot, setGuid, setHome, setSlots
 
- 
 
- 
- 
- 
Field Detail- 
VERSION_ID_SLOTpublic static final String VERSION_ID_SLOT Attribute for version of a product.- See Also:
- Constant Field Values
 
 - 
decoratedExtrinsicprotected ExtrinsicObject decoratedExtrinsic 
 
- 
 - 
Constructor Detail- 
ExtendedExtrinsicObjectpublic ExtendedExtrinsicObject(ExtrinsicObject extObject) 
 
- 
 - 
Method Detail- 
getSlotValuespublic List<String> getSlotValues(String slotName) Returns a list of Strings that pertain to a particular slot- Parameters:
- slotName-
- Returns:
- Throws:
- SearchCoreFatalException
 
 - 
getLidvidpublic String getLidvid() 
 - 
slotIsAssociationReferencepublic boolean slotIsAssociationReference(String slotName) Check if slot is an association reference by checking if the slot name ends with a "_ref"- Parameters:
- slotName-
- Returns:
 
 - 
slotValueIsLidvidpublic boolean slotValueIsLidvid(String slotValue) Check is slot is a lidvid. By PDS4 model definition, lidvids are the only slot values that will contain ::- Parameters:
- slotValue-
- Returns:
 
 - 
hasValidAssociationValuespublic boolean hasValidAssociationValues() 
 - 
setValidAssociationValuespublic void setValidAssociationValues(boolean validAssociationValues) 
 - 
addInvalidAssociationpublic void addInvalidAssociation(String slotName) 
 - 
asSearchCoreExtrinsicspublic static List<ExtendedExtrinsicObject> asSearchCoreExtrinsics(List<ExtrinsicObject> extObjList) Utility method to convert list of ExtrinsicObjects to SearchCoreExtrinsic objects- Parameters:
- extObjList-
- Returns:
 
 - 
getGuidpublic String getGuid() - Overrides:
- getGuidin class- Identifiable
- Returns:
- the guid
 
 - 
getLidpublic String getLid() - Overrides:
- getLidin class- RegistryObject
- Returns:
- the lid
 
 - 
getNamepublic String getName() - Overrides:
- getNamein class- RegistryObject
- Returns:
- the name
 
 - 
getSlotpublic Slot getSlot(String slotName) Description copied from class:IdentifiableConvenience method to look up a slot with a given name.- Overrides:
- getSlotin class- Identifiable
- Parameters:
- slotName- to look for within the list of slots
- Returns:
- Slot of null if not found
 
 - 
getObjectTypepublic String getObjectType() - Overrides:
- getObjectTypein class- RegistryObject
- Returns:
- the objectType
 
 - 
getContentVersionpublic String getContentVersion() - Overrides:
- getContentVersionin class- ExtrinsicObject
 
 - 
getDescriptionpublic String getDescription() - Overrides:
- getDescriptionin class- RegistryObject
- Returns:
- the description
 
 - 
getHomepublic String getHome() - Overrides:
- getHomein class- Identifiable
- Returns:
- the home
 
 - 
getMimeTypepublic String getMimeType() - Overrides:
- getMimeTypein class- ExtrinsicObject
 
 - 
getSlotspublic Set<Slot> getSlots() - Overrides:
- getSlotsin class- Identifiable
- Returns:
- the slots
 
 - 
getVersionNamepublic String getVersionName() - Overrides:
- getVersionNamein class- RegistryObject
- Returns:
- the internally tracked version
 
 - 
getExternalIdentifierspublic Set<ExternalIdentifier> getExternalIdentifiers() - Overrides:
- getExternalIdentifiersin class- RegistryObject
 
 - 
getClassificationspublic Set<Classification> getClassifications() - Overrides:
- getClassificationsin class- RegistryObject
 
 - 
getStatuspublic ObjectStatus getStatus() - Overrides:
- getStatusin class- RegistryObject
- Returns:
- the status
 
 
- 
 
-