|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.codehaus.enunciate.contract.validation.ValidationResult
public class ValidationResult
The result of validation.
| Constructor Summary | |
|---|---|
ValidationResult()
|
|
| Method Summary | |
|---|---|
void |
addError(com.sun.mirror.declaration.Declaration declaration,
java.lang.String text)
Add an error message. |
void |
addError(com.sun.mirror.util.SourcePosition position,
java.lang.String text)
Add an error message. |
void |
addWarning(com.sun.mirror.declaration.Declaration declaration,
java.lang.String text)
Add n warning message. |
void |
addWarning(com.sun.mirror.util.SourcePosition position,
java.lang.String text)
Add an warning message. |
void |
aggregate(java.lang.String label,
ValidationResult result)
Aggregate the specified result to these results. |
void |
aggregate(ValidationResult result)
Aggregate the specified result to these results. |
protected java.lang.String |
appendReferenceInformation(java.lang.String text,
java.util.Set<java.lang.String> referencedFrom)
|
java.util.List<ValidationMessage> |
getErrors()
The errors. |
java.lang.String |
getLabel()
The label that has been applied. |
java.util.List<ValidationMessage> |
getWarnings()
Whether there are any warnings in the result. |
boolean |
hasErrors()
Whether there are any errors in the result. |
boolean |
hasWarnings()
Whether there are any warnings in the result. |
void |
setLabel(java.lang.String label)
Apply a specific label. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ValidationResult()
| Method Detail |
|---|
public java.lang.String getLabel()
public void setLabel(java.lang.String label)
label - The label to apply.public boolean hasErrors()
public void addError(com.sun.mirror.util.SourcePosition position,
java.lang.String text)
position - The source position.text - The text of the error message.
public void addError(com.sun.mirror.declaration.Declaration declaration,
java.lang.String text)
declaration - The position of the error.text - The text of the error message.
protected java.lang.String appendReferenceInformation(java.lang.String text,
java.util.Set<java.lang.String> referencedFrom)
public java.util.List<ValidationMessage> getErrors()
public boolean hasWarnings()
public void addWarning(com.sun.mirror.util.SourcePosition position,
java.lang.String text)
position - The source position.text - The text of the warning message.
public void addWarning(com.sun.mirror.declaration.Declaration declaration,
java.lang.String text)
declaration - The position of the warning.text - The text of the warning message.public java.util.List<ValidationMessage> getWarnings()
public void aggregate(ValidationResult result)
result - The result to aggregate.
public void aggregate(java.lang.String label,
ValidationResult result)
label - The label to be applied to the aggregated messages.result - The result to aggregate.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||