gov.nasa.pds.registry.model.wrapper
Class ExtendedExtrinsicObject

java.lang.Object
  extended by gov.nasa.pds.registry.model.Identifiable
      extended by gov.nasa.pds.registry.model.RegistryObject
          extended by gov.nasa.pds.registry.model.ExtrinsicObject
              extended by 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

Field Summary
protected  ExtrinsicObject decoratedExtrinsic
           
static String VERSION_ID_SLOT
          Attribute for version of a product.
 
Constructor Summary
ExtendedExtrinsicObject(ExtrinsicObject extObject)
           
 
Method Summary
 void addInvalidAssociation(String slotName)
           
static List<ExtendedExtrinsicObject> asSearchCoreExtrinsics(List<ExtrinsicObject> extObjList)
          Utility method to convert list of ExtrinsicObjects to SearchCoreExtrinsic objects
 Set<Classification> getClassifications()
           
 String getContentVersion()
           
 String getDescription()
           
 Set<ExternalIdentifier> getExternalIdentifiers()
           
 String getGuid()
           
 String getHome()
           
 String getLid()
           
 String getLidvid()
           
 String getMimeType()
           
 String getName()
           
 String getObjectType()
           
 Slot getSlot(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 slot
 ObjectStatus getStatus()
           
 String getVersionName()
           
 boolean hasValidAssociationValues()
           
 void setValidAssociationValues(boolean validAssociationValues)
           
 boolean slotIsAssociationReference(String slotName)
           
 boolean slotValueIsLidvid(String slotValue)
           
 
Methods inherited from class gov.nasa.pds.registry.model.ExtrinsicObject
equals, hashCode, setContentVersion, setMimeType
 
Methods inherited from class gov.nasa.pds.registry.model.RegistryObject
setClassifications, setDescription, setExternalIdentifiers, setLid, setName, setObjectType, setStatus, setVersionName
 
Methods inherited from class gov.nasa.pds.registry.model.Identifiable
addSlot, setGuid, setHome, setSlots
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

ExtendedExtrinsicObject

public ExtendedExtrinsicObject(ExtrinsicObject extObject)
Method Detail

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.