| |
|
| java.lang.Object uk.org.ponder.messageutil.TargettedMessageList
TargettedMessageList | public class TargettedMessageList implements Serializable(Code) | | A typesafe container of
TargettedMessage objects. It maintains the
hidden state of a field nestedpath which corresponds to the EL
location for which the data alterations currently being processed are based
at. TargettedMessage objects received to this list via the
TargettedMessageList.addMessage(TargettedMessage) methods will have their
targetid field, if set, interpreted as an EL relative to this
hidden path and rebased.
author: Antranig Basman (antranig@caret.cam.ac.uk) |
BACKUP_PATH | final public static String BACKUP_PATH(Code) | | A nestedpath ending with this String will consume the following path
segments
|
addMessage | public void addMessage(TargettedMessage message)(Code) | | Appends a new TargettedMessage to this list. The targetid
field will be interpreted as an EL path adjusted to take into account of
the current value of nestedPath
|
clear | public void clear()(Code) | | Clears all messages from this list *
|
isError | public boolean isError()(Code) | | Does the current state of the TML represent an error? This is determined by
checking for any individual message which is at the
TargettedMessage.SEVERITY_ERROR severity level.
|
messageAt | public TargettedMessage messageAt(int i)(Code) | | Access a message by index.
Parameters: i - The index of the message to access. The TargettedMessage at index position i |
pack | public String pack()(Code) | | Pack this list into a String for debugging purposes.
|
popNestedPath | public void popNestedPath()(Code) | | Pops one path segment off the hidden path base *
|
pushNestedPath | public void pushNestedPath(String extrapath)(Code) | | Push the supplied path segment onto the hidden path base *
|
render | public StringList render(MessageLocator locator)(Code) | | Renders the entire contents of this message list into a list of localised
messages, using the supplied MessageLocator
|
setMessageAt | public void setMessageAt(int i, TargettedMessage message)(Code) | | Update a message held at a particular index.
Parameters: i - The index of the message to update Parameters: message - The new message to be held at index i |
size | public int size()(Code) | | Returns the number of messages held in this list *
|
|
|
|