Package nsf.playground.extension.Endpoints

Examples of nsf.playground.extension.Endpoints.PropertyValues


  public void loadProperties(DominoDocument d, Category cat, String name) throws NotesException, IOException {
    if(cat==null) {
      return;
    }
    boolean isDefault = StringUtil.isEmpty(name) || StringUtil.equals(name, "0");
    PropertyValues pv = isDefault? null : cat.getPropertyValues(name);
    Property[] allp = cat.getProperties();
    for(int i=0; i<allp.length; i++) {
      Property p = allp[i];
      if(pv==null) {
        String v = p.getDefaultValue();
        d.replaceItemValue(p.getName(), v);
      } else {
        String v = pv.getValues()[i];
        d.replaceItemValue(p.getName(), v);
      }
    }
  }
View Full Code Here

TOP

Related Classes of nsf.playground.extension.Endpoints.PropertyValues

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.