Package net.ftlines.metagen.processor.model

Examples of net.ftlines.metagen.processor.model.ElementExt


      return;
    }

    for (Element enclosed : type.getEnclosedElements())
    {
      ElementExt ext = ModelExt.of(enclosed);
      if (ext.isProperty() && ext.getVisibility() != Visibility.PRIVATE)
      {
        String name = ext.getPropertyName();
        Property property = bean.getProperties().get(name);
        if (property == null)
        {
          property = new Property(name);
          bean.getProperties().put(name, property);
        }
        if (ext.isGetter())
        {
          property.setGetter(enclosed);
        }
        else if (ext.isSetter())
        {
          property.setSetter(enclosed);
        }
        else
        {
          property.setField(enclosed);
        }
       
        if (ext.hasAnnotation(Deprecated.class.getName()))
        {
          property.setDeprecated(true);
        }
      }
    }
View Full Code Here


  public void resolveProperties(AbstractBean bean)
  {
    TypeElement type = bean.getElement();
    for (Element enclosed : type.getEnclosedElements())
    {
      ElementExt ext = ModelExt.of(enclosed);
      // TODO error if annotated and is not a property
      if (ext.isProperty() && ext.hasAnnotation(Constants.PROPERTY))
      {
        String name = ext.getPropertyName();
        Property property = bean.getProperties().get(name);
        if (property == null)
        {
          property = new Property(name);
          bean.getProperties().put(name, property);
        }
        if (ext.isGetter())
        {
          property.setGetter(enclosed);
        }
        else if (ext.isSetter())
        {
          property.setSetter(enclosed);
        }
        else
        {
View Full Code Here

      return;
    }

    for (Element enclosed : type.getEnclosedElements())
    {
      ElementExt ext = ModelExt.of(enclosed);
      if (ext.isProperty() && ext.getVisibility() != Visibility.PRIVATE)
      {
        String name = ext.getPropertyName();
        Property property = bean.getProperties().get(name);
        if (property == null)
        {
          property = new Property(name);
          bean.getProperties().put(name, property);
        }
        if (ext.isGetter())
        {
          property.setGetter(enclosed);
        }
        else if (ext.isSetter())
        {
          property.setSetter(enclosed);
        }
        else
        {
View Full Code Here

TOP

Related Classes of net.ftlines.metagen.processor.model.ElementExt

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.