Package de.hybris.yfaces.doclet

Examples of de.hybris.yfaces.doclet.YCmpXsdElement$YCmpXsdAttribute


  public void processClass(final ClassDoc clazz)
  {
    final String name = clazz.qualifiedName();

    //lookup for a YComponent under current class
    final YCmpXsdElement xcmp = componentMap.get(name);

    //when component is available...
    if (xcmp != null)
    {
      xcmp.setComment(clazz.commentText());
      for (MethodDoc md : clazz.methods())
      {
        if (md.name().startsWith("set"))
        {
          String property = md.name().substring(3).toLowerCase();

          YCmpXsdAttribute xsdprop = xcmp.getAttribute(property);
          if (xsdprop != null)
          {
            String descr = md.commentText();
            xsdprop.setDescription(descr);
            xsdprop.setType(md.signature().substring(1, md.signature().length() - 1));
View Full Code Here


        final URL url = _file.toURL();
        final Matcher m = pattern.matcher(url.toExternalForm());
        if (m.matches())
        {
          final YComponentInfo cmp = new YComponentInfo(url);
          this.componentMap.put(cmp.getSpecificationClassName(), new YCmpXsdElement(cmp));
        }
      }
    }
    catch (Exception e)
    {
View Full Code Here

TOP

Related Classes of de.hybris.yfaces.doclet.YCmpXsdElement$YCmpXsdAttribute

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.