public double getDataSize() { return tm.getDataSize(); }
public void setContributors(List<ThreddsMetadata.Contributor> a) { List<ThreddsMetadata.Contributor> dest = tm.getContributors(); for (ThreddsMetadata.Contributor item : a) { if (!dest.contains(item)) dest.add(item); } hashCode = 0; }
/** * @return specific type of documentation = rights */ public String getRights() { return getDocumentation("rights"); }
creators.addAll(tmd.getCreators()); contributors.addAll(tmd.getContributors()); dates.addAll(tmd.getDates()); docs.addAll(tmd.getDocumentation()); keywords.addAll(tmd.getKeywords()); projects.addAll(tmd.getProjects()); properties.addAll(tmd.getProperties()); publishers.addAll(tmd.getPublishers()); variables.addAll(tmd.getVariables()); metadata.addAll(tmd.getMetadata()); else { for (InvMetadata mdata : tmd.getMetadata() ) { if (!mdata.isInherited()) metadata.add(mdata); if (gc == null) gc = tmd.getGeospatialCoverage(); if (timeCoverage == null) timeCoverage = tmd.getTimeCoverage(); if (serviceName == null) serviceName = tmd.getServiceName(); if (dataType == null) dataType = tmd.getDataType(); if (dataSize == 0.0) dataSize = tmd.getDataSize(); if (dataFormat == null) dataFormat = tmd.getDataFormatType(); if (authorityName == null) authorityName = tmd.getAuthority(); if (variableMapLink == null) variableMapLink = tmd.getVariableMap();
thredds.catalog.ThreddsMetadata threddsMD = metadata.getThreddsMetadata(); if (threddsMD != null) { System.out.println(" threddsMD.getAuthority() = " + threddsMD.getAuthority()); System.out.println(" threddsMD.getHistory() = " + threddsMD.getHistory()); System.out.println(" threddsMD.getProcessing() = " + threddsMD.getProcessing()); System.out.println(" threddsMD.getRights() = " + threddsMD.getRights()); System.out.println(" threddsMD.getServiceName() = " + threddsMD.getServiceName()); System.out.println(" threddsMD.getSummary() = " + threddsMD.getSummary()); System.out.println(" threddsMD.getDataFormatType() = " + threddsMD.getDataFormatType()); System.out.println(" threddsMD.getDataSize() = " + threddsMD.getDataSize()); System.out.println(" threddsMD.getDataType() = " + threddsMD.getDataType()); System.out.println(" threddsMD.getGeospatialCoverage() = " + threddsMD.getGeospatialCoverage()); System.out.println(" threddsMD.getTimeCoverage() = " + threddsMD.getTimeCoverage()); final List<thredds.catalog.ThreddsMetadata.Contributor> contributors = threddsMD.getContributors(); System.out.println(" threddsMD.getContributors() = " + contributors); for (thredds.catalog.ThreddsMetadata.Contributor contributor : contributors) { final List<thredds.catalog.ThreddsMetadata.Source> creators = threddsMD.getCreators(); System.out.println(" threddsMD.getCreators() = " + creators); for (thredds.catalog.ThreddsMetadata.Source creator : creators) { final List<thredds.catalog.ThreddsMetadata.Source> publishers = threddsMD.getPublishers(); System.out.println(" threddsMD.getPublishers() = " + publishers); for (thredds.catalog.ThreddsMetadata.Source publisher : publishers) { final List<InvDocumentation> documentation = threddsMD.getDocumentation(); System.out.println(" threddsMD.getDocumentation() = " + documentation); for (InvDocumentation invDocumentation : documentation) {
if (tmi.getVariables().size() == 0) { ThreddsMetadata.Variables vars = MetadataExtractor.extractVariables( this, fmrc.getGridDataset()); if (vars != null) tmi.addVariables(vars); if (tmi.getGeospatialCoverage() == null) { ThreddsMetadata.GeospatialCoverage gc = MetadataExtractor.extractGeospatial(fmrc.getGridDataset()); if (gc != null) tmi.setGeospatialCoverage(gc); if (tmi.getCalendarDateCoverage() == null) { CalendarDateRange dateRange = MetadataExtractor.extractCalendarDateRange(fmrc.getGridDataset()); if (dateRange != null) tmi.setTimeCoverage(dateRange); doc.setXlinkHref( "/thredds/modelInventory/"+path); doc.setXlinkTitle( "Available Inventory"); tm.addDocumentation( doc);
/** * set specified type of documentation * * @param type type of documentation * @param content documentation contenet */ public void addDocumentation(String type, String content) { if (content == null) { removeDocumentation(type); return; } content = content.trim(); for (InvDocumentation doc : getDocumentation()) { String dtype = doc.getType(); if ((dtype != null) && dtype.equalsIgnoreCase(type)) { doc.setInlineContent(content); return; } } if (content.length() > 0) addDocumentation(new InvDocumentation(null, null, null, type, content)); }
public void setPublishers(List<ThreddsMetadata.Source> a) { List<ThreddsMetadata.Source> dest = tm.getPublishers(); for (ThreddsMetadata.Source item : a) { if (!dest.contains(item)) dest.add(item); } hashCode = 0; }
creators.addAll(tmd.getCreators()); contributors.addAll(tmd.getContributors()); dates.addAll(tmd.getDates()); docs.addAll(tmd.getDocumentation()); keywords.addAll(tmd.getKeywords()); projects.addAll(tmd.getProjects()); properties.addAll(tmd.getProperties()); publishers.addAll(tmd.getPublishers()); variables.addAll(tmd.getVariables()); metadata.addAll(tmd.getMetadata()); else { for (InvMetadata mdata : tmd.getMetadata() ) { if (!mdata.isInherited()) metadata.add(mdata); if (gc == null) gc = tmd.getGeospatialCoverage(); if (timeCoverage == null) timeCoverage = tmd.getTimeCoverage(); if (serviceName == null) serviceName = tmd.getServiceName(); if (dataType == null) dataType = tmd.getDataType(); if (dataSize == 0.0) dataSize = tmd.getDataSize(); if (dataFormat == null) dataFormat = tmd.getDataFormatType(); if (authorityName == null) authorityName = tmd.getAuthority(); if (variableMapLink == null) variableMapLink = tmd.getVariableMap();
/** * set specified type of documentation * * @param type type of documentation * @param content documentation contenet */ public void addDocumentation(String type, String content) { if (content == null) { removeDocumentation(type); return; } content = content.trim(); for (InvDocumentation doc : getDocumentation()) { String dtype = doc.getType(); if ((dtype != null) && dtype.equalsIgnoreCase(type)) { doc.setInlineContent(content); return; } } if (content.length() > 0) addDocumentation(new InvDocumentation(null, null, null, type, content)); }
public void setPublishers(List<ThreddsMetadata.Source> a) { List<ThreddsMetadata.Source> dest = tm.getPublishers(); for (ThreddsMetadata.Source item : a) { if (!dest.contains(item)) dest.add(item); } hashCode = 0; }
creators.addAll(tmd.getCreators()); contributors.addAll(tmd.getContributors()); dates.addAll(tmd.getDates()); docs.addAll(tmd.getDocumentation()); keywords.addAll(tmd.getKeywords()); projects.addAll(tmd.getProjects()); properties.addAll(tmd.getProperties()); publishers.addAll(tmd.getPublishers()); variables.addAll(tmd.getVariables()); metadata.addAll(tmd.getMetadata()); else { for (InvMetadata mdata : tmd.getMetadata() ) { if (!mdata.isInherited()) metadata.add(mdata); if (gc == null) gc = tmd.getGeospatialCoverage(); if (timeCoverage == null) timeCoverage = tmd.getTimeCoverage(); if (serviceName == null) serviceName = tmd.getServiceName(); if (dataType == null) dataType = tmd.getDataType(); if (dataSize == 0.0) dataSize = tmd.getDataSize(); if (dataFormat == null) dataFormat = tmd.getDataFormatType(); if (authorityName == null) authorityName = tmd.getAuthority(); if (variableMapLink == null) variableMapLink = tmd.getVariableMap();
/** * set specified type of documentation * * @param type type of documentation * @param content documentation contenet */ public void addDocumentation(String type, String content) { if (content == null) { removeDocumentation(type); return; } content = content.trim(); for (InvDocumentation doc : getDocumentation()) { String dtype = doc.getType(); if ((dtype != null) && dtype.equalsIgnoreCase(type)) { doc.setInlineContent(content); return; } } if (content.length() > 0) addDocumentation(new InvDocumentation(null, null, null, type, content)); }
/** * @return specific type of documentation = summary */ public String getSummary() { return getDocumentation("summary"); }
public double getDataSize() { return tm.getDataSize(); }
public void setPublishers(List<ThreddsMetadata.Source> a) { List<ThreddsMetadata.Source> dest = tm.getPublishers(); for (ThreddsMetadata.Source item : a) { if (!dest.contains(item)) dest.add(item); } hashCode = 0; }
public void setContributors(List<ThreddsMetadata.Contributor> a) { List<ThreddsMetadata.Contributor> dest = tm.getContributors(); for (ThreddsMetadata.Contributor item : a) { if (!dest.contains(item)) dest.add(item); } hashCode = 0; }
authorityName = tmd.getAuthority(); if (dataType == null || (dataType == FeatureType.ANY) || (dataType == FeatureType.NONE)) dataType = tmd.getDataType(); if (dataFormatType == null || dataFormatType == DataFormatType.NONE) dataFormatType = tmd.getDataFormatType(); defaultService = findService(tmd.getServiceName()); ThreddsMetadata.GeospatialCoverage tgc = tmd.getGeospatialCoverage(); if ((tgc != null) && !tgc.isEmpty()) gc = tgc; DateRange ttc = tmd.getTimeCoverage(); if (ttc != null) { tc = ttc; tc = tmd.getTimeCoverage(); for (InvProperty item : tmd.getProperties()) { if (!properties.contains(item)) { // dont add properties with same name if (debugInherit) System.out.println(" add Property " + item + " to " + getID()); creators.addAll(tmd.getCreators()); contributors.addAll(tmd.getContributors()); dates.addAll(tmd.getDates()); docs.addAll(tmd.getDocumentation()); keywords.addAll(tmd.getKeywords()); projects.addAll(tmd.getProjects()); publishers.addAll(tmd.getPublishers());
/** * @return specific type of documentation = processing_level */ public String getProcessing() { return getDocumentation("processing_level"); }
public double getDataSize() { return tm.getDataSize(); }