Package net.sf.minuteProject.configuration.bean.system

Examples of net.sf.minuteProject.configuration.bean.system.Property


    return key + template.getName() +"."+template.getFileExtension();
  }

  private static String getKeyPrefix(Template template) {
    StringBuffer sb = new StringBuffer();
    Property property = template.getPropertyByName("key");
    for (String chunk : ParserUtils.getList(property.getValue())) {
      sb.append(chunk + "_");
    }
    return sb.toString();
  }
View Full Code Here


    int size = properties.size();
    int i = 0;
    while (st.hasMoreElements()) {
      if (i < size) {
        String token = st.nextToken();
        Property prop = properties.get(i);
        Property property = new Property();
        property.setName(prop.getName());
        property.setValue(token);
        line.addProperty(property);
        i++;
      }
    }
    return line;
View Full Code Here

  private List<Property> getProperties(String definition, String separator) {
    List<Property> properties = new ArrayList<Property>();
    StringTokenizer st = new StringTokenizer(definition, separator);
    while (st.hasMoreElements()) {
      String token = st.nextToken();
      Property property = new Property();
      property.setName(token);
      properties.add(property);
    }
    return properties;
  }
View Full Code Here

  }

  public static String getGenerateBasedOnTagAlias(Template template,
      GeneratorBean bean) {
    // TODO Auto-generated method stub
    Property p =getPropertyGenerateBasedOnTag(template, bean);
    if (p!=null) {
      return p.getAlias();
    }     
    return null;
  }
View Full Code Here

  public static Property getCheckConstraintProperty (Column column) {
    return column.getPropertyByTag(CHECK_CONSTRAINT_PROPERTY_TAG);
  }

  public static List<Property> getCheckConstraintValues (Column column) {
    Property checkConstraint = getCheckConstraintProperty(column);
    if (checkConstraint!=null)
      return checkConstraint.getProperties();
    return null;
  }
View Full Code Here

  public static boolean hasTag(String tag, Template template) {
    return template.getPropertyByTag(tag)!=null;   
  }
 
  public static boolean hasTagValue(String tag, String value, Template template) {
    Property property = template.getPropertyByTag(tag);
    if (property!=null)
       return value.equals(property.getValue());
    return false;
  }
View Full Code Here

TOP

Related Classes of net.sf.minuteProject.configuration.bean.system.Property

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.