Addition of a "name
" attribute with corresponding getter and setter methods.
There is no way to write this contribution differently if we follow the pattern used by all
other metadata properties: this is basically a copy-and-paste of any existing property with
only the attribute name changed, and the attribute name is enforced by the ISO 19115 standard.
Even the Javadoc is a copy from the GeoAPI interface.
The contribution in the equals
method disappears since that method has been
removed from Geotk (replaced by a mechanism based on Java reflection).
Command line:
svn diff --extensions "--unified --ignore-space-change --ignore-all-space --ignore-eol-style" -r24867:24990 https://svn.osgeo.org/geotools/trunk/modules/library/metadata/src/main/java/org/geotools/metadata/iso/citation/OnLineResourceImpl.java
Revision 24867 | Revision 24990 |
---|---|
*/ private URI linkage; /** * Creates an initially empty on line resource. */ |
*/
private URI linkage;
private String name;
/**
* Creates an initially empty on line resource.
*/ |
} /** * Returns the detailed text description of what the online resource is/does. * Returns {@code null} if none. */ |
} /** * Name of the online resource. Returns {@code null} if none. * * @since 2.4 */ public String getName() { return name; } /** * Set the name of the online resource. Returns {@code null} if none. * * @since 2.4 */ public synchronized void setName(final String newValue) { checkWritePermission(); name = newValue; } /** * Returns the detailed text description of what the online resource is/does. * Returns {@code null} if none. */ |
if (object!=null && object.getClass().equals(getClass())) { final OnLineResourceImpl that = (OnLineResourceImpl) object; return Utilities.equals(this.applicationProfile, that.applicationProfile) && Utilities.equals(this.description, that.description ) && Utilities.equals(this.function, that.function ) && Utilities.equals(this.linkage, that.linkage ); |
if (object!=null && object.getClass().equals(getClass())) {
final OnLineResourceImpl that = (OnLineResourceImpl) object;
return Utilities.equals(this.applicationProfile, that.applicationProfile) &&
Utilities.equals(this.name, that.name ) &&
Utilities.equals(this.description, that.description ) &&
Utilities.equals(this.function, that.function ) &&
Utilities.equals(this.linkage, that.linkage ); |