Package org.kie.workbench.common.screens.datamodeller.model

Examples of org.kie.workbench.common.screens.datamodeller.model.AnnotationDefinitionTO


            FactModels factModels = ( (FactModels) jcrAsset.getContent() );
            DataModelTO dataModelTO = new DataModelTO();

            String packageName = getPackageName( jcrModule );
            packageName = migrationPathManager.normalizePackageName( packageName );
            AnnotationDefinitionTO positionAnnotationDef = getPositionAnnotationDefinition();

            for ( FactMetaModel factMetaModel : factModels.models ) {
                DataObjectTO dataObjectTO = createDataObject( packageName, factMetaModel.getName(), factMetaModel.getSuperType() );
                List<AnnotationMetaModel> annotationMetaModel = factMetaModel.getAnnotations();
                addAnnotations( dataObjectTO, annotationMetaModel );
View Full Code Here


        return path;
    }

    private AnnotationDefinitionTO getPositionAnnotationDefinition() {
        AnnotationDefinition positionAnnotationDef = PositionAnnotationDefinition.getInstance();
        AnnotationDefinitionTO positionAnnotationDefTO = new AnnotationDefinitionTO( positionAnnotationDef.getName(), positionAnnotationDef.getClassName(), positionAnnotationDef.getShortDescription(), positionAnnotationDef.getDescription(), positionAnnotationDef.isObjectAnnotation(), positionAnnotationDef.isPropertyAnnotation() );
        AnnotationMemberDefinitionTO memberDefinitionTO;
        for ( AnnotationMemberDefinition memberDefinition : positionAnnotationDef.getAnnotationMembers() ) {
            memberDefinitionTO = new AnnotationMemberDefinitionTO( memberDefinition.getName(), memberDefinition.getClassName(), memberDefinition.isPrimitiveType(), memberDefinition.isEnum(), memberDefinition.defaultValue(), memberDefinition.getShortDescription(), memberDefinition.getDescription() );
            positionAnnotationDefTO.addMember( memberDefinitionTO );
        }
        return positionAnnotationDefTO;
    }
View Full Code Here

TOP

Related Classes of org.kie.workbench.common.screens.datamodeller.model.AnnotationDefinitionTO

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.