org.jomc.tools
Class JavaSources.JavaSpecificationEditor

Package class diagram package JavaSources.JavaSpecificationEditor
java.lang.Object
  extended by org.jomc.util.LineEditor
      extended by org.jomc.util.SectionEditor
          extended by org.jomc.tools.JavaSources.JavaEditor
              extended by org.jomc.tools.JavaSources.JavaSpecificationEditor
Enclosing class:
JavaSources

public class JavaSources.JavaSpecificationEditor
extends JavaSources.JavaEditor

Extension to JavaEditor for editing specification source code.

Version:
$Id: JavaSources.java 891 2009-11-02 03:40:00Z schulte2005 $
Author:
Christian Schulte

Constructor Summary
JavaSources.JavaSpecificationEditor(org.jomc.util.LineEditor lineEditor, org.jomc.model.Specification specification)
          Creates a new JavaSpecificationEditor instance for editing the source code of a given specification taking a LineEditor to chain.
JavaSources.JavaSpecificationEditor(org.jomc.model.Specification specification)
          Creates a new JavaSpecificationEditor instance for editing the source code of a given specification.
 
Method Summary
 void editAnnotationsSection(org.jomc.util.Section s)
          Edits the annotations section of the source code of the editor.
 void editDocumentationSection(org.jomc.util.Section s)
          Edits the documentation section of the source code of the editor.
 void editLicenseSection(org.jomc.util.Section s)
          Edits the license section of the source code of the editor.
 
Methods inherited from class org.jomc.tools.JavaSources.JavaEditor
editSection, getOutput, isAnnotationsSectionPresent, isDocumentationSectionPresent, isLicenseSectionPresent
 
Methods inherited from class org.jomc.util.SectionEditor
editLine, getSection, isSectionFinished
 
Methods inherited from class org.jomc.util.LineEditor
edit, getLineSeparator
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaSources.JavaSpecificationEditor

public JavaSources.JavaSpecificationEditor(org.jomc.model.Specification specification)
Creates a new JavaSpecificationEditor instance for editing the source code of a given specification.

Parameters:
specification - The specification to edit.

JavaSources.JavaSpecificationEditor

public JavaSources.JavaSpecificationEditor(org.jomc.util.LineEditor lineEditor,
                                           org.jomc.model.Specification specification)
Creates a new JavaSpecificationEditor instance for editing the source code of a given specification taking a LineEditor to chain.

Parameters:
lineEditor - The editor to chain.
specification - The specification to edit.
Method Detail

editLicenseSection

public void editLicenseSection(org.jomc.util.Section s)
                        throws IOException
Edits the license section of the source code of the editor.

Specified by:
editLicenseSection in class JavaSources.JavaEditor
Parameters:
s - The section to edit.
Throws:
NullPointerException - if s is null.
IOException - if editing s fails.

editAnnotationsSection

public void editAnnotationsSection(org.jomc.util.Section s)
                            throws IOException
Edits the annotations section of the source code of the editor.

Specified by:
editAnnotationsSection in class JavaSources.JavaEditor
Parameters:
s - The section to edit.
Throws:
NullPointerException - if s is null.
IOException - if editing s fails.

editDocumentationSection

public void editDocumentationSection(org.jomc.util.Section s)
                              throws IOException
Edits the documentation section of the source code of the editor.

Specified by:
editDocumentationSection in class JavaSources.JavaEditor
Parameters:
s - The section to edit.
Throws:
NullPointerException - if s is null.
IOException - if editing s fails.


Copyright © 2005-2009 The JOMC Project. All Rights Reserved.