|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.nasa.pds.registry.model.Identifiable
gov.nasa.pds.registry.model.RegistryObject
gov.nasa.pds.registry.model.ExtrinsicObject
gov.nasa.pds.registry.model.wrapper.ExtendedExtrinsicObject
public class ExtendedExtrinsicObject
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.
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)
Check if slot is an association reference by checking if the slot name ends with a "_ref" |
boolean |
slotValueIsLidvid(String slotValue)
Check is slot is a lidvid. |
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 |
---|
public static final String VERSION_ID_SLOT
protected ExtrinsicObject decoratedExtrinsic
Constructor Detail |
---|
public ExtendedExtrinsicObject(ExtrinsicObject extObject)
Method Detail |
---|
public List<String> getSlotValues(String slotName)
slotName
-
SearchCoreFatalException
public String getLidvid()
public boolean slotIsAssociationReference(String slotName)
slotName
-
public boolean slotValueIsLidvid(String slotValue)
slotValue
-
public boolean hasValidAssociationValues()
public void setValidAssociationValues(boolean validAssociationValues)
public void addInvalidAssociation(String slotName)
public static List<ExtendedExtrinsicObject> asSearchCoreExtrinsics(List<ExtrinsicObject> extObjList)
extObjList
-
public String getGuid()
getGuid
in class Identifiable
public String getLid()
getLid
in class RegistryObject
public String getName()
getName
in class RegistryObject
public Slot getSlot(String slotName)
Identifiable
getSlot
in class Identifiable
slotName
- to look for within the list of slots
public String getObjectType()
getObjectType
in class RegistryObject
public String getContentVersion()
getContentVersion
in class ExtrinsicObject
public String getDescription()
getDescription
in class RegistryObject
public String getHome()
getHome
in class Identifiable
public String getMimeType()
getMimeType
in class ExtrinsicObject
public Set<Slot> getSlots()
getSlots
in class Identifiable
public String getVersionName()
getVersionName
in class RegistryObject
public Set<ExternalIdentifier> getExternalIdentifiers()
getExternalIdentifiers
in class RegistryObject
public Set<Classification> getClassifications()
getClassifications
in class RegistryObject
public ObjectStatus getStatus()
getStatus
in class RegistryObject
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |