private Property createPropertyImpl(CPropertyInfo p, QName tagName) { return new PropertyImpl(this, parent.outline.getField(p), tagName); } }
private Property createPropertyImpl(CPropertyInfo p, QName tagName) { return new PropertyImpl(this, parent.outline.getField(p),tagName); } }
private Property createPropertyImpl(CPropertyInfo p, QName tagName) { return new PropertyImpl(this, parent.outline.getField(p), tagName); } }
private Property createPropertyImpl(CPropertyInfo p, QName tagName) { return new PropertyImpl(this, parent.outline.getField(p),tagName); } }
private Property createPropertyImpl(CPropertyInfo p, QName tagName) { return new PropertyImpl(this, parent.outline.getField(p), tagName); } }
/** * Gets all the {@link FieldOutline}s newly declared * in this class. */ public final FieldOutline[] getDeclaredFields() { List<CPropertyInfo> props = target.getProperties(); FieldOutline[] fr = new FieldOutline[props.size()]; for( int i=0; i<fr.length; i++ ) fr[i] = parent().getField(props.get(i)); return fr; }
/** * Gets all the {@link FieldOutline}s newly declared * in this class. */ public final FieldOutline[] getDeclaredFields() { List<CPropertyInfo> props = target.getProperties(); FieldOutline[] fr = new FieldOutline[props.size()]; for( int i=0; i<fr.length; i++ ) fr[i] = parent().getField(props.get(i)); return fr; }
/** * Gets all the {@link FieldOutline}s newly declared * in this class. */ public final FieldOutline[] getDeclaredFields() { List<CPropertyInfo> props = target.getProperties(); FieldOutline[] fr = new FieldOutline[props.size()]; for( int i=0; i<fr.length; i++ ) fr[i] = parent().getField(props.get(i)); return fr; }
/** * Gets all the {@link FieldOutline}s newly declared * in this class. */ public final FieldOutline[] getDeclaredFields() { List<CPropertyInfo> props = target.getProperties(); FieldOutline[] fr = new FieldOutline[props.size()]; for( int i=0; i<fr.length; i++ ) fr[i] = parent().getField(props.get(i)); return fr; }
/** * Gets all the {@link FieldOutline}s newly declared * in this class. */ public final FieldOutline[] getDeclaredFields() { List<CPropertyInfo> props = target.getProperties(); FieldOutline[] fr = new FieldOutline[props.size()]; for( int i=0; i<fr.length; i++ ) fr[i] = parent().getField(props.get(i)); return fr; }
public MPropertyOutline generate(MClassOutline classOutline, MModelInfo<NType, NClass> modelInfo, MPropertyInfo<NType, NClass> propertyInfo) { final FieldOutline fieldOutline = outline.getField(this.propertyInfo); final MPropertyAccessorFactory propertyAccessorFactory = new CMPropertyAccessorFactory( this.fieldAccessorFactory, fieldOutline); return new CMPropertyOutline(classOutline, propertyInfo, propertyAccessorFactory); }
private void processAttribute(CValuePropertyInfo property, ClassOutline clase, Outline model) { FieldOutline field = model.getField(property); String propertyName = property.getName(false); String className = clase.implClass.name(); log("Attribute " + propertyName + " added to class " + className); XSComponent definition = property.getSchemaComponent(); RestrictionSimpleTypeImpl particle = (RestrictionSimpleTypeImpl) definition; XSSimpleType type = particle.asSimpleType(); JFieldVar var = clase.implClass.fields().get(propertyName); // if (particle.isRequired()) { // if (!hasAnnotation(var, NotNull.class)) { // if (notNullAnnotations) { // System.out.println("@NotNull: " + propertyName + " added to class " + className); // var.annotate(NotNull.class); // } // } // } validAnnotation(type, var, propertyName, className); processType(type, var, propertyName, className); }
/** * XS:Attribute */ public void processAttribute(CAttributePropertyInfo property, ClassOutline clase, Outline model) { FieldOutline field = model.getField(property); String propertyName = property.getName(false); String className = clase.implClass.name(); log("Attribute " + propertyName + " added to class " + className); XSComponent definition = property.getSchemaComponent(); AttributeUseImpl particle = (AttributeUseImpl) definition; XSSimpleType type = particle.getDecl().getType(); JFieldVar var = clase.implClass.fields().get(propertyName); if (particle.isRequired()) { if (!hasAnnotation(var, NotNull.class)) { processNotNull(clase, var); } } validAnnotation(type, var, propertyName, className); processType(type, var, propertyName, className); }
if (outline.getField(propertyInfo) == null) { generateFieldDecl(outline, (ClassOutlineImpl) classOutline, propertyInfo);
if (outline.getField(propertyInfo) == null) { generateFieldDecl(outline, (ClassOutlineImpl) classOutline, propertyInfo);