|
DLESE Tools v1.6.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.dlese.dpc.schemedit.input.SchemEditErrors
public class SchemEditErrors
Methods to create ActionErrors for the Metadata Editor. Most create two error messages :
Constructor Summary | |
---|---|
SchemEditErrors()
|
Method Summary | |
---|---|
static void |
addAnyTypeError(SchemEditActionErrors errors,
InputField field,
String errorMsg)
Adds a feature to the AnyTypeError attribute of the SchemEditErrors class |
static void |
addDuplicateUrlError(SchemEditActionErrors errors,
String uniqueUrlPath,
String msgKey)
Create a duplicateURL error(s) and attach to provided errors lsit |
static void |
addDuplicateValueError(SchemEditActionErrors errors,
InputField inputField,
String dupRecId)
Creates two ActionErrors signifying a duplicateValue error, one for the top of page message, and one for the error message that is attached to a specific field. |
static void |
addEntityError(SchemEditActionErrors errors,
InputField field,
String errorMsg)
Creates two ActionErrors, one for the top of page message, and one for the error message that is attached to a specific field. |
static void |
addError(SchemEditActionErrors errors,
InputField field,
String msgKey)
Creates two ActionErrors, one for the top of page message, and one for the error message that is attached to a specific field. |
static void |
addError(SchemEditActionErrors errors,
String fieldProperty,
String msgKey,
String elementName,
String pathArg)
Creates two ActionErrors, one for the top of page message, and one for the error message that is attached to a specific field. |
static void |
addGenericError(SchemEditActionErrors errors,
String xpath,
String msg)
Creates two ActionErrors signifying a Generic error, one for the top of page message, and one for the error message that is attached to a specific field. |
static void |
addInvalidUrlError(SchemEditActionErrors errors,
String uniqueUrlPath,
String msg)
Creates two ActionErrors signifying an invalidUrlError error, one for the top of page message, and one for the error message that is attached to a specific field. |
static void |
addSimilarUrlError(SchemEditActionErrors errors,
String uniqueUrlPath,
String msgKey)
Creates two ActionErrors signifying a similarURL, one for the top of page message, and one for the error message that is attached to a specific field. |
static void |
addUniqueUrlError(SchemEditActionErrors errors,
String uniqueUrlPath,
String msgKey,
String msgProperty)
Creates two ActionErrors for a "nonUniqueUrl", one for the top of page message, and one for the error message that is attached to a specific field. |
static void |
addXSDdatatypeError(SchemEditActionErrors errors,
InputField field,
String msgKey,
String errorMsg)
Adds errors in the case where an invalid value message has been supplied by the XSDDataType validator. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SchemEditErrors()
Method Detail |
---|
public static void addError(SchemEditActionErrors errors, String fieldProperty, String msgKey, String elementName, String pathArg)
Example use: to notify of an element that could not be deleted. Here there is not a specific InputField involved, but rather an branch of the XML document (which is identified by xpath).
Note: both the pathArg and the path component of the fieldProperty contain xpaths that are encoded for jsp (e.g., the indexing notation is converted from "[1]" to "_1_".
errors
- ActionErrors object to which the new errors are addedfieldProperty
- The property to which this error is attached (e.g.,
"valueOf(/itemRecord/general/description_1_)")msgKey
- Reference to a message in the "ApplicationResources"elementName
- The feature to be added to the Error attributepathArg
- xpath (encoded for jsp) to the field in which the
error occurspublic static void addGenericError(SchemEditActionErrors errors, String xpath, String msg)
errors
- error list to which we addmsg
- error msg contentxpath
- The feature to be added to the GenericError attributepublic static void addInvalidUrlError(SchemEditActionErrors errors, String uniqueUrlPath, String msg)
errors
- error list to which we adduniqueUrlPath
- path of field that should contain uniqueUrlmsg
- error msg contentpublic static void addSimilarUrlError(SchemEditActionErrors errors, String uniqueUrlPath, String msgKey)
errors
- error list to which we addmsgKey
- msgKey to select message from applicationResourcesuniqueUrlPath
- path of field that should contain uniqueUrlpublic static void addDuplicateUrlError(SchemEditActionErrors errors, String uniqueUrlPath, String msgKey)
errors
- error list to which we addmsgKey
- msgKey to select message from applicationResourcesuniqueUrlPath
- path of field that should contain uniqueUrlpublic static void addDuplicateValueError(SchemEditActionErrors errors, InputField inputField, String dupRecId)
errors
- the error list to which we addinputField
- the input field containing a dup valuedupRecId
- The Id of a record containing a dup valuepublic static void addUniqueUrlError(SchemEditActionErrors errors, String uniqueUrlPath, String msgKey, String msgProperty)
errors
- error list to which we addmsgKey
- msgKey to select message from applicationResourcesuniqueUrlPath
- path of field that should contain uniqueUrlmsgProperty
- identifies the type of error and how it is displayed
in UIpublic static void addError(SchemEditActionErrors errors, InputField field, String msgKey)
errors
- ActionErrors object to which the new errors are addedfield
- The InputField containing an errormsgKey
- Reference to a message in the "ApplicationResources"public static void addEntityError(SchemEditActionErrors errors, InputField field, String errorMsg)
errors
- ActionErrors object to which the new errors are addedfield
- The InputField containing an errorerrorMsg
- The feature to be added to the EntityError attributepublic static void addAnyTypeError(SchemEditActionErrors errors, InputField field, String errorMsg)
errors
- error list to which we addfield
- inputField that error message is attachederrorMsg
- The text of the error messagepublic static void addXSDdatatypeError(SchemEditActionErrors errors, InputField field, String msgKey, String errorMsg)
errors
- error list to which we addfield
- inputField that error message is attachedmsgKey
- msgKey to select message from applicationResourceserrorMsg
- The text of the error message
|
DLESE Tools v1.6.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |