Class DefaultAttributeGroup
java.lang.Object
org.apache.sis.metadata.AbstractMetadata
org.apache.sis.metadata.ModifiableMetadata
org.apache.sis.metadata.iso.ISOMetadata
org.apache.sis.metadata.iso.content.DefaultAttributeGroup
- All Implemented Interfaces:
Serializable
,Emptiable
,LenientComparable
,IdentifiedObject
@UML(identifier="MD_AttributeGroup",
specification=ISO_19115)
public class DefaultAttributeGroup
extends ISOMetadata
Information about content type for groups of attributes for a specific
range dimension.
The following property is mandatory in a well-formed metadata according ISO 19115:
MD_AttributeGroup
└─contentType……
Content typeNote on International Standard versions
This class is derived from a new type defined in the ISO 19115 international standard published in 2014, while GeoAPI 3.0 is based on the version published in 2003. Consequently this implementation class does not yet implement a GeoAPI interface, but is expected to do so after the next GeoAPI releases. When the interface will become available, all references to this implementation class in Apache SIS will be replaced be references to the
This class is derived from a new type defined in the ISO 19115 international standard published in 2014, while GeoAPI 3.0 is based on the version published in 2003. Consequently this implementation class does not yet implement a GeoAPI interface, but is expected to do so after the next GeoAPI releases. When the interface will become available, all references to this implementation class in Apache SIS will be replaced be references to the
AttributeGroup
interface.
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:
- 0.5
- Version:
- 1.0
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.sis.metadata.ModifiableMetadata
ModifiableMetadata.State
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Collection<org.opengis.metadata.content.RangeDimension>
Content type for attributes groups for aRangeDimension
.private Collection<org.opengis.metadata.content.CoverageContentType>
Type of information represented by the value(s).private static final long
Serial number for compatibility with different versions.Fields inherited from class org.apache.sis.metadata.iso.ISOMetadata
identifiers
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs an initially empty attribute group.Constructs a new instance initialized with the values from the specified metadata object.DefaultAttributeGroup
(org.opengis.metadata.content.CoverageContentType contentType, org.opengis.metadata.content.RangeDimension attribute) Constructs an attribute group initialized to the given values. -
Method Summary
Modifier and TypeMethodDescriptionCollection<org.opengis.metadata.content.RangeDimension>
Returns information on an attribute of the resource.Collection<org.opengis.metadata.content.CoverageContentType>
Returns the types of information represented by the value(s).void
setAttributes
(Collection<? extends org.opengis.metadata.content.RangeDimension> newValues) Sets information on an attribute of the resource.void
setContentTypes
(Collection<? extends org.opengis.metadata.content.CoverageContentType> newValues) Sets the types of information represented by the value(s).Methods inherited from class org.apache.sis.metadata.iso.ISOMetadata
getIdentifier, getIdentifierMap, getIdentifiers, getStandard, 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 compatibility with different versions.- See Also:
-
contentTypes
Type of information represented by the value(s). -
attributes
Content type for attributes groups for aRangeDimension
.
-
-
Constructor Details
-
DefaultAttributeGroup
public DefaultAttributeGroup()Constructs an initially empty attribute group. -
DefaultAttributeGroup
public DefaultAttributeGroup(org.opengis.metadata.content.CoverageContentType contentType, org.opengis.metadata.content.RangeDimension attribute) Constructs an attribute group initialized to the given values.- Parameters:
contentType
- type of information represented by the value, ornull
.attribute
- the attribute, ornull
.
-
DefaultAttributeGroup
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
-
getContentTypes
@UML(identifier="contentType", obligation=MANDATORY, specification=ISO_19115) public Collection<org.opengis.metadata.content.CoverageContentType> getContentTypes()Returns the types of information represented by the value(s).- Returns:
- the types of information represented by the value(s).
-
setContentTypes
public void setContentTypes(Collection<? extends org.opengis.metadata.content.CoverageContentType> newValues) Sets the types of information represented by the value(s).- Parameters:
newValues
- the new types of information.
-
getAttributes
@UML(identifier="attribute", obligation=OPTIONAL, specification=ISO_19115) public Collection<org.opengis.metadata.content.RangeDimension> getAttributes()Returns information on an attribute of the resource.- Returns:
- information on an attribute of the resource.
-
setAttributes
public void setAttributes(Collection<? extends org.opengis.metadata.content.RangeDimension> newValues) Sets information on an attribute of the resource.- Parameters:
newValues
- the new attributes.
-