public class ERMAttributeError
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Class and Description |
---|---|
static class |
ERMAttributeError.ErrorType
Error types:
REQUIRED - Required field is null error INVALID - The value for the attribute is invalid WARNING - Associate a warning with the attribute |
Constructor and Description |
---|
ERMAttributeError(ERMAttribute attribute,
int mboIndex,
ERMAttributeError.ErrorType errorType)
Constructor taking in the ERMAttribute associated with the error and the index of the
mbo the error occurred (basically which mbo in the MboSet) And also take the type of error.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
ERMAttribute |
getAttribute()
Returns the ERMAttribute associated with the error.
|
ERMAttributeError.ErrorType |
getErrorType()
Returns the ErrorType of error that occurred.
|
int |
getMboIndex()
Returns the index of the mbo (in the MboSet's Mbo vector) that the error occurred.
|
MboSetRemote |
getMboSet() |
java.util.LinkedHashMap<ERMEntity,java.lang.Integer> |
getParentIndexes() |
void |
invalidate() |
void |
setAttribute(ERMAttribute attribute) |
void |
setMboSet(MboSetRemote mboSet) |
void |
setParentIndex(ERMEntity ermEntity,
int mboVectorIndex) |
public ERMAttributeError(ERMAttribute attribute, int mboIndex, ERMAttributeError.ErrorType errorType)
attribute
- The ERMAttribute associated with the errormboIndex
- The index of the mbo within its MboSeterrorType
- The type of error it ispublic ERMAttribute getAttribute()
public int getMboIndex()
public ERMAttributeError.ErrorType getErrorType()
public void setParentIndex(ERMEntity ermEntity, int mboVectorIndex)
public java.util.LinkedHashMap<ERMEntity,java.lang.Integer> getParentIndexes()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public void setMboSet(MboSetRemote mboSet)
public MboSetRemote getMboSet()
public void invalidate()
public void setAttribute(ERMAttribute attribute)
sets
- the ERMAttribute of the ERMAttributeError