|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.proteinshader.structure.Description
public class Description
A Description object serves as a container for the Category objects that hold Records describing a PDB structure entry.
| Constructor Summary | |
|---|---|
Description(String structureID)
Constructs a Description with the structureID specified as an argument. |
|
| Method Summary | |
|---|---|
Category |
addNewCategory(String categoryName)
Creates a Category, adds it to a hash, and then returns the new Category. |
void |
addNewLine(String categoryName,
String recordName,
String line)
Adds a line to the requested Category/Record. |
Category |
getCategory(String categoryName)
Retrieves a Category by its name. |
Record |
getRecord(String categoryName,
String recordName)
Retrieves a Record by its Category name and Record name. |
String |
getStructureID()
Returns the ID of the Structure that owns this Description. |
Iterator<Category> |
iteratorCategories()
Returns an Iterator for the Category objects held by this Description. |
int |
numberOfCategories()
Returns the number of Category objects held by this Description. |
void |
removeCategory(String categoryName)
Removes a Category. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Description(String structureID)
structureID - the PDB ID of the Structure the Description
belongs to.| Method Detail |
|---|
public String getStructureID()
public void addNewLine(String categoryName,
String recordName,
String line)
throws InvalidIDException
categoryName - the name of the Category.recordName - the name of the Record.line - the line to add to the Record.
InvalidIDException - if categoryName or recordName is null
or an empty String.
public Record getRecord(String categoryName,
String recordName)
categoryName - the name of the Record's Category.recordName - the name of the Record.
public Category addNewCategory(String categoryName)
throws InvalidIDException
categoryName - the name of the Category.
InvalidIDException - if categoryName or recordName is null
or an empty String.public Category getCategory(String categoryName)
categoryName - the name of the Category.
public Iterator<Category> iteratorCategories()
public int numberOfCategories()
public void removeCategory(String categoryName)
categoryName - the name of the Category.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||