Examples of PojoModel


Examples of de.mhus.lib.pojo.PojoModel

    setPojo(pojo);
  }

  @Override
  public void doBuild() throws Exception {
    PojoModel pojoModel = new PojoParser().parse(pojo).filter(new DefaultFilter()).getModel();
    PackagingDataSource ds = new PackagingDataSource();
    ds.setDefaultSource(new MemoryDataSource());
    ds.addPackage(DataSource.PACKAGE_PERSISTENT, new PojoDataSource(pojo, pojoModel));
    setDataSource(ds);
   
    if (root == null) {
      // looking for models
      for (String actionName : pojoModel.getActionNames()) {
        PojoAction action = pojoModel.getAction(actionName);
        if (action.getAnnotation(ALayoutModel.class) != null) {
          if (((ALayoutModel)action.getAnnotation(ALayoutModel.class)).value().equals(modelName) && action.getReturnType().equals(DefRoot.class)) {
            setDefinition( ((DefRoot) action.doExecute(pojo)) );
          } else
          if (((ALayoutModel)action.getAnnotation(ALayoutModel.class)).value().equals(modelName) && action.getReturnType() == MNls.class) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.