Package net.ftlines.metagen.processor.tree

Examples of net.ftlines.metagen.processor.tree.Property


    {
      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


      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
        {
          property.setField(enclosed);
        }

        // force visibility
        property.setVisibility(Visibility.of(enclosed));
      }
    }
  }
View Full Code Here

    {
      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);
        }

        // jpa properties are always public
        property.setVisibility(Visibility.PUBLIC);
      }
    }
  }
View Full Code Here

TOP

Related Classes of net.ftlines.metagen.processor.tree.Property

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.