/** * add a value to the simpleField property collection * * @param simpleField * Objects of the following type are allowed in the list: {@link SimpleField} * @return * <tt>true</tt> (as general contract of <tt>Collection.add</tt>). */ public Schema addToSimpleField(final SimpleField simpleField) { this.getSimpleField().add(simpleField); return this; }
/** * add a value to the simpleField property collection * * @param simpleField * Objects of the following type are allowed in the list: {@link SimpleField} * @return * <tt>true</tt> (as general contract of <tt>Collection.add</tt>). */ public Schema addToSimpleField(final SimpleField simpleField) { this.getSimpleField().add(simpleField); return this; }
/** * Creates a new instance of {@link SimpleField} and adds it to simpleField. * This method is a short version for: * <code> * SimpleField simpleField = new SimpleField(); * this.getSimpleField().add(simpleField); </code> * * */ public SimpleField createAndAddSimpleField() { SimpleField newValue = new SimpleField(); this.getSimpleField().add(newValue); return newValue; }
/** * Creates a new instance of {@link SimpleField} and adds it to simpleField. * This method is a short version for: * <code> * SimpleField simpleField = new SimpleField(); * this.getSimpleField().add(simpleField); </code> * * */ public SimpleField createAndAddSimpleField() { SimpleField newValue = new SimpleField(); this.getSimpleField().add(newValue); return newValue; }
@Override public Schema clone() { Schema copy; try { copy = ((Schema) super.clone()); } catch (CloneNotSupportedException _x) { throw new InternalError((_x.toString())); } copy.simpleField = new ArrayList<SimpleField>((getSimpleField().size())); for (SimpleField iter: simpleField) { copy.simpleField.add(iter.clone()); } copy.schemaExtension = new ArrayList<Object>((getSchemaExtension().size())); for (Object iter: schemaExtension) { copy.schemaExtension.add(iter); } return copy; }
@Override public Schema clone() { Schema copy; try { copy = ((Schema) super.clone()); } catch (CloneNotSupportedException _x) { throw new InternalError((_x.toString())); } copy.simpleField = new ArrayList<SimpleField>((getSimpleField().size())); for (SimpleField iter: simpleField) { copy.simpleField.add(iter.clone()); } copy.schemaExtension = new ArrayList<Object>((getSchemaExtension().size())); for (Object iter: schemaExtension) { copy.schemaExtension.add(iter); } return copy; }