public static ValidationTechnique getValidationTechnique(Element validationTechniqueElement) { ParameterOwner parameterOwner = ParameterOwnerXML.getParameterOwner(validationTechniqueElement); if (parameterOwner instanceof ValidationTechnique) { return (ValidationTechnique) parameterOwner; } else { throw new IllegalArgumentException("The object readed is not a validation technique."); } }
public static Element getElement(ValidationTechnique validationTechnique) { Element element = ParameterOwnerXML.getElement(validationTechnique); element.setName(ELEMENT_NAME); return element; }