public class TypeEnumerationFactory extends DefaultFactory implements EnumerationFactory
context, FILE_SEP, LINE_SEP| Constructor and Description |
|---|
TypeEnumerationFactory(Lang3GLContext context) |
| Modifier and Type | Method and Description |
|---|---|
String |
createBaseDirectoryName(Package pkg)
Returns an 3Gl language specific base directory name for the given Package based on
configuration settings.
|
String |
createContent(Package pkg,
Enumeration type)
Returns an 3Gl language specific content for the given Package and Type
|
String |
createDirectoryName(Package pkg)
Returns an 3Gl language specific directory name for the given Package based on
configuration settings.
|
String |
createFileName(Enumeration clss)
Returns an 3Gl language specific file name for the given Enumeration based on
configuration settings.
|
Lang3GLContext |
getContext()
Returns the language context for this factory.
|
Class<?> |
getTypeClass(DataType dataType)
Returns a 3Gl language specific class name for the given SDO data-type (as
per the SDO Specification 2.10 Section 8.1) where primitive type names or
wrapper type names returned based on the current context.
|
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, getDataFlavor, getPrimitiveTypeDefault, getTypeClass, getTypeClassName, getTypeClassName, getWrappedDocmentations, hasOnlySingilarFields, hasOnlySingilarFieldsDeep, indent, newline, toConstantName, toEnumLiteralName, toMethodFieldNamepublic TypeEnumerationFactory(Lang3GLContext context)
public Lang3GLContext getContext()
Lang3GLContentFactorygetContext in interface Lang3GLContentFactorygetContext in class DefaultFactorypublic Class<?> getTypeClass(DataType dataType)
DefaultFactorygetTypeClass in interface Lang3GLContentFactorygetTypeClass in class DefaultFactorydataType - the SDO datatypeLang3GLModelContextpublic String createBaseDirectoryName(Package pkg)
Lang3GLContentFactorycreateBaseDirectoryName in interface Lang3GLContentFactorypkg - the packagePackagepublic String createDirectoryName(Package pkg)
Lang3GLContentFactorycreateDirectoryName in interface Lang3GLContentFactorypkg - the packagePackagepublic String createFileName(Enumeration clss)
EnumerationFactorycreateFileName in interface EnumerationFactoryclss - the EnumerationEnumerationpublic String createContent(Package pkg, Enumeration type)
EnumerationFactorycreateContent in interface EnumerationFactorypkg - the Packagetype - the TypeCopyright © 2017. All rights reserved.