|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.proteinshader.structure.Record
public class Record
A Record object serves as a container for the lines of a PDB record.
| Constructor Summary | |
|---|---|
Record(String categoryName,
String recordName)
Constructs a Record with the name specified as an argument. |
|
| Method Summary | |
|---|---|
void |
addLine(String line)
Adds a line to the Record. |
void |
clear()
Clears all lines from the Record. |
String |
getCategoryName()
Returns the name of the Category the Record belongs to. |
String |
getName()
Returns the name of the Record. |
Iterator<String> |
iteratorLines()
Returns a Iterator for the lines of the Record. |
int |
numberOfLines()
Returns the number of lines in the Record. |
void |
removeLine(String line)
Removes the first occurrence of a line from the Record. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Record(String categoryName,
String recordName)
throws InvalidIDException
recordName - the name of the Record.categoryName - the name of the Category.
InvalidIDException - if recordName is null or an empty
String.| Method Detail |
|---|
public String getName()
public String getCategoryName()
public void addLine(String line)
line - a line of the Record.public Iterator<String> iteratorLines()
public int numberOfLines()
public void removeLine(String line)
line - the line to remove.public void clear()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||