|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.nasa.pds.tools.label.Label
public class Label
This class represents a PDS label.
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, 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 |
---|
public Label()
Method Detail |
---|
public java.util.List getStatement(java.lang.String identifier)
identifier
- Identifies the statement to retrieve
public AttributeStatement getAttribute(java.lang.String identifier)
identifier
- of attribute to find
public java.util.List getGroups(java.lang.String identifier)
identifier
- of group to find
List
of GroupStatement
public java.util.List getObjects(java.lang.String identifier)
identifier
- of object to find
List
of ObjectStatement
public java.util.List getStatements()
List
of Statement
public java.util.List getObjects()
ObjectStatement
public java.util.List getGroups()
GroupStatement
public java.util.List getAttributes()
AttributeStatement
public java.util.List getPointers()
PointerStatement
public void addStatement(Statement statement)
statement
- to be added to labelpublic int getLabelType()
LabelType
for the types of label.
public void setLabelType(int labelType)
labelType
- of this labelpublic void setFilename(java.lang.String filename)
public java.lang.String getFilename()
public java.lang.String getStatus()
public void setStatus(java.lang.String status)
public void incrementErrors()
public void incrementWarnings()
public void incrementErrors(int numErrors)
public void incrementWarnings(int numWarnings)
public int getNumErrors()
public int getNumWarnings()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |