Package net.sf.okapi.lib.xliff2.core
Interface IWithValidation
-
- All Known Implementing Classes:
MidFileData,StartGroupData,Unit
public interface IWithValidationProvides the methods to add and retrieve validation rules for an object.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ValidationgetValidation()Gets theValidationobject for the parent, creates an empty of if there is none.booleanhasValidation()Indicates if the object has validation data.voidsetValidation(Validation validation)sets theValidationobject for the parent.
-
-
-
Method Detail
-
hasValidation
boolean hasValidation()
Indicates if the object has validation data.- Returns:
- true if the object has validataion data, false otherwise.
-
getValidation
Validation getValidation()
Gets theValidationobject for the parent, creates an empty of if there is none.- Returns:
- the
Validationobject for the parent (can be empty, but never null).
-
setValidation
void setValidation(Validation validation)
sets theValidationobject for the parent.- Parameters:
validation- the newValidationobject for the parent.
-
-