gov.nasa.pds.search.core.extractor.registry
Class RegistryAttributes

java.lang.Object
  extended by gov.nasa.pds.search.core.extractor.registry.RegistryAttributes

public class RegistryAttributes
extends Object

Provides the values for a given attribute specified in a product class configuration file.

Version:
$Revision: 10981 $
Author:
jpadams

Field Summary
static String[] ATTR_LIST
           
static String CONTENT_VERSION
          Attribute for Content Version.
static String DESCRIPTION
          Attribute for Description.
static String GUID
          Attribute for GUID.
static String HOME
          Attribute for Home.
static String LOGICAL_IDENTIFIER
          Attribute for Logical Identifier.
static String MIME_TYPE
          Attribute for MIME Type.
static String NAME
          Attribute for Product name.
static String OBJECT_TYPE
          Attribute for Object Type.
static String VERSION_NAME
          Attribute for Version Name.
 
Constructor Summary
RegistryAttributes()
           
 
Method Summary
static String getAttributeValue(String attribute, gov.nasa.pds.registry.model.ExtrinsicObject extObject)
          Gets the value of the input attribute from the given Extrinsic object.
static boolean isAttribute(String attribute)
          Checks if attribute is an attribute in the Registry
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOGICAL_IDENTIFIER

public static final String LOGICAL_IDENTIFIER
Attribute for Logical Identifier.

See Also:
Constant Field Values

NAME

public static final String NAME
Attribute for Product name.

See Also:
Constant Field Values

OBJECT_TYPE

public static final String OBJECT_TYPE
Attribute for Object Type.

See Also:
Constant Field Values

MIME_TYPE

public static final String MIME_TYPE
Attribute for MIME Type.

See Also:
Constant Field Values

DESCRIPTION

public static final String DESCRIPTION
Attribute for Description.

See Also:
Constant Field Values

GUID

public static final String GUID
Attribute for GUID.

See Also:
Constant Field Values

HOME

public static final String HOME
Attribute for Home.

See Also:
Constant Field Values

VERSION_NAME

public static final String VERSION_NAME
Attribute for Version Name.

See Also:
Constant Field Values

CONTENT_VERSION

public static final String CONTENT_VERSION
Attribute for Content Version.

See Also:
Constant Field Values

ATTR_LIST

public static final String[] ATTR_LIST
Constructor Detail

RegistryAttributes

public RegistryAttributes()
Method Detail

getAttributeValue

public static String getAttributeValue(String attribute,
                                       gov.nasa.pds.registry.model.ExtrinsicObject extObject)
                                throws InvalidProductClassException
Gets the value of the input attribute from the given Extrinsic object. Returns attribute value as a String. Throws InvalidProductClassException when attribute is one of known Extrinsic object attributes.

Parameters:
attribute -
extObject -
Returns:
Throws:
InvalidProductClassException

isAttribute

public static boolean isAttribute(String attribute)
Checks if attribute is an attribute in the Registry

Parameters:
attribute -
Returns:


Copyright © 2010-2012 Planetary Data System. All Rights Reserved.