|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.proteinshader.structure.Category
public class Category
A Category object serves as a container for the Records in a PDB structure entry.
Constructor Summary | |
---|---|
Category(String name)
Constructs a Category with the name specified as an argument. |
Method Summary | |
---|---|
Record |
addNewRecord(String recordName)
Creates a Record, adds it to a hash, and returns the new Record. |
String |
getName()
Returns the name of the Category. |
Record |
getRecord(String recordName)
Retrieves a Record by its name. |
Iterator<Record> |
iteratorRecords()
Returns an Iterator for the Records held by this Category object. |
int |
numberOfRecords()
Returns the number of Records held by this Category. |
void |
removeRecord(String recordName)
Removes a Record. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Category(String name) throws InvalidIDException
name
- the name of the Category.
InvalidIDException
- if name is null or an empty String.Method Detail |
---|
public String getName()
public Record addNewRecord(String recordName) throws InvalidIDException
recordName
- the name of the Record.
InvalidIDException
- if recordName is null or an empty
String.public Record getRecord(String recordName)
recordName
- the name of the Record.
public void removeRecord(String recordName)
recordName
- the name of the Record.public Iterator<Record> iteratorRecords()
public int numberOfRecords()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |