View Javadoc

1   package org.rundeck.api.generator;
2   
3   import org.dom4j.Document;
4   import org.dom4j.DocumentFactory;
5   
6   /**
7    * BaseDocGenerator generates a document using the element as the root.
8    *
9    * @author greg
10   * @since 2014-02-27
11   */
12  public abstract class BaseDocGenerator implements XmlDocumentGenerator {
13      @Override
14      public Document generateXmlDocument() {
15          return DocumentFactory.getInstance().createDocument(generateXmlElement());
16      }
17  
18  }