Package com.sun.tools.xjc.outline

Examples of com.sun.tools.xjc.outline.FieldOutline


    }

    private JMethod getGetter( final ClassOutline c, final String fieldName )
    {
        JMethod getter = null;
        FieldOutline field = null;

        final char[] chars = c.parent().getModel().getNameConverter().toPropertyName( fieldName ).toCharArray();
        chars[0] = Character.toUpperCase( chars[0] );
        String publicName = String.valueOf( chars );

        for ( FieldOutline f : c.getDeclaredFields() )
        {
            if ( f.getPropertyInfo().getName( false ).equals( fieldName ) )
            {
                field = f;
                break;
            }
        }

        if ( field != null )
        {
            publicName = field.getPropertyInfo().getName( true );
        }

        getter = c.implClass.getMethod( "get" + publicName, NO_JTYPES );

        if ( getter == null )
View Full Code Here


                    continue;
                }

                fieldName = camelize(fieldName);

                FieldOutline fo = outline.getField(field);
                FieldAccessor accessor = fo.create(JExpr._this());

                // declare a parameter on this factory method and set
                // it to the field
                inv.arg(m.param( fo.getRawType(), fieldName ));

                JVar $var = c.param( fo.getRawType(), fieldName );
                accessor.fromRawValue(c.body(),'_'+fieldName,$var);
            }
        }
    }
View Full Code Here

        FieldRenderer fr = prop.realization;
        if(fr==null)
            // none is specified. use the default factory
            fr = model.options.getFieldRendererFactory().getDefault();

        FieldOutline field = fr.generate(cc, prop);
        fields.put(prop,field);      
  
        return field;
    }
View Full Code Here

        FieldRenderer fr = prop.realization;
        if(fr==null)
            // none is specified. use the default factory
            fr = model.options.getFieldRendererFactory().getDefault();

        FieldOutline field = fr.generate(cc,prop);
        fields.put(prop,field);
      
  
        return field;
    }
View Full Code Here

        if (fr == null) // none is specified. use the default factory
        {
            fr = model.options.getFieldRendererFactory().getDefault();
        }

        FieldOutline field = fr.generate(cc, prop);
        fields.put(prop, field);

        return field;
    }
View Full Code Here

        if (fr == null) // none is specified. use the default factory
        {
            fr = model.options.getFieldRendererFactory().getDefault();
        }

        FieldOutline field = fr.generate(cc, prop);
        fields.put(prop, field);

        return field;
    }
View Full Code Here

                    continue;
                }

                fieldName = camelize(fieldName);

                FieldOutline fo = outline.getField(field);
                FieldAccessor accessor = fo.create(JExpr._this());

                // declare a parameter on this factory method and set
                // it to the field
                inv.arg(m.param( fo.getRawType(), fieldName ));

                JVar $var = c.param( fo.getRawType(), fieldName );
                accessor.fromRawValue(c.body(),'_'+fieldName,$var);
            }
        }
    }
View Full Code Here

TOP

Related Classes of com.sun.tools.xjc.outline.FieldOutline

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.