Ejemplo n.º 1
0
  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.");
    }
  }
Ejemplo n.º 2
0
 public static Element getElement(ValidationTechnique validationTechnique) {
   Element element = ParameterOwnerXML.getElement(validationTechnique);
   element.setName(ELEMENT_NAME);
   return element;
 }