/** * add a value to the schema property collection * * @param schema * Objects of the following type are allowed in the list: {@link Schema} * @return * <tt>true</tt> (as general contract of <tt>Collection.add</tt>). */ public Document addToSchema(final Schema schema) { this.getSchema().add(schema); return this; }
/** * add a value to the schema property collection * * @param schema * Objects of the following type are allowed in the list: {@link Schema} * @return * <tt>true</tt> (as general contract of <tt>Collection.add</tt>). */ public Document addToSchema(final Schema schema) { this.getSchema().add(schema); return this; }
/** * Creates a new instance of {@link Schema} and adds it to schema. * This method is a short version for: * <code> * Schema schema = new Schema(); * this.getSchema().add(schema); </code> * * */ public Schema createAndAddSchema() { Schema newValue = new Schema(); this.getSchema().add(newValue); return newValue; }
/** * Creates a new instance of {@link Schema} and adds it to schema. * This method is a short version for: * <code> * Schema schema = new Schema(); * this.getSchema().add(schema); </code> * * */ public Schema createAndAddSchema() { Schema newValue = new Schema(); this.getSchema().add(newValue); return newValue; }
@Override public Document clone() { Document copy; copy = ((Document) super.clone()); copy.schema = new ArrayList<Schema>((getSchema().size())); for (Schema iter: schema) { copy.schema.add(iter.clone()); } copy.feature = new ArrayList<Feature>((getFeature().size())); for (Feature iter: feature) { copy.feature.add(iter.clone()); } copy.documentSimpleExtension = new ArrayList<Object>((getDocumentSimpleExtension().size())); for (Object iter: documentSimpleExtension) { copy.documentSimpleExtension.add(iter); } copy.documentObjectExtension = new ArrayList<AbstractObject>((getDocumentObjectExtension().size())); for (AbstractObject iter: documentObjectExtension) { copy.documentObjectExtension.add(iter.clone()); } return copy; }
@Override public Document clone() { Document copy; copy = ((Document) super.clone()); copy.schema = new ArrayList<Schema>((getSchema().size())); for (Schema iter: schema) { copy.schema.add(iter.clone()); } copy.feature = new ArrayList<Feature>((getFeature().size())); for (Feature iter: feature) { copy.feature.add(iter.clone()); } copy.documentSimpleExtension = new ArrayList<Object>((getDocumentSimpleExtension().size())); for (Object iter: documentSimpleExtension) { copy.documentSimpleExtension.add(iter); } copy.documentObjectExtension = new ArrayList<AbstractObject>((getDocumentObjectExtension().size())); for (AbstractObject iter: documentObjectExtension) { copy.documentObjectExtension.add(iter.clone()); } return copy; }