Package ddf.catalog.data
Interface Metacard
- All Superinterfaces:
Serializable
A
The
Metacard is a container for Metadata.
It is modeled after the OGC SimpleFeature and does two additional things:
-
Represents a resource.
Contains or can be represented as XML metadata.
The
Metacard can include key/value-style Attributes, and includes several
standard properties: id, title, document, location, source name, dates(created, modified,
effective, expiration), and thumbnail.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringAttribute name for querying all dates of all temporal properties of aMetacard.static final StringAttribute name for querying all geometries of all geometric properties of aMetacardUsed in Queries onlystatic final StringAttribute name for querying all text of all textual properties of aMetacard.static final StringAttributechecksum value for theRESOURCE_URIstatic final StringAttributealgorithm used to calculate the checksum on theRESOURCE_URIfor local resourcesstatic final StringAttribute name for querying the metadata content type of aMetacard.static final StringAttribute name for querying the version of the metadata content type of aMetacard.static final Stringstatic final StringThe default tag type for all metacardsstatic final Stringstatic final Stringstatic final StringAttributethat provides URIs for derived formats of the Metacard.RESOURCE_URIstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringDeprecated.Not to be used anymore, replaced with SECURITY attribute.static final StringDeprecated.Not to be used anymore, replaced with SECURITY attribute.static final StringDeprecated.static final Stringstatic final StringAttribute name for querying the target namespace of the metadata content type of aMetacard.static final Stringstatic final String -
Method Summary
Modifier and TypeMethodDescriptiongetAttribute(String name) ReturnsAttributefor given attribute name.Returns the name of the content type of theMetacard.Some types of metadata use different content types.Returns the version of the content type of theMetacard.Returns the date/time thisMetacardwas created.Returns the date/time thisMetacardwas last known to be valid.Returns the date/time thisMetacardis no longer valid and could be removed.getId()Returns the ID of thisMetacard.Returns the WKT representation of the geometry.Return theMetacardTypeof thisMetacard.Returns the metadata associated with thisMetacard.Returns the date/time thisMetacardwas last modifed.This is the size of the resource which may or may not contain a unit.Returns the source ID of the source the metacard is located.getTags()Returns the tags associated with this metacard.byte[]Returns the thumbnail associated with thisMetacard.getTitle()Returns the title of thisMetacard.voidsetAttribute(Attribute attribute) SetsAttributewith new attribute.voidsetSourceId(String sourceId) Sets the source ID of the source the metacard is located.
-
Field Details
-
ANY_TEXT
Attribute name for querying all text of all textual properties of aMetacard. Used in Queries only- See Also:
-
ANY_GEO
Attribute name for querying all geometries of all geometric properties of aMetacardUsed in Queries only- See Also:
-
ANY_DATE
Attribute name for querying all dates of all temporal properties of aMetacard. Used in Queries only- See Also:
-
SOURCE_ID
Deprecated.Attribute name for the ID of the source where theMetacardis cataloged.- See Also:
-
CONTENT_TYPE
Attribute name for querying the metadata content type of aMetacard.- See Also:
-
CONTENT_TYPE_VERSION
Attribute name for querying the version of the metadata content type of aMetacard.- See Also:
-
TARGET_NAMESPACE
Attribute name for querying the target namespace of the metadata content type of aMetacard.- See Also:
-
ID
Attributename for accessing the ID of theMetacard.
EverySourceis required to return this attribute.- See Also:
-
TAGS
- See Also:
-
TITLE
- See Also:
-
METADATA
- See Also:
-
GEOGRAPHY
- See Also:
-
CREATED
- See Also:
-
MODIFIED
- See Also:
-
EXPIRATION
- See Also:
-
EFFECTIVE
- See Also:
-
POINT_OF_CONTACT
- See Also:
-
RESOURCE_URI
- See Also:
-
RESOURCE_DOWNLOAD_URL
- See Also:
-
RESOURCE_SIZE
- See Also:
-
THUMBNAIL
Attributename for accessing the thumbnail image of the product thisMetacardrepresents. The thumbnail must be of MIME Typeimage/jpegand 128 kilobytes or less.- See Also:
-
SECURITY_MATCH_ALL
Deprecated.Not to be used anymore, replaced with SECURITY attribute.Attributename for accessing the security relevant markings on the product that thisMetacardrepresents.- See Also:
-
SECURITY_MATCH_ONE
Deprecated.Not to be used anymore, replaced with SECURITY attribute.Attributename for accessing the security relevant markings on the product that thisMetacardrepresents.- See Also:
-
SECURITY
Attributename for accessing the security relevant markings on the product that thisMetacardrepresents.- Since:
- DDF-2.2.0.RC1
- See Also:
-
DESCRIPTION
- Since:
- DDF-2.8.0
- See Also:
-
DEFAULT_TAG
The default tag type for all metacards- See Also:
-
CHECKSUM_ALGORITHM
Attributealgorithm used to calculate the checksum on theRESOURCE_URIfor local resources- Since:
- DDF-2.9.0
- See Also:
-
RELATED
- Since:
- DDF-2.9.0
- See Also:
-
DERIVED
- Since:
- DDF-2.9.0
- See Also:
-
CHECKSUM
Attributechecksum value for theRESOURCE_URI- Since:
- DDF-2.9.0
- See Also:
-
DERIVED_RESOURCE_URI
Attributethat provides URIs for derived formats of the Metacard.RESOURCE_URI- See Also:
-
DERIVED_RESOURCE_DOWNLOAD_URL
Attributename for accessing the derived resource download URL for the derived products of thisMetacard.- See Also:
-
-
Method Details
-
getAttribute
ReturnsAttributefor given attribute name.- Parameters:
name- name of attribute- Returns:
Attributefor given name, ornullif not available
-
setAttribute
SetsAttributewith new attribute. -
getMetacardType
MetacardType getMetacardType()Return theMetacardTypeof thisMetacard.- Returns:
MetacardType- the type of thisMetacard, MetacardType is required and must not benull
-
getId
String getId()- Returns:
- unique identifier of the Metacard
- See Also:
-
getTags
Returns the tags associated with this metacard.- Returns:
- Returns the TAGS attribute values if it exists otherwise return null
-
getMetadata
String getMetadata()- Returns:
- XML metadata
- See Also:
-
getCreatedDate
Date getCreatedDate() -
getModifiedDate
Date getModifiedDate() -
getExpirationDate
Date getExpirationDate()Returns the date/time thisMetacardis no longer valid and could be removed.
Convenience method forgetAttribute(EXPIRATION) -
getEffectiveDate
Date getEffectiveDate()Returns the date/time thisMetacardwas last known to be valid.
Convenience method forgetAttribute(EFFECTIVE) -
getLocation
String getLocation()Returns the WKT representation of the geometry.
Convenience method forgetAttribute(GEOGRAPHY) -
getSourceId
String getSourceId()Returns the source ID of the source the metacard is located. -
setSourceId
Sets the source ID of the source the metacard is located.- Parameters:
sourceId- unique name of source location of metacard
-
getTitle
String getTitle() -
getResourceURI
URI getResourceURI()Get the value of thisMetacards Resource URI and in the form of aURIObject.
Convenience method fornew URI(getAttribute(RESOURCE_URI));- Returns:
URI- aURIrepresentation of theMetacard'sResource URIwhich itself is stored as aString ddf.catalog.data.AttributeType.AttributeFormat
-
getResourceSize
String getResourceSize()This is the size of the resource which may or may not contain a unit. -
getThumbnail
byte[] getThumbnail() -
getContentTypeName
String getContentTypeName()Returns the name of the content type of theMetacard.
Convenience method forgetAttribute(CONTENT_TYPE)- Returns:
- name of content type of the
Metacard - See Also:
-
getContentTypeVersion
String getContentTypeVersion()Returns the version of the content type of theMetacard.
Convenience method forgetAttribute(CONTENT_TYPE_VERSION)- Returns:
- version of content type of the
Metacard - See Also:
-
getContentTypeNamespace
URI getContentTypeNamespace()Some types of metadata use different content types. If utilized, returns theURIof the content type.
Convenience method forgetAttribute(TARGET_NAMESPACE)- Returns:
URI- the sub-type, null if unused- See Also:
-