gov.nasa.pds.tools.label
Class Label

java.lang.Object
  extended by gov.nasa.pds.tools.label.Label
All Implemented Interfaces:
LabelType, Status

public class Label
extends java.lang.Object
implements LabelType, Status

This class represents a PDS label.

Version:
$Revision: 3353 $
Author:
pramirez

Field Summary
 
Fields inherited from interface gov.nasa.pds.tools.label.LabelType
ATTACHED, COMBINED_DETACHED, DETACHED, UNDEFINED
 
Fields inherited from interface gov.nasa.pds.tools.label.validate.Status
FAIL, PASS, SKIP, UNKNOWN
 
Constructor Summary
Label()
          Constructs an object representation of a PDS label.
 
Method Summary
 void addStatement(Statement statement)
          Associates a statement with this label
 AttributeStatement getAttribute(java.lang.String identifier)
          Retrieves the attribute with the identifier or null if not found
 java.util.List getAttributes()
          Retrieves attributes associated with this label
 java.lang.String getFilename()
           
 java.util.List getGroups()
          Retrieves groups associated with this label
 java.util.List getGroups(java.lang.String identifier)
          Retrieves the groups with the identifier or null if not found
 int getLabelType()
          Returns the type of label, see LabelType for the types of label.
 int getNumErrors()
           
 int getNumWarnings()
           
 java.util.List getObjects()
          Retrieves objects associated with this label
 java.util.List getObjects(java.lang.String identifier)
          Retrieves the object with the identifier or null if not found
 java.util.List getPointers()
          Retrieves pointers associated with this label
 java.util.List getStatement(java.lang.String identifier)
          Retrieves a statement with the identifier
 java.util.List getStatements()
          Retrieves the statements associated with this label
 java.lang.String getStatus()
           
 void incrementErrors()
           
 void incrementErrors(int numErrors)
           
 void incrementWarnings()
           
 void incrementWarnings(int numWarnings)
           
 void setFilename(java.lang.String filename)
           
 void setLabelType(int labelType)
          Sets the type of label
 void setStatus(java.lang.String status)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Label

public Label()
Constructs an object representation of a PDS label.

Method Detail

getStatement

public java.util.List getStatement(java.lang.String identifier)
Retrieves a statement with the identifier

Parameters:
identifier - Identifies the statement to retrieve
Returns:
The named statement or null if not found

getAttribute

public AttributeStatement getAttribute(java.lang.String identifier)
Retrieves the attribute with the identifier or null if not found

Parameters:
identifier - of attribute to find
Returns:
attribute or null

getGroups

public java.util.List getGroups(java.lang.String identifier)
Retrieves the groups with the identifier or null if not found

Parameters:
identifier - of group to find
Returns:
List of GroupStatement

getObjects

public java.util.List getObjects(java.lang.String identifier)
Retrieves the object with the identifier or null if not found

Parameters:
identifier - of object to find
Returns:
List of ObjectStatement

getStatements

public java.util.List getStatements()
Retrieves the statements associated with this label

Returns:
List of Statement

getObjects

public java.util.List getObjects()
Retrieves objects associated with this label

Returns:
List of ObjectStatement

getGroups

public java.util.List getGroups()
Retrieves groups associated with this label

Returns:
list of GroupStatement

getAttributes

public java.util.List getAttributes()
Retrieves attributes associated with this label

Returns:
list of AttributeStatement

getPointers

public java.util.List getPointers()
Retrieves pointers associated with this label

Returns:
list of PointerStatement

addStatement

public void addStatement(Statement statement)
Associates a statement with this label

Parameters:
statement - to be added to label

getLabelType

public int getLabelType()
Returns the type of label, see LabelType for the types of label.

Returns:
type of label

setLabelType

public void setLabelType(int labelType)
Sets the type of label

Parameters:
labelType - of this label

setFilename

public void setFilename(java.lang.String filename)

getFilename

public java.lang.String getFilename()

getStatus

public java.lang.String getStatus()

setStatus

public void setStatus(java.lang.String status)

incrementErrors

public void incrementErrors()

incrementWarnings

public void incrementWarnings()

incrementErrors

public void incrementErrors(int numErrors)

incrementWarnings

public void incrementWarnings(int numWarnings)

getNumErrors

public int getNumErrors()

getNumWarnings

public int getNumWarnings()


Copyright © 2005-2008 NASA Jet Propulsion Laboratory, California Institute of Technology. All Rights Reserved.