Package org.objectweb.jorm.metainfo.api

Examples of org.objectweb.jorm.metainfo.api.ClassProject


                .getProjection().containsValue(te.getName());
    }


    private Mapping getMapping(Class clazz) throws SpeedoException {
        ClassProject cp = clazz.getClassProject(scp.projectName);
        if (cp == null) {
            throw new SpeedoException("No classproject found for the class "
                    + clazz.getFQName() + " and  the project " + scp.projectName);
        }
        int idx =  scp.mapperName.indexOf('.');
        Mapping m = cp.getMapping(idx == -1
                ? scp.mapperName
                : scp.mapperName.substring(0, idx));
        if (m == null) {
            throw new SpeedoException("No mapping found for the class "
                    + clazz.getFQName() + ",  the project " + scp.projectName
View Full Code Here


      clazz.addSuperClass(parentClazz);
    }
        sc.jormclass = clazz;
      sc.jormclass.setAbstract(sc.isAbstract);
        if (projectName != null && mapperName != null) {
            ClassProject cp = clazz.getClassProject(projectName);
            if (cp == null) {
                cp = clazz.createClassProject(projectName);
            }
            Mapping mapping = cp.getMapping(mapperName);
            if (mapping != null) {
                //If the mapping is already defined then that means the jorm meta
                // information has been already defined.
                // => no meta object has been added.
                return;
            }
            mapping = cp.createMapping(mapperName);
            mb.createClassMapping(clazz, sc, mapping);
        }
    }
View Full Code Here

    protected Mapping getMapping(Class clazz) throws SpeedoException {
        return getMapping(clazz, scp);
    }
 
    public static Mapping getMapping(Class clazz, SpeedoCompilerParameter scp) throws SpeedoException {
    ClassProject cp = clazz.getClassProject(scp.projectName);
    if (cp == null) {
      throw new SpeedoException("No classproject found for the class "
          + clazz.getFQName() + " and  the project " + scp.projectName);
    }
    int idx =  scp.mapperName.indexOf('.');
    Mapping m = cp.getMapping(idx == -1
        ? scp.mapperName
        : scp.mapperName.substring(0, idx));
    if (m == null) {
      throw new SpeedoException("No mapping found for the class "
          + clazz.getFQName() + ",  the project " + scp.projectName
View Full Code Here

TOP

Related Classes of org.objectweb.jorm.metainfo.api.ClassProject

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.