gov.nasa.pds.registry.model.wrapper
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 of
ExtrinsicObject
through the ExtrinsicObjectDecorator
class.
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
VERSION_ID_SLOT
public static final String VERSION_ID_SLOT
- Attribute for version of a product.
- See Also:
- Constant Field Values
decoratedExtrinsic
protected ExtrinsicObject decoratedExtrinsic
ExtendedExtrinsicObject
public ExtendedExtrinsicObject(ExtrinsicObject extObject)
getSlotValues
public List<String> getSlotValues(String slotName)
- Returns a list of Strings that pertain to a particular slot
- Parameters:
slotName
-
- Returns:
-
- Throws:
SearchCoreFatalException
getLidvid
public String getLidvid()
slotIsAssociationReference
public boolean slotIsAssociationReference(String slotName)
slotValueIsLidvid
public boolean slotValueIsLidvid(String slotValue)
hasValidAssociationValues
public boolean hasValidAssociationValues()
setValidAssociationValues
public void setValidAssociationValues(boolean validAssociationValues)
addInvalidAssociation
public void addInvalidAssociation(String slotName)
asSearchCoreExtrinsics
public static List<ExtendedExtrinsicObject> asSearchCoreExtrinsics(List<ExtrinsicObject> extObjList)
- Utility method to convert list of ExtrinsicObjects to SearchCoreExtrinsic objects
- Parameters:
extObjList
-
- Returns:
getGuid
public String getGuid()
- Overrides:
getGuid
in class Identifiable
- Returns:
- the guid
getLid
public String getLid()
- Overrides:
getLid
in class RegistryObject
- Returns:
- the lid
getName
public String getName()
- Overrides:
getName
in class RegistryObject
- Returns:
- the name
getSlot
public Slot getSlot(String slotName)
- Description copied from class:
Identifiable
- Convenience method to look up a slot with a given name.
- Overrides:
getSlot
in class Identifiable
- Parameters:
slotName
- to look for within the list of slots
- Returns:
- Slot of null if not found
getObjectType
public String getObjectType()
- Overrides:
getObjectType
in class RegistryObject
- Returns:
- the objectType
getContentVersion
public String getContentVersion()
- Overrides:
getContentVersion
in class ExtrinsicObject
getDescription
public String getDescription()
- Overrides:
getDescription
in class RegistryObject
- Returns:
- the description
getHome
public String getHome()
- Overrides:
getHome
in class Identifiable
- Returns:
- the home
getMimeType
public String getMimeType()
- Overrides:
getMimeType
in class ExtrinsicObject
getSlots
public Set<Slot> getSlots()
- Overrides:
getSlots
in class Identifiable
- Returns:
- the slots
getVersionName
public String getVersionName()
- Overrides:
getVersionName
in class RegistryObject
- Returns:
- the internally tracked version
getExternalIdentifiers
public Set<ExternalIdentifier> getExternalIdentifiers()
- Overrides:
getExternalIdentifiers
in class RegistryObject
getClassifications
public Set<Classification> getClassifications()
- Overrides:
getClassifications
in class RegistryObject
getStatus
public ObjectStatus getStatus()
- Overrides:
getStatus
in class RegistryObject
- Returns:
- the status
Copyright © 2010-2014 Planetary Data System. All Rights Reserved.