Package org.geotools.metadata.iso
Class MetadataEntity
- Object
-
- AbstractMetadata
-
- ModifiableMetadata
-
- MetadataEntity
-
- All Implemented Interfaces:
Serializable,Cloneable
- Direct Known Subclasses:
AddressImpl,CitationImpl,ConformanceResultImpl,ContactImpl,ElementImpl,ExtentImpl,GeographicExtentImpl,IdentifierImpl,OnLineResourceImpl,QuantitativeResultImpl,ResponsiblePartyImpl,ResultImpl,TelephoneImpl,TemporalExtentImpl
public class MetadataEntity extends ModifiableMetadata implements Serializable
A superclass for implementing ISO 19115 metadata interfaces. Subclasses must implement at least one of the ISO MetaData interface provided by GeoAPI.- Since:
- 2.1
- Author:
- Jody Garnett, Martin Desruisseaux
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class AbstractMetadata
LOGGER
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedMetadataEntity()Constructs an initially empty metadata entity.protectedMetadataEntity(Object source)Constructs a metadata entity initialized with the values from the specified metadata.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static voidensureNonNull(String name, Object object)Makes sure that an argument is non-null.MetadataStandardgetStandard()Returns the metadata standard implemented by subclasses, which is ISO 19115.-
Methods inherited from class ModifiableMetadata
checkWritePermission, clone, copyCollection, copyList, freeze, isModifiable, nonNullCollection, nonNullList, nonNullSet, unmodifiable
-
Methods inherited from class AbstractMetadata
asMap, asTree, equals, getInterface, hashCode, toString
-
-
-
-
Constructor Detail
-
MetadataEntity
protected MetadataEntity()
Constructs an initially empty metadata entity.
-
MetadataEntity
protected MetadataEntity(Object source) throws ClassCastException
Constructs a metadata entity initialized with the values from the specified metadata. Thesourcemetadata must implements the same metadata interface than this class.- Parameters:
source- The metadata to copy values from.- Throws:
ClassCastException- if the specified metadata don't implements the expected metadata interface.- Since:
- 2.4
-
-
Method Detail
-
getStandard
public MetadataStandard getStandard()
Returns the metadata standard implemented by subclasses, which is ISO 19115.- Specified by:
getStandardin classAbstractMetadata- Returns:
- The metadata standard implemented.
- Since:
- 2.4
-
ensureNonNull
protected static void ensureNonNull(String name, Object object) throws InvalidMetadataException
Makes sure that an argument is non-null. This is used for checking if a mandatory attribute is presents.- Parameters:
name- Argument name.object- User argument.- Throws:
InvalidMetadataException- ifobjectis null.- Since:
- 2.4
-
-