org.plasma.text.lang3gl.java
Class SDOEnumerationFactory

java.lang.Object
  extended by org.plasma.text.lang3gl.java.DefaultFactory
      extended by org.plasma.text.lang3gl.java.SDODefaultFactory
          extended by org.plasma.text.lang3gl.java.SDOEnumerationFactory
All Implemented Interfaces:
EnumerationFactory, Lang3GLContentFactory

public class SDOEnumerationFactory
extends SDODefaultFactory
implements EnumerationFactory


Field Summary
 
Fields inherited from class org.plasma.text.lang3gl.java.SDODefaultFactory
classResolver, interfaceProvisioning, interfaceResolver, SDO_RESERVED_NAMES
 
Fields inherited from class org.plasma.text.lang3gl.java.DefaultFactory
context, FILE_SEP, LINE_SEP
 
Constructor Summary
SDOEnumerationFactory(Lang3GLContext context)
           
 
Method Summary
protected  java.lang.String createConstructors(Package pkg, Enumeration enm)
           
 java.lang.String createContent(Package pkg, Enumeration enm)
          Returns an 3Gl language specific content for the given Package and Type
 java.lang.String createFileName(Enumeration clss)
          Returns an 3Gl language specific file name for the given Enumeration based on configuration settings.
protected  java.lang.String createOperations(Package pkg, Enumeration enm)
           
protected  java.lang.String createOperations(Package pkg, Enumeration enm, EnumerationLiteral lit)
           
protected  java.lang.String createPrivateFieldDeclarations(Enumeration enm)
           
protected  java.lang.String createSDOInterfaceReferenceImportDeclarations(Package pkg, Class clss)
           
protected  java.lang.String createStaticFieldDeclarations(Enumeration enumeration)
           
protected  java.lang.String createThirdPartyImportDeclarations(Package pkg, Class clss)
           
protected  java.lang.String createTypeDeclaration(Package pkg, Enumeration enumeration)
           
 
Methods inherited from class org.plasma.text.lang3gl.java.SDODefaultFactory
createBaseDirectoryName, createDirectoryName, createPackageDeclaration, getImplementationClassName, toMethodFieldName, toQualifiedPropertyNameReference
 
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
 
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

SDOEnumerationFactory

public SDOEnumerationFactory(Lang3GLContext context)
Method Detail

createFileName

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

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

createContent

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

Specified by:
createContent in interface EnumerationFactory
Parameters:
pkg - the Package
enm - the Type
Returns:
the content

createTypeDeclaration

protected java.lang.String createTypeDeclaration(Package pkg,
                                                 Enumeration enumeration)

createConstructors

protected java.lang.String createConstructors(Package pkg,
                                              Enumeration enm)

createOperations

protected java.lang.String createOperations(Package pkg,
                                            Enumeration enm)

createOperations

protected java.lang.String createOperations(Package pkg,
                                            Enumeration enm,
                                            EnumerationLiteral lit)

createSDOInterfaceReferenceImportDeclarations

protected java.lang.String createSDOInterfaceReferenceImportDeclarations(Package pkg,
                                                                         Class clss)
Overrides:
createSDOInterfaceReferenceImportDeclarations in class SDODefaultFactory

createThirdPartyImportDeclarations

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

createStaticFieldDeclarations

protected java.lang.String createStaticFieldDeclarations(Enumeration enumeration)

createPrivateFieldDeclarations

protected java.lang.String createPrivateFieldDeclarations(Enumeration enm)


Copyright © 2013. All Rights Reserved.