Class DefaultMeasureReference
java.lang.Object
org.apache.sis.metadata.AbstractMetadata
org.apache.sis.metadata.ModifiableMetadata
org.apache.sis.metadata.iso.ISOMetadata
org.apache.sis.metadata.iso.quality.ISOMetadata
org.apache.sis.metadata.iso.quality.DefaultMeasureReference
- All Implemented Interfaces:
Serializable
,Emptiable
,LenientComparable
,IdentifiedObject
@UML(identifier="DQ_MeasureReference",
specification=UNSPECIFIED)
public class DefaultMeasureReference
extends ISOMetadata
Reference to the measure used.
Limitations
- Instances of this class are not synchronized for multi-threading. Synchronization, if needed, is caller's responsibility.
- Serialized objects of this class are not guaranteed to be compatible with future Apache SIS releases.
Serialization support is appropriate for short term storage or RMI between applications running the
same version of Apache SIS. For long term storage, use
XML
instead.
- Since:
- 1.3
- Version:
- 1.3
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.sis.metadata.ModifiableMetadata
ModifiableMetadata.State
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate org.opengis.util.InternationalString
Description of the measure.private org.opengis.metadata.Identifier
Value uniquely identifying the measure within a namespace.private Collection<org.opengis.util.InternationalString>
Name of the test applied to the data.private static final long
Serial number for inter-operability with different versions.Fields inherited from class org.apache.sis.metadata.iso.ISOMetadata
identifiers
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs an initially empty measure reference.Constructs a new instance initialized with the values from the specified metadata object. -
Method Summary
Modifier and TypeMethodDescriptionorg.opengis.util.InternationalString
Returns the description of the measure.org.opengis.metadata.Identifier
Returns a value uniquely identifying the measure within a namespace.Collection<org.opengis.util.InternationalString>
Returns the names of the test applied to the data.(package private) final boolean
setLegacy
(org.opengis.metadata.quality.Element element) Initializes a measure reference from the deprecated properties of the given element.void
setMeasureDescription
(org.opengis.util.InternationalString newValue) Sets the description of the measure.void
setMeasureIdentification
(org.opengis.metadata.Identifier newValue) Sets the identifier of the measure.void
setNamesOfMeasure
(Collection<? extends org.opengis.util.InternationalString> newValues) Sets the names of the test applied to the data.Methods inherited from class org.apache.sis.metadata.iso.quality.ISOMetadata
getStandard
Methods inherited from class org.apache.sis.metadata.iso.ISOMetadata
getIdentifier, getIdentifierMap, getIdentifiers, setIdentifier, transitionTo
Methods inherited from class org.apache.sis.metadata.ModifiableMetadata
checkWritePermission, collectionType, copyCollection, copyList, copyMap, copySet, deepCopy, nonNullCollection, nonNullList, nonNullMap, nonNullSet, singleton, state, writeCollection, writeList, writeMap, writeSet
Methods inherited from class org.apache.sis.metadata.AbstractMetadata
asMap, asTreeTable, equals, equals, getInterface, hashCode, isEmpty, prune, toString
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDSerial number for inter-operability with different versions.- See Also:
-
measureIdentification
private org.opengis.metadata.Identifier measureIdentificationValue uniquely identifying the measure within a namespace. -
namesOfMeasure
Name of the test applied to the data. -
measureDescription
private org.opengis.util.InternationalString measureDescriptionDescription of the measure.
-
-
Constructor Details
-
DefaultMeasureReference
public DefaultMeasureReference()Constructs an initially empty measure reference. -
DefaultMeasureReference
Constructs a new instance initialized with the values from the specified metadata object. This is a shallow copy constructor, because the other metadata contained in the given object are not recursively copied.- Parameters:
object
- the metadata to copy values from, ornull
if none.
-
-
Method Details
-
setLegacy
final boolean setLegacy(org.opengis.metadata.quality.Element element) Initializes a measure reference from the deprecated properties of the given element. This is used for transition from legacy ISO 19115 to newer ISO 19157 model. -
getMeasureIdentification
@UML(identifier="measureIdentification", obligation=OPTIONAL, specification=UNSPECIFIED) public org.opengis.metadata.Identifier getMeasureIdentification()Returns a value uniquely identifying the measure within a namespace.- Returns:
- code identifying a registered measure, or
null
if none.
-
setMeasureIdentification
public void setMeasureIdentification(org.opengis.metadata.Identifier newValue) Sets the identifier of the measure.- Parameters:
newValue
- the new measure identification.
-
getNamesOfMeasure
@UML(identifier="nameOfMeasure", obligation=CONDITIONAL, specification=UNSPECIFIED) public Collection<org.opengis.util.InternationalString> getNamesOfMeasure()Returns the names of the test applied to the data.- Returns:
- names of the test applied to the data.
-
setNamesOfMeasure
Sets the names of the test applied to the data.- Parameters:
newValues
- the new name of measures.
-
getMeasureDescription
@UML(identifier="measureDescription", obligation=OPTIONAL, specification=UNSPECIFIED) public org.opengis.util.InternationalString getMeasureDescription()Returns the description of the measure.- Returns:
- description of the measure, or
null
.
-
setMeasureDescription
public void setMeasureDescription(org.opengis.util.InternationalString newValue) Sets the description of the measure.- Parameters:
newValue
- the new measure description.
-