/** * add a value to the schemaExtension property collection * * @param schemaExtension * Objects of the following type are allowed in the list: {@code <}{@link SimpleArrayField}{@code>}{@link JAXBElement}{@code <}{@link Object}{@code>} * @return * <tt>true</tt> (as general contract of <tt>Collection.add</tt>). */ public Schema addToSchemaExtension(final Object schemaExtension) { this.getSchemaExtension().add(schemaExtension); return this; }
/** * add a value to the schemaExtension property collection * * @param schemaExtension * Objects of the following type are allowed in the list: {@code <}{@link SimpleArrayField}{@code>}{@link JAXBElement}{@code <}{@link Object}{@code>} * @return * <tt>true</tt> (as general contract of <tt>Collection.add</tt>). */ public Schema addToSchemaExtension(final Object schemaExtension) { this.getSchemaExtension().add(schemaExtension); return this; }
@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; }