org.plasma.text.lang3gl.java
Class JDOInterfaceFactory

java.lang.Object
  extended by org.plasma.text.lang3gl.java.DefaultFactory
      extended by org.plasma.text.lang3gl.java.JDODefaultFactory
          extended by org.plasma.text.lang3gl.java.JDOInterfaceFactory
All Implemented Interfaces:
InterfaceFactory, Lang3GLContentFactory

public class JDOInterfaceFactory
extends JDODefaultFactory
implements InterfaceFactory


Field Summary
 
Fields inherited from class org.plasma.text.lang3gl.java.DefaultFactory
context, FILE_SEP, LINE_SEP
 
Constructor Summary
JDOInterfaceFactory(Lang3GLContext context)
           
 
Method Summary
 java.lang.String createContent(Package pkg, Class clss)
          Returns an 3Gl language specific content for the given Package and Type
 java.lang.String createFileName(Class clss)
          Returns an 3Gl language specific file name for the given Class based on configuration settings.
protected  java.lang.String createMethodDeclarations(Class clss)
           
protected  java.lang.String createMethodDeclarations(Class clss, Property field)
           
protected  java.lang.String createStaticFieldDeclarations(Class clss)
           
protected  java.lang.String createThirdPartyImportDeclarations(Package pkg, Class clss)
           
protected  java.lang.String createTypeDeclaration(Package pkg, Class clss)
           
 
Methods inherited from class org.plasma.text.lang3gl.java.JDODefaultFactory
collectClassNames, collectClassNamesDeep, collectClassNamesDeep, collectSuperclassNames, createBaseDirectoryName, createClassReferenceImportDeclarations, createDirectoryName, createInterfaceReferenceImportDeclarations, createPackageDeclaration, createPackageName
 
Methods inherited from class org.plasma.text.lang3gl.java.DefaultFactory
beginBody, collectDataClassNames, collectDataClassNames, collectDataFieldClassNamesDeep, collectProvisioningClasses, collectProvisioningClassesDeep, collectProvisioningFields, collectProvisioningSuperclasses, collectReferenceClassNames, collectReferenceClassNames, collectReferenceFieldClassNamesDeep, collectSuperclassNames, collectSuperClassNames, collectSuperClassNames, createCreatorByAbstractClassDeclaration, createCreatorDeclaration, createFieldImportMap, createImportDeclaration, createImportDeclarations, createIsSetDeclaration, createManyAdderDeclaration, createManyCountDeclaration, createManyGetterDeclaration, createManyIndexGetterDeclaration, createManyRemoverDeclaration, createManySetterDeclaration, createSingularGetterDeclaration, createSingularSetterDeclaration, createUnsetterDeclaration, endBody, firstToUpperCase, getContext, getPrimitiveTypeDefault, getTypeClass, getTypeClass, getTypeClassName, getTypeClassName, getWrappedDocmentations, hasOnlySingilarFields, hasOnlySingilarFieldsDeep, indent, newline, toConstantName, toEnumLiteralName, toMethodFieldName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.plasma.text.lang3gl.Lang3GLContentFactory
createBaseDirectoryName, createDirectoryName, getContext, getTypeClass
 

Constructor Detail

JDOInterfaceFactory

public JDOInterfaceFactory(Lang3GLContext context)
Method Detail

createContent

public java.lang.String createContent(Package pkg,
                                      Class clss)
Description copied from interface: InterfaceFactory
Returns an 3Gl language specific content for the given Package and Type

Specified by:
createContent in interface InterfaceFactory
Parameters:
pkg - the Package
clss - the Type
Returns:
the content

createThirdPartyImportDeclarations

protected java.lang.String createThirdPartyImportDeclarations(Package pkg,
                                                              Class clss)

createStaticFieldDeclarations

protected java.lang.String createStaticFieldDeclarations(Class clss)

createTypeDeclaration

protected java.lang.String createTypeDeclaration(Package pkg,
                                                 Class clss)

createMethodDeclarations

protected java.lang.String createMethodDeclarations(Class clss)

createMethodDeclarations

protected java.lang.String createMethodDeclarations(Class clss,
                                                    Property field)

createFileName

public java.lang.String createFileName(Class clss)
Description copied from interface: InterfaceFactory
Returns an 3Gl language specific file name for the given Class based on configuration settings.

Specified by:
createFileName in interface InterfaceFactory
Parameters:
clss - the class
Returns:
an 3Gl language specific file name for the given Class based on configuration settings
See Also:
Class


Copyright © 2013. All Rights Reserved.