Package aQute.bnd.annotation.metatype.Meta

Examples of aQute.bnd.annotation.metatype.Meta.AD


      double min = Double.MIN_VALUE;
      boolean required = true;
      boolean multiple = Collection.class.isAssignableFrom(current
          .getReturnType()) || current.getReturnType().isArray();

      AD ad = current.getAnnotation(Meta.AD.class);

      if (ad != null) {
        if (checkNull(ad.name()) != null)
          name = ad.name();

        description = checkNull(ad.description());
        if (checkNull(ad.deflt()) != null)
          ;
        deflt = ad.deflt();

        if (checkNull(ad.max()) != null)
          max = Double.parseDouble(ad.max());
        if (checkNull(ad.min()) != null)
          min = Double.parseDouble(ad.min());

        required = ad.required();
      }
      Object value = current.invoke(target);

      Justif justif = new Justif();
      justif.formatter().format("%-3s: %s (%s): ", n, name,
View Full Code Here

TOP

Related Classes of aQute.bnd.annotation.metatype.Meta.AD

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.