Class SchemEditActionErrors

java.lang.Object
org.apache.struts.action.ActionMessages
org.apache.struts.action.ActionErrors
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:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    class 
    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

    Constructors
    Constructor
    Description
    No-argument Constructor for the SchemEditActionErrors object
    Constructor for the SchemEditActionErrors object with SchemaHelper argument, which is needed to maintain errors in document order.
  • Method Summary

    Modifier and Type
    Method
    Description
    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.
    NOT YET DOCUMENTED
    get_Off(String property)
    NOT YET DOCUMENTED
    void
    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 Details

    • 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 Details

    • 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