DLESE Tools
v1.6.0

org.dlese.dpc.schemedit.input
Class SchemEditActionErrors

java.lang.Object
  extended by org.apache.struts.action.ActionMessages
      extended by org.apache.struts.action.ActionErrors
          extended by org.dlese.dpc.schemedit.input.SchemEditActionErrors
All Implemented Interfaces:
Serializable

public class SchemEditActionErrors
extends org.apache.struts.action.ActionErrors

Subclasses ActionErrors to maintain certain error-types in document order to improve readibility of error displays in UI.

Author:
Jonathan Ostwald
See Also:
Serialized Form

Nested Class Summary
 class SchemEditActionErrors.DocOrderComparator
          Compares two "page error" actionMessages wrt to instance document order so that editing errors can be presented in the same order in which they occur in the document being edited.
 
Nested classes/interfaces inherited from class org.apache.struts.action.ActionMessages
org.apache.struts.action.ActionMessages.ActionMessageItem
 
Field Summary
 
Fields inherited from class org.apache.struts.action.ActionErrors
GLOBAL_ERROR
 
Fields inherited from class org.apache.struts.action.ActionMessages
accessed, GLOBAL_MESSAGE, iCount, messages
 
Constructor Summary
SchemEditActionErrors()
          No-argument Constructor for the SchemEditActionErrors object
SchemEditActionErrors(SchemaHelper schemaHelper)
          Constructor for the SchemEditActionErrors object with SchemaHelper argument, which is needed to maintain errors in document order.
 
Method Summary
 void add(String property, org.apache.struts.action.ActionMessage message)
          Add an error, and sort into document order if schemaHelper is present and if specified propery is contained in sortedProperties list.
 Iterator get_Off()
          NOT YET DOCUMENTED
 Iterator get_Off(String property)
          NOT YET DOCUMENTED
 void setSchemaHelper(SchemaHelper schemaHelper)
          Sets the schemaHelper attribute of the SchemEditActionErrors object
 
Methods inherited from class org.apache.struts.action.ActionErrors
add
 
Methods inherited from class org.apache.struts.action.ActionMessages
add, clear, get, get, isAccessed, isEmpty, properties, size, size, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SchemEditActionErrors

public SchemEditActionErrors()
No-argument Constructor for the SchemEditActionErrors object


SchemEditActionErrors

public SchemEditActionErrors(SchemaHelper schemaHelper)
Constructor for the SchemEditActionErrors object with SchemaHelper argument, which is needed to maintain errors in document order.

Parameters:
schemaHelper - the schemaHelper
Method Detail

setSchemaHelper

public void setSchemaHelper(SchemaHelper schemaHelper)
Sets the schemaHelper attribute of the SchemEditActionErrors object

Parameters:
schemaHelper - The new schemaHelper value

add

public void add(String property,
                org.apache.struts.action.ActionMessage message)
Add an error, and sort into document order if schemaHelper is present and if specified propery is contained in sortedProperties list.

Overrides:
add in class org.apache.struts.action.ActionMessages
Parameters:
property - error property
message - error object

get_Off

public Iterator get_Off()
NOT YET DOCUMENTED

Returns:
NOT YET DOCUMENTED

get_Off

public Iterator get_Off(String property)
NOT YET DOCUMENTED

Parameters:
property - NOT YET DOCUMENTED
Returns:
NOT YET DOCUMENTED

DLESE Tools
v1.6.0