/** * Creates a deep copy of the specified property list. * @param properties a property list * @throws ParseException where property data cannot be parsed * @throws IOException where property data cannot be read * @throws URISyntaxException where a property contains an invalid URI */ @SuppressWarnings("unchecked") public PropertyList(PropertyList<? extends T> properties) throws ParseException, IOException, URISyntaxException { super(); for ( T p: properties) { add((T)p.copy()); } }
/** * Creates a deep copy of the specified property list. * @param properties a property list * @throws ParseException where property data cannot be parsed * @throws IOException where property data cannot be read * @throws URISyntaxException where a property contains an invalid URI */ public PropertyList(PropertyList properties) throws ParseException, IOException, URISyntaxException { super(); for (Property p : properties) { add(p.copy()); } }
/** * Creates a deep copy of the specified property list. * @param properties a property list * @throws ParseException where property data cannot be parsed * @throws IOException where property data cannot be read * @throws URISyntaxException where a property contains an invalid URI */ @SuppressWarnings("unchecked") public PropertyList(PropertyList<? extends T> properties) throws ParseException, IOException, URISyntaxException { super(); for ( T p: properties) { add((T)p.copy()); } }
/** * Creates a deep copy of the specified property list. * @param properties a property list * @throws ParseException where property data cannot be parsed * @throws IOException where property data cannot be read * @throws URISyntaxException where a property contains an invalid URI */ @SuppressWarnings("unchecked") public PropertyList(PropertyList<? extends T> properties) throws ParseException, IOException, URISyntaxException { super(); for ( T p: properties) { add((T)p.copy()); } }
/** * Creates a deep copy of the specified property list. * @param properties a property list * @throws ParseException where property data cannot be parsed * @throws IOException where property data cannot be read * @throws URISyntaxException where a property contains an invalid URI */ public PropertyList(PropertyList properties) throws ParseException, IOException, URISyntaxException { super(); for (final Iterator i = properties.iterator(); i.hasNext();) { final Property p = (Property) i.next(); add(p.copy()); } }
/** * {@inheritDoc} */ public final Property copy() throws IOException, URISyntaxException, ParseException { final Property copy = super.copy(); ((DateListProperty) copy).timeZone = timeZone; ((DateListProperty) copy).setValue(getValue()); return copy; } }
/** * {@inheritDoc} */ public final Property copy() throws IOException, URISyntaxException, ParseException { final Property copy = super.copy(); ((DateListProperty) copy).timeZone = timeZone; ((DateListProperty) copy).setValue(getValue()); return copy; } }
/** * {@inheritDoc} */ public Property copy() throws IOException, URISyntaxException, ParseException { final Property copy = super.copy(); ((DateProperty) copy).timeZone = timeZone; ((DateProperty) copy).setValue(getValue()); return copy; } }
/** * {@inheritDoc} */ public final Property copy() throws IOException, URISyntaxException, ParseException { final Property copy = super.copy(); ((DateListProperty) copy).timeZone = timeZone; ((DateListProperty) copy).setValue(getValue()); return copy; } }
/** * {@inheritDoc} */ public Property copy() throws IOException, URISyntaxException, ParseException { final Property copy = super.copy(); ((DateProperty) copy).timeZone = timeZone; ((DateProperty) copy).setValue(getValue()); return copy; } }
/** * {@inheritDoc} */ public final Property copy() throws IOException, URISyntaxException, ParseException { final Property copy = super.copy(); ((DateListProperty) copy).timeZone = timeZone; ((DateListProperty) copy).setValue(getValue()); return copy; } }
/** * {@inheritDoc} */ public Property copy() throws IOException, URISyntaxException, ParseException { final Property copy = super.copy(); ((DateProperty) copy).timeZone = timeZone; ((DateProperty) copy).setValue(getValue()); return copy; } }
/** * {@inheritDoc} */ public Property copy() throws IOException, URISyntaxException, ParseException { final Property copy = super.copy(); ((DateProperty) copy).timeZone = timeZone; ((DateProperty) copy).setValue(getValue()); return copy; } }
/** * {@inheritDoc} */ public Property copy() throws IOException, URISyntaxException, ParseException { final Property copy = super.copy(); ((DateProperty) copy).timeZone = timeZone; ((DateProperty) copy).setValue(getValue()); return copy; } }
/** * Test deep copy of properties. */ public void testCopy() throws IOException, URISyntaxException, ParseException { Property copy = property.copy(); assertEquals(property, copy); copy.getParameters().add(Value.BOOLEAN); assertFalse(property.equals(copy)); assertFalse(copy.equals(property)); }