Module org.apache.sis.metadata
Class DefaultAttributeGroup
Object
AbstractMetadata
ModifiableMetadata
ISOMetadata
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
XMLinstead.
- Since:
- 0.5
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class ModifiableMetadata
ModifiableMetadata.State -
Field Summary
Fields inherited from class ISOMetadata
identifiers -
Constructor Summary
ConstructorsConstructorDescriptionConstructs an initially empty attribute group.Constructs a new instance initialized with the values from the specified metadata object.DefaultAttributeGroup(CoverageContentType contentType, RangeDimension attribute) Constructs an attribute group initialized to the given values. -
Method Summary
Modifier and TypeMethodDescriptionReturns information on an attribute of the resource.Returns the types of information represented by the value(s).voidsetAttributes(Collection<? extends RangeDimension> newValues) Sets information on an attribute of the resource.voidsetContentTypes(Collection<? extends CoverageContentType> newValues) Sets the types of information represented by the value(s).Methods inherited from class ISOMetadata
getIdentifier, getIdentifierMap, getIdentifiers, getStandard, setIdentifier, transitionToMethods inherited from class ModifiableMetadata
checkWritePermission, collectionType, copyCollection, copyList, copyMap, copySet, deepCopy, nonNullCollection, nonNullList, nonNullMap, nonNullSet, singleton, state, writeCollection, writeList, writeMap, writeSetMethods inherited from class AbstractMetadata
asMap, asTreeTable, equals, equals, getInterface, hashCode, isEmpty, prune, toString
-
Constructor Details
-
DefaultAttributeGroup
public DefaultAttributeGroup()Constructs an initially empty attribute group. -
DefaultAttributeGroup
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, ornullif none.
-
-
Method Details
-
getContentTypes
@UML(identifier="contentType", obligation=MANDATORY, specification=ISO_19115) public Collection<CoverageContentType> getContentTypes()Returns the types of information represented by the value(s).- Returns:
- the types of information represented by the value(s).
-
setContentTypes
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<RangeDimension> getAttributes()Returns information on an attribute of the resource.- Returns:
- information on an attribute of the resource.
-
setAttributes
Sets information on an attribute of the resource.- Parameters:
newValues- the new attributes.
-