org.mybatis.generator.api.dom.java
Class Interface

java.lang.Object
  extended by org.mybatis.generator.api.dom.java.JavaElement
      extended by org.mybatis.generator.api.dom.java.Interface
All Implemented Interfaces:
CompilationUnit

public class Interface
extends JavaElement
implements CompilationUnit

Author:
Jeff Butler

Constructor Summary
Interface(FullyQualifiedJavaType type)
           
Interface(String type)
           
 
Method Summary
 void addFileCommentLine(String commentLine)
          Comments will be written at the top of the file as is, we do not append any start or end comment characters.
 void addImportedType(FullyQualifiedJavaType importedType)
           
 void addImportedTypes(Set<FullyQualifiedJavaType> importedTypes)
           
 void addMethod(Method method)
           
 void addStaticImport(String staticImport)
           
 void addStaticImports(Set<String> staticImports)
           
 void addSuperInterface(FullyQualifiedJavaType superInterface)
           
 List<String> getFileCommentLines()
           
 String getFormattedContent()
           
 Set<FullyQualifiedJavaType> getImportedTypes()
           
 List<Method> getMethods()
           
 Set<String> getStaticImports()
           
 FullyQualifiedJavaType getSuperClass()
           
 Set<FullyQualifiedJavaType> getSuperInterfaceTypes()
           
 FullyQualifiedJavaType getType()
           
 boolean isJavaEnumeration()
           
 boolean isJavaInterface()
           
 
Methods inherited from class org.mybatis.generator.api.dom.java.JavaElement
addAnnotation, addFormattedAnnotations, addFormattedJavadoc, addJavaDocLine, addSuppressTypeWarningsAnnotation, getAnnotations, getJavaDocLines, getVisibility, isFinal, isStatic, setFinal, setStatic, setVisibility
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Interface

public Interface(FullyQualifiedJavaType type)

Interface

public Interface(String type)
Method Detail

getImportedTypes

public Set<FullyQualifiedJavaType> getImportedTypes()
Specified by:
getImportedTypes in interface CompilationUnit

addImportedType

public void addImportedType(FullyQualifiedJavaType importedType)
Specified by:
addImportedType in interface CompilationUnit

getFormattedContent

public String getFormattedContent()
Specified by:
getFormattedContent in interface CompilationUnit

addSuperInterface

public void addSuperInterface(FullyQualifiedJavaType superInterface)

getMethods

public List<Method> getMethods()
Returns:
Returns the methods.

addMethod

public void addMethod(Method method)

getType

public FullyQualifiedJavaType getType()
Specified by:
getType in interface CompilationUnit
Returns:
Returns the type.

getSuperClass

public FullyQualifiedJavaType getSuperClass()
Specified by:
getSuperClass in interface CompilationUnit

getSuperInterfaceTypes

public Set<FullyQualifiedJavaType> getSuperInterfaceTypes()
Specified by:
getSuperInterfaceTypes in interface CompilationUnit

isJavaInterface

public boolean isJavaInterface()
Specified by:
isJavaInterface in interface CompilationUnit

isJavaEnumeration

public boolean isJavaEnumeration()
Specified by:
isJavaEnumeration in interface CompilationUnit

addFileCommentLine

public void addFileCommentLine(String commentLine)
Description copied from interface: CompilationUnit
Comments will be written at the top of the file as is, we do not append any start or end comment characters. Note that in the Eclipse plugin, file comments will not be merged.

Specified by:
addFileCommentLine in interface CompilationUnit

getFileCommentLines

public List<String> getFileCommentLines()
Specified by:
getFileCommentLines in interface CompilationUnit

addImportedTypes

public void addImportedTypes(Set<FullyQualifiedJavaType> importedTypes)
Specified by:
addImportedTypes in interface CompilationUnit

getStaticImports

public Set<String> getStaticImports()
Specified by:
getStaticImports in interface CompilationUnit

addStaticImport

public void addStaticImport(String staticImport)
Specified by:
addStaticImport in interface CompilationUnit

addStaticImports

public void addStaticImports(Set<String> staticImports)
Specified by:
addStaticImports in interface CompilationUnit


Copyright © 2010-2012 MyBatis.org. All Rights Reserved.