WarehousePOJOGenerator.java :  » ERP-CRM-Financial » OpenXava-3.0 » org » openxava » test » generators » Java Open Source

Java Open Source » ERP CRM Financial » OpenXava 3.0 
OpenXava 3.0 » org » openxava » test » generators » WarehousePOJOGenerator.java
package org.openxava.test.generators;

import java.io.*;

import org.openxava.generators.*;
import org.openxava.model.meta.*;
import org.openxava.util.*;


/**
 * @author Javier Paniza
 */
public class WarehousePOJOGenerator implements IPropertyCodeGenerator {
    
  private static String template;

  public void setMetaProperty(MetaProperty metaPropiedad) {    
  }

  public String generate() throws Exception {
    return getTemplate();
  }
  
  private String getTemplate() throws IOException {
    if (template == null) {
      template = Resources.loadAsString(WarehousePOJOGenerator.class, "org/openxava/test/generators/warehouse_pojo_property.template");  
    }
    return template;
  }

}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.