thredds.catalog2
Interface Metadata


public interface Metadata

Represents non-THREDDS metadata about the containing dataset. This Metadata object may either directly contain content or contain an reference to an external resource.

Since:
4.0
Author:
edavis

Method Summary
 String getContent()
          Return the content contained in this Metadata object.
 URI getExternalReference()
          Return the reference to the external resource this Metadata object references.
 String getTitle()
          Return the title for the external resource this Metadata object references.
 boolean isContainedContent()
          Return true if this Metadata object directly contains content and return false if, this Metadata object instead contains a title for and a reference to an external resource.
 

Method Detail

isContainedContent

boolean isContainedContent()
Return true if this Metadata object directly contains content and return false if, this Metadata object instead contains a title for and a reference to an external resource.

Returns:
true if this Metadata object directly contains content, false if it instead contains a referernce to an external resource.

getTitle

String getTitle()
Return the title for the external resource this Metadata object references.

Returns:
the title for the external resource.
Throws:
IllegalStateException - if this Metadata object contains content internally.

getExternalReference

URI getExternalReference()
Return the reference to the external resource this Metadata object references.

Returns:
the reference for the external resource.
Throws:
IllegalStateException - if this Metadata object contains content internally.

getContent

String getContent()
Return the content contained in this Metadata object.

Returns:
the content contained in this Metadata object.
Throws:
IllegalStateException - if this Metadata object references an external resource.


Copyright © 1999-2011 UCAR/Unidata. All Rights Reserved.