public class SubjectAreaOmrsBeanGenerator extends Object
| Constructor and Description |
|---|
SubjectAreaOmrsBeanGenerator(OmrsBeanModel omrsBeanModel) |
| Modifier and Type | Method and Description |
|---|---|
static void |
generate(String[] args)
This generation creates 8 types of files:
|
static void |
main(String[] args)
this can be run as a java app during development or as part of the maven build
|
public static final String OPEN_METADATA_IMPLEMENTATION
public static final String SUBJECTAREA_OMAS_SERVER
public static final String SUBJECTAREA_OMAS_API
public static final String GENERATOR
public static final String CLASSIFICATIONS
public static final String RELATIONSHIPS
public static final String REFERENCES
public static final String ENTITIES
public static final String ENUMS
public static final String GENERATION_CLASSIFICATION_FACTORY_CLASS_NAME
public static final String GENERATION_OMRS_RELATIONSHIP_TO_LINES_CLASS_NAME
public static final String TEMPLATES_FOLDER
public static final String SRC_SUBJECT_AREA
public static final String GENERATION_FOLDER
public static final String GENERATION_REST_FOLDER
public static final String GENERATION_REST_TEST_FOLDER
public static final String GENERATION_REST_CLASS_NAME
public static final String GENERATION_REST_FILE
public static final String GENERATION_REST_TEST_FILE
public static final String GENERATION_REFERENCES_FOLDER
public static final String GENERATION_ENTITIES_FOLDER
public static final String GENERATION_ENUMS_FOLDER
public static final String GENERATION_CLASSIFICATIONS_FOLDER
public static final String SUBJECTAREA_OMAS_API_CLASSIFICATION_FOLDER
public static final String SUBJECTAREA_OMAS_API_ENUM_FOLDER
public static final String GENERATION_RELATIONSHIPS_FOLDER
public static final String GENERATION_CLASSIFICATION_FACTORY_FILE_NAME
public static final String GENERATION_OMRS_RELATIONSHIP_TO_LINES_FILE_NAME
public static final String OMAS_REFERENCE_TEMPLATE
public static final String OMAS_ENTITY_TEMPLATE
public static final String OMAS_CLASSIFICATION_TEMPLATE
public static final String OMAS_RELATIONSHIP_MAPPER_TEMPLATE
public static final String OMAS_RELATIONSHIP_TEMPLATE
public static final String OMAS_ENUM_TEMPLATE
public static final String OMAS_RELATIONSHIP_TO_LINES_TEMPLATE
public static final String OMAS_ENTITY_MAPPER_TEMPLATE
public static final String OMAS_CLASSIFICATION_MAPPER_TEMPLATE
public static final String OMAS_TOP_REFERENCE_TEMPLATE
public static final String OMRS_BEANS_TEMPLATE
public static final String OMRS_BEANS_TEST_TEMPLATE
public static final String OMAS_CLASSIFICATION_FACTORY_TEMPLATE
public SubjectAreaOmrsBeanGenerator(OmrsBeanModel omrsBeanModel)
public static void main(String[] args) throws IOException
args - IOExceptionpublic static void generate(String[] args) throws IOException
All the files are under the generation folder in SubjectAreaOmas Under the generation folder there are sub folders for different resources. The omrs bean accessor is generated in the web app project.
- a reference java file - lives in a references sub folder named sourceTotarget type. for example generation.references.TermToGlossary.AnchorReference. - an attribute java file - lives in an entities subfolder named with the entity Name. The file is called entityName Attributes. for example generation.entities.Asset.AssetAttribute - an entity java file - lives lives in an entities subfolder named with the entity Name. The file is called entityName. for example generation.entities.Asset.Asset The entity file contains the core and identifiable attributes, a member of type attribute java class and a member of type top reference class - a topreference java file contains members for each of the java reference type. for example generation.entities.Asset.AssetReferences - a enum java file to hold enums - classifications files - relationships files - beans access file
args - IOExceptionCopyright © 2018 ODPi. All rights reserved.