Java Reference
In-Depth Information
ArrayIndexOutOfBoundsException {
return getBoardCommand().getAuthor(index);
}
1@ Cache key is
held locally.
public String getBoard() {
return board;
}
protected static Hashtable getBoardCache() {
return boardCache;
}
ShowBoardCommand getBoardCommand() {
return boardCommand;
}
public boolean getCached() {
return cached;
}
public String getNumber(int index)
throws
IndexOutOfBoundsException,
ArrayIndexOutOfBoundsException {
return getBoardCommand().getNumber(index);
}
public int getSize() {
return getBoardCommand().getSize();
}
public String getSubject(int index)
throws
IndexOutOfBoundsException,
ArrayIndexOutOfBoundsException {
return getBoardCommand().getSubject(index);
}
public void setBoard(String name) {
board = name;
}
void setBoardCommand(ShowBoardCommand newBoardCommand) {
boardCommand = newBoardCommand;
}
}
B These imports get our usual Java utility classes and a couple of others. We'll use
this command to actually create a ShowBoardCommand or retrieve it from our class.
We'll also include a validation step to ensure that the key fields entered by the con-
troller are valid.
Search WWH ::




Custom Search