public class ProfileUtils extends Object
ProfileElement
s,
ProfileAttributes
and ResourceAttributes
for a
Profile
, derived from a set of OPeNDAP dataset information and an
OpendapConfig
.Modifier and Type | Field and Description |
---|---|
static String |
CHAR |
static String |
MIME_TYPE_FTP |
static String |
MIME_TYPE_GIS |
static String |
MIME_TYPE_GOOGLE_EARTH |
static String |
MIME_TYPE_GRIDFTP |
static String |
MIME_TYPE_HDF |
static String |
MIME_TYPE_HTML |
static String |
MIME_TYPE_LAS |
static String |
MIME_TYPE_NETCDF |
static String |
MIME_TYPE_OPENDAP |
static String |
MIME_TYPE_OPENDAP_DAS |
static String |
MIME_TYPE_OPENDAP_DDS |
static String |
MIME_TYPE_OPENDAP_DODS |
static String |
MIME_TYPE_OPENDAP_HTML |
static String |
MIME_TYPE_RSS |
static String |
MIME_TYPE_THREDDS |
Constructor and Description |
---|
ProfileUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
addIfNotExisting(Metadata metadata,
String key,
Enumeration<String> values)
Method to add multiple (key, value) pairs to the metadata container if not existing already.
|
static void |
addIfNotNull(Metadata met,
String key,
String value)
Method to add a (name,value) pair to the metadata container if the value is not null or empty,
and doesn't exist already.
|
static ProfileAttributes |
getProfileAttributes(OpendapConfig conf,
Metadata datasetMet) |
static Map<String,ProfileElement> |
getProfileElements(OpendapConfig conf,
opendap.dap.DConnect dConn,
Metadata datasetMet,
Profile profile) |
static ResourceAttributes |
getResourceAttributes(OpendapConfig conf,
String opendapUrl,
opendap.dap.DConnect dConn,
Metadata datasetMet) |
static List<String> |
parseValues(String value)
Utility method to split a metadata field value according to the known delimiter.
|
static String |
toISO8601(Date date) |
public static final String CHAR
public static final String MIME_TYPE_THREDDS
public static final String MIME_TYPE_NETCDF
public static final String MIME_TYPE_GRIDFTP
public static final String MIME_TYPE_FTP
public static final String MIME_TYPE_LAS
public static final String MIME_TYPE_HTML
public static final String MIME_TYPE_GOOGLE_EARTH
public static final String MIME_TYPE_HDF
public static final String MIME_TYPE_OPENDAP
public static final String MIME_TYPE_OPENDAP_DODS
public static final String MIME_TYPE_OPENDAP_DAS
public static final String MIME_TYPE_OPENDAP_DDS
public static final String MIME_TYPE_OPENDAP_HTML
public static final String MIME_TYPE_RSS
public static final String MIME_TYPE_GIS
public static ResourceAttributes getResourceAttributes(OpendapConfig conf, String opendapUrl, opendap.dap.DConnect dConn, Metadata datasetMet)
public static ProfileAttributes getProfileAttributes(OpendapConfig conf, Metadata datasetMet)
public static Map<String,ProfileElement> getProfileElements(OpendapConfig conf, opendap.dap.DConnect dConn, Metadata datasetMet, Profile profile) throws Exception
Exception
public static List<String> parseValues(String value)
value
- public static void addIfNotNull(Metadata met, String key, String value)
met
- field
- value
- public static void addIfNotExisting(Metadata metadata, String key, Enumeration<String> values)
met
- field
- value
- Copyright © 1999-2014 Apache OODT. All Rights Reserved.