|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectariba.ui.aribaweb.core.AWErrorInfo
public class AWErrorInfo
This class encapsulates information about an error or warning. Each error is identified by either a single key or a set of keys consist of value source, field path, and group name. The key(s) are then used for looking up errors of interest.
| Field Summary | |
|---|---|
static int |
FieldPathKeyIndex
|
static int |
GroupNameKeyIndex
|
static int |
NotDisplayed
|
static String |
NullKey
|
static int |
NumKeys
|
static int |
SingleKeyIndex
|
static int |
ValueSourceKeyIndex
|
| Constructor Summary | |
|---|---|
AWErrorInfo(Object[] keys,
String message,
Object errantValue,
boolean isWarning)
Constructor to build a multi-key error object. |
|
AWErrorInfo(Object key,
String message,
Object errantValue,
boolean isWarning)
Constructor to build a single-key error object. |
|
AWErrorInfo(Object vs,
String fieldPath,
String groupName,
String message,
Object errantValue,
boolean isWarning)
|
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int NumKeys
public static final int ValueSourceKeyIndex
public static final int FieldPathKeyIndex
public static final int GroupNameKeyIndex
public static final int SingleKeyIndex
public static final String NullKey
public static final int NotDisplayed
| Constructor Detail |
|---|
public AWErrorInfo(Object key,
String message,
Object errantValue,
boolean isWarning)
key - The object that identifies the error.message - The message that describes the error.errantValue - The unparsable value that the user entered. Since
the parsing failed, we cannot store this value in
the field. We stash it away here so we can display
in the UI.isWarning - Indicate that this error severity is a warning.
public AWErrorInfo(Object[] keys,
String message,
Object errantValue,
boolean isWarning)
keys - Expected to contain value source, field path, and group name.message - The message that describes the error.errantValue - The unparsable value that the user entered. Since
the parsing failed, we cannot store this value in
the field. We stash it away here so we can display
in the UI.isWarning - Indicate that this error severity is a warning.
public AWErrorInfo(Object vs,
String fieldPath,
String groupName,
String message,
Object errantValue,
boolean isWarning)
| Method Detail |
|---|
public boolean isSingleKey()
public static int getNumberOfKeys(Object key)
public static Object[] makeKeyArray(Object key)
public static Object[] makeKeyArray(Object vs,
Object field,
Object group)
public boolean isWarning()
public int getDisplayOrder()
getDisplayOrder in interface AWErrorBucketpublic void setDisplayOrder(int order)
public int getUnnavigableDisplayOrder()
getUnnavigableDisplayOrder in interface AWErrorBucketpublic void setUnnavigableDisplayOrder(int order)
public int getRegistrationOrder()
getRegistrationOrder in interface AWErrorBucketpublic void setRegistrationOrder(int order)
setRegistrationOrder in interface AWErrorBucketpublic boolean isValidationError()
true if this error is a validation error in the sense
that it was added to the error manager during the invocation of the
validation handlers. Returns false otherwise.
public List<AWErrorInfo> getErrorInfos(Boolean validationErrors)
AWErrorBucketthis
that satisfy the condition
isValidationError() == validationErrors.
All error infos are returned if validationErrors == null.
getErrorInfos in interface AWErrorBucketpublic void setValidationError(boolean value)
isValidationError().
public Object getKey()
getKey in interface AWErrorBucketpublic Object[] getKeys()
getKeys in interface AWErrorBucketpublic String getMessage()
public Object getErrantValue()
public Object getValueSource()
public Object getGroupName()
public Object getFieldPath()
public Object getErrorSource()
public void setErrorSource(Object source)
public boolean keysEqual(Object[] theirKeys)
keysEqual in interface AWErrorBucketpublic boolean keysEqualLoosely(Object[] theirKeys)
public boolean isSameError(AWErrorInfo error)
public String toString()
toString in class Objectpublic String toString(Logger log)
public String getKeysAsString()
public static String getKeysAsString(Object[] keys)
public void incrementDuplicateCount()
public void decrementDuplicateCount()
public int getDuplicateCount()
public boolean isSingleErrorBucket()
isSingleErrorBucket in interface AWErrorBucketpublic AWErrorBucket add(AWErrorInfo error)
add in interface AWErrorBucketpublic boolean isDuplicateError(AWErrorInfo error)
isDuplicateError in interface AWErrorBucketpublic boolean hasErrorsWithSeverity(Boolean isWarning)
hasErrorsWithSeverity in interface AWErrorBucketpublic AWErrorInfo getFirstError(Boolean isWarning)
getFirstError in interface AWErrorBucketpublic AWErrorInfo get(int i)
get in interface AWErrorBucketpublic int size()
size in interface AWErrorBucketpublic List<AWErrorInfo> getErrorInfos()
AWErrorBucketAWErrorInfos in this.
getErrorInfos in interface AWErrorBucketpublic boolean hasDuplicate()
hasDuplicate in interface AWErrorBucketpublic Object getAssociatedTableItem()
getAssociatedTableItem in interface AWErrorBucketpublic AWComponent getAssociatedDataTable()
getAssociatedDataTable in interface AWErrorBucket
public void setAssociatedTableItem(AWComponent table,
Object item)
setAssociatedTableItem in interface AWErrorBucketpublic AWEncodedString getIndicatorId()
public void setIndicatorId(AWEncodedString id)
public boolean getWasAutoScrolled()
public void setWasAutoScrolled(boolean scrolled)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||