Package org.teiid.query.validator
Class ValidatorFailure
- java.lang.Object
-
- org.teiid.query.report.ReportItem
-
- org.teiid.query.validator.ValidatorFailure
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
InvalidFunctionItem
public class ValidatorFailure extends ReportItem
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ValidatorFailure.Status
-
Field Summary
Fields Modifier and Type Field Description static String
VALIDATOR_FAILURE
-
Constructor Summary
Constructors Constructor Description ValidatorFailure(String description)
ValidatorFailure(String description, Collection<? extends LanguageObject> objects)
ValidatorFailure(String description, LanguageObject object)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getInvalidObjectCount()
Get count of invalid objects.Collection<LanguageObject>
getInvalidObjects()
Get the objects that failed validation.ValidatorFailure.Status
getStatus()
void
setStatus(ValidatorFailure.Status status)
String
toString()
Return description-
Methods inherited from class org.teiid.query.report.ReportItem
getMessage, getType, setMessage
-
-
-
-
Field Detail
-
VALIDATOR_FAILURE
public static final String VALIDATOR_FAILURE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ValidatorFailure
public ValidatorFailure(String description)
-
ValidatorFailure
public ValidatorFailure(String description, LanguageObject object)
-
ValidatorFailure
public ValidatorFailure(String description, Collection<? extends LanguageObject> objects)
-
-
Method Detail
-
setStatus
public void setStatus(ValidatorFailure.Status status)
-
getStatus
public ValidatorFailure.Status getStatus()
-
getInvalidObjectCount
public int getInvalidObjectCount()
Get count of invalid objects.- Returns:
- Count of invalid objects
-
getInvalidObjects
public Collection<LanguageObject> getInvalidObjects()
Get the objects that failed validation.- Returns:
- Invalid objects, may be null
-
toString
public String toString()
Return description- Overrides:
toString
in classReportItem
- Returns:
- Description of failure
-
-