void (Element filterElement) { Element option = new Element(ELEMENT_OPTION); filterElement.addContent(option); option.setAttribute(ATTRIBUTE_NAME, FILTER_NAME); if (myName != null) { option.setAttribute(ATTRIBUTE_VALUE, myName); } option = new Element(ELEMENT_OPTION); filterElement.addContent(option); option.setAttribute(ATTRIBUTE_NAME, FILTER_DESCRIPTION); if (myDescription != null) { option.setAttribute(ATTRIBUTE_VALUE, myDescription); } option = new Element(ELEMENT_OPTION); filterElement.addContent(option); option.setAttribute(ATTRIBUTE_NAME, FILTER_REGEXP); if (myRegExp != null) { option.setAttribute(ATTRIBUTE_VALUE, myRegExp); } }