com.cc.framework.message
Interface MessageResourceLoader


public interface MessageResourceLoader

Interface for accessing messages from a configuration file.

Since:
1.0
Version:
$Revision: 1.3 $
Author:
Harald Schulz

Method Summary
 boolean done()
          Checks if the list has more elements
 int getCode()
          Returns the message code at the specified position in this list.
 java.lang.String getLanguage(int index)
          Returns the language of the message
 int getLanguageCount()
          Returns the number of available language resources for a message
 java.lang.String getName()
          Returns the symbolic name.
 java.lang.String getSeverity()
          Returns the severity of the message
 java.lang.String getText(int index)
          Returns the message text at the specified position in this list.
 void next()
          Goes to the next element of the list.
 void restart()
          Sets the iterator to the top of the list.
 

Method Detail

done

public boolean done()
Checks if the list has more elements

Returns:
boolean true if no more elements exists, false otherwise.

getCode

public int getCode()
Returns the message code at the specified position in this list.

Returns:
the message code

getLanguage

public java.lang.String getLanguage(int index)
Returns the language of the message

Parameters:
index - the message code
Returns:
String the language

getLanguageCount

public int getLanguageCount()
Returns the number of available language resources for a message

Returns:
integer

getName

public java.lang.String getName()
Returns the symbolic name.

Returns:
String

getSeverity

public java.lang.String getSeverity()
Returns the severity of the message

Returns:
String

getText

public java.lang.String getText(int index)
Returns the message text at the specified position in this list.

Parameters:
index - Index of element to return (message number).
Returns:
String the message text.

next

public void next()
Goes to the next element of the list.


restart

public void restart()
Sets the iterator to the top of the list.



Copyright © 2000-2005 SCC Informationssysteme GmbH. All Rights Reserved.