Examples of ExportAsAttribute


Examples of org.freeplane.plugin.workspace.io.annotation.ExportAsAttribute

    Object[] args = null;
    Object value;
    try {
      value = m.invoke(object, args);       
      if(value != null) {
        ExportAsAttribute annotation = m.getAnnotation(ExportAsAttribute.class);
        if(value instanceof Boolean && ((Boolean) value).booleanValue() == annotation.defaultBool()) {
          return;
        }
        String attrName = annotation.name();
        if(attrName.trim().length()==0) throw new IllegalArgumentException("value for annotation 'ExportAsAttribute' must not be empty!");
        writer.addAttribute(attrName.trim(), value.toString());
      }
    }
    catch (IllegalArgumentException e) {
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.