|
Oracle Fusion Middleware Java API Reference for Oracle PDK Java 11g Release 1 (11.1.1) E10691-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.portal.provider.v2.utils.ValidationError
public class ValidationError
A ValidationError
maintains a list of ValidationError.Error
s reported by a tree of Validateable
objects during validation
traversal.
Context information, such as the location within a tree of objects, is
supplied using the utility newContext(String, String, String)
method.
Nested Class Summary | |
---|---|
static class |
ValidationError.Error
Encapsulates information relating to a single error. |
Constructor Summary | |
---|---|
ValidationError()
Constructs this ValidationError instance. |
Method Summary | |
---|---|
void |
addError(java.lang.String context,
java.lang.String message,
java.lang.String values)
Adds an error to the list maintained by this ValidationError instance. |
boolean |
isEmpty()
Indicates whether or not this ValidationError instance is
currently empty. |
java.util.Iterator |
iterator()
Returns a java.util.Iterator providing ordered retrieval of
the ValidationError.Error s entered into this
ValidationError instance. |
static java.lang.String |
newContext(java.lang.String parentContext,
java.lang.String typeName,
java.lang.String objName)
Returns a new context string containing the parent context and current context delimited by a ">" character. |
java.lang.String |
toString()
Returns a java.lang.String representation of this
ValidationError instance. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ValidationError()
ValidationError
instance.
Method Detail |
---|
public void addError(java.lang.String context, java.lang.String message, java.lang.String values)
ValidationError
instance. The context information supplied
should conatin the context information of entities calling the current
Validateable
. This will be the case if
the utility newContext(String, String, String)
was used.
context
- Current context information.message
- The error message.values
- The error values.public java.util.Iterator iterator()
java.util.Iterator
providing ordered retrieval of
the ValidationError.Error
s entered into this
ValidationError
instance.
java.util.Iterator
whose members are of type
ValidationError.Error
.public boolean isEmpty()
ValidationError
instance is
currently empty.
boolean
flag.public java.lang.String toString()
java.lang.String
representation of this
ValidationError
instance.
toString
in class java.lang.Object
public static java.lang.String newContext(java.lang.String parentContext, java.lang.String typeName, java.lang.String objName)
parentContext
- The parent context.typeName
- The type name of the current Validateable
instance.objName
- The instance name of the current Validateable
instance.
null
if it was not possible
t construct one from the supplied information.
|
Oracle Fusion Middleware Java API Reference for Oracle PDK Java 11g Release 1 (11.1.1) E10691-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |