You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sis.apache.org by de...@apache.org on 2014/09/23 23:55:03 UTC
svn commit: r1627163 -
/sis/branches/JDK8/core/sis-metadata/src/main/java/org/apache/sis/metadata/iso/extent/DefaultExtent.java
Author: desruisseaux
Date: Tue Sep 23 21:55:02 2014
New Revision: 1627163
URL: http://svn.apache.org/r1627163
Log:
Reorder properties in the more common (x,y,z,t) order. No significant code change in this commit.
Modified:
sis/branches/JDK8/core/sis-metadata/src/main/java/org/apache/sis/metadata/iso/extent/DefaultExtent.java
Modified: sis/branches/JDK8/core/sis-metadata/src/main/java/org/apache/sis/metadata/iso/extent/DefaultExtent.java
URL: http://svn.apache.org/viewvc/sis/branches/JDK8/core/sis-metadata/src/main/java/org/apache/sis/metadata/iso/extent/DefaultExtent.java?rev=1627163&r1=1627162&r2=1627163&view=diff
==============================================================================
--- sis/branches/JDK8/core/sis-metadata/src/main/java/org/apache/sis/metadata/iso/extent/DefaultExtent.java [UTF-8] (original)
+++ sis/branches/JDK8/core/sis-metadata/src/main/java/org/apache/sis/metadata/iso/extent/DefaultExtent.java [UTF-8] Tue Sep 23 21:55:02 2014
@@ -87,19 +87,19 @@ public class DefaultExtent extends ISOMe
private InternationalString description;
/**
- * Provides geographic component of the extent of the referring object
+ * Provides geographic component of the extent of the referring object.
*/
private Collection<GeographicExtent> geographicElements;
/**
- * Provides temporal component of the extent of the referring object
+ * Provides vertical component of the extent of the referring object.
*/
- private Collection<TemporalExtent> temporalElements;
+ private Collection<VerticalExtent> verticalElements;
/**
- * Provides vertical component of the extent of the referring object
+ * Provides temporal component of the extent of the referring object.
*/
- private Collection<VerticalExtent> verticalElements;
+ private Collection<TemporalExtent> temporalElements;
/**
* Constructs an initially empty extent.
@@ -215,43 +215,43 @@ public class DefaultExtent extends ISOMe
}
/**
- * Provides temporal component of the extent of the referring object.
+ * Provides vertical component of the extent of the referring object.
*
- * @return The temporal extent, or an empty set if none.
+ * @return The vertical extent, or an empty set if none.
*/
@Override
- @XmlElement(name = "temporalElement")
- public Collection<TemporalExtent> getTemporalElements() {
- return temporalElements = nonNullCollection(temporalElements, TemporalExtent.class);
+ @XmlElement(name = "verticalElement")
+ public Collection<VerticalExtent> getVerticalElements() {
+ return verticalElements = nonNullCollection(verticalElements, VerticalExtent.class);
}
/**
- * Sets temporal component of the extent of the referring object.
+ * Sets vertical component of the extent of the referring object.
*
- * @param newValues The new temporal elements.
+ * @param newValues The new vertical elements.
*/
- public void setTemporalElements(final Collection<? extends TemporalExtent> newValues) {
- temporalElements = writeCollection(newValues, temporalElements, TemporalExtent.class);
+ public void setVerticalElements(final Collection<? extends VerticalExtent> newValues) {
+ verticalElements = writeCollection(newValues, verticalElements, VerticalExtent.class);
}
/**
- * Provides vertical component of the extent of the referring object.
+ * Provides temporal component of the extent of the referring object.
*
- * @return The vertical extent, or an empty set if none.
+ * @return The temporal extent, or an empty set if none.
*/
@Override
- @XmlElement(name = "verticalElement")
- public Collection<VerticalExtent> getVerticalElements() {
- return verticalElements = nonNullCollection(verticalElements, VerticalExtent.class);
+ @XmlElement(name = "temporalElement")
+ public Collection<TemporalExtent> getTemporalElements() {
+ return temporalElements = nonNullCollection(temporalElements, TemporalExtent.class);
}
/**
- * Sets vertical component of the extent of the referring object.
+ * Sets temporal component of the extent of the referring object.
*
- * @param newValues The new vertical elements.
+ * @param newValues The new temporal elements.
*/
- public void setVerticalElements(final Collection<? extends VerticalExtent> newValues) {
- verticalElements = writeCollection(newValues, verticalElements, VerticalExtent.class);
+ public void setTemporalElements(final Collection<? extends TemporalExtent> newValues) {
+ temporalElements = writeCollection(newValues, temporalElements, TemporalExtent.class);
}
/**