@Override public thredds.catalog.CollectionType getCollectionType() { return !useProxy ? super.getCollectionType() : proxy.getCollectionType(); }
@Override public thredds.catalog.CollectionType getCollectionType() { return !useProxy ? super.getCollectionType() : proxy.getCollectionType(); }
@Override public thredds.catalog.CollectionType getCollectionType() { return !useProxy ? super.getCollectionType() : proxy.getCollectionType(); }
public thredds.catalog.CollectionType getCollectionType() { return proxy.getCollectionType(); }
public thredds.catalog.CollectionType getCollectionType() { return proxy.getCollectionType(); }
public thredds.catalog.CollectionType getCollectionType() { return proxy.getCollectionType(); }
private void addTopLevelMetadata( InvCatalog catalog, boolean isRegularCatalog ) { if ( this.topLevelMetadataContainer == null ) return; if ( ! catalogLevel.getPath().equals( currentLevel.getPath() ) ) return; // Transfer all metadata from given metadata container to the top // InvDataset. This propagates any public metadata from the given // metadata container to all generated catalogs. InvDatasetImpl topInvDs = (InvDatasetImpl) catalog.getDataset(); topInvDs.transferMetadata( this.topLevelMetadataContainer, true ); // LOOK experimental datasetScan may have its own access elements for ( Iterator it = this.topLevelMetadataContainer.getAccess().iterator(); it.hasNext(); ) { InvAccess invAccess = (InvAccess) it.next(); topInvDs.addAccess( invAccess ); InvService s = invAccess.getService(); ( (InvCatalogImpl) catalog ).addService( s ); } // If this is a collection level scan, set some special attributes // that transferMetadata() doesn't transfer. boolean isCollectionLevel = catalogLevel.getPath().equals( collectionLevel.getPath() ); if ( isCollectionLevel && isRegularCatalog ) { topInvDs.setHarvest( this.topLevelMetadataContainer.isHarvest() ); topInvDs.setCollectionType( this.topLevelMetadataContainer.getCollectionType() ); } // Finish catalog. ( (InvCatalogImpl) catalog ).finish(); }
private void addTopLevelMetadata( InvCatalog catalog, boolean isRegularCatalog ) { if ( this.topLevelMetadataContainer == null ) return; if ( ! catalogLevel.getPath().equals( currentLevel.getPath() ) ) return; // Transfer all metadata from given metadata container to the top // InvDataset. This propagates any public metadata from the given // metadata container to all generated catalogs. InvDatasetImpl topInvDs = (InvDatasetImpl) catalog.getDataset(); topInvDs.transferMetadata( this.topLevelMetadataContainer, true ); // LOOK experimental datasetScan may have its own access elements for ( Iterator it = this.topLevelMetadataContainer.getAccess().iterator(); it.hasNext(); ) { InvAccess invAccess = (InvAccess) it.next(); topInvDs.addAccess( invAccess ); InvService s = invAccess.getService(); ( (InvCatalogImpl) catalog ).addService( s ); } // If this is a collection level scan, set some special attributes // that transferMetadata() doesn't transfer. boolean isCollectionLevel = catalogLevel.getPath().equals( collectionLevel.getPath() ); if ( isCollectionLevel && isRegularCatalog ) { topInvDs.setHarvest( this.topLevelMetadataContainer.isHarvest() ); topInvDs.setCollectionType( this.topLevelMetadataContainer.getCollectionType() ); } // Finish catalog. ( (InvCatalogImpl) catalog ).finish(); }
private void addTopLevelMetadata( InvCatalog catalog, boolean isRegularCatalog ) { if ( this.topLevelMetadataContainer == null ) return; if ( ! catalogLevel.getPath().equals( currentLevel.getPath() ) ) return; // Transfer all metadata from given metadata container to the top // InvDataset. This propagates any public metadata from the given // metadata container to all generated catalogs. InvDatasetImpl topInvDs = (InvDatasetImpl) catalog.getDataset(); topInvDs.transferMetadata( this.topLevelMetadataContainer, true ); // LOOK experimental datasetScan may have its own access elements for ( Iterator it = this.topLevelMetadataContainer.getAccess().iterator(); it.hasNext(); ) { InvAccess invAccess = (InvAccess) it.next(); topInvDs.addAccess( invAccess ); InvService s = invAccess.getService(); ( (InvCatalogImpl) catalog ).addService( s ); } // If this is a collection level scan, set some special attributes // that transferMetadata() doesn't transfer. boolean isCollectionLevel = catalogLevel.getPath().equals( collectionLevel.getPath() ); if ( isCollectionLevel && isRegularCatalog ) { topInvDs.setHarvest( this.topLevelMetadataContainer.isHarvest() ); topInvDs.setCollectionType( this.topLevelMetadataContainer.getCollectionType() ); } // Finish catalog. ( (InvCatalogImpl) catalog ).finish(); }
result = 37 * result + (isHarvest() ? 1 : 0); if (null != getCollectionType()) result = 37 * result + getCollectionType().hashCode();
result = 37 * result + (isHarvest() ? 1 : 0); if (null != getCollectionType()) result = 37 * result + getCollectionType().hashCode();
result = 37 * result + (isHarvest() ? 1 : 0); if (null != getCollectionType()) result = 37 * result + getCollectionType().hashCode();
buff.append(" <li><em>Data type: </em>").append(StringUtil2.quoteHtmlContent(ds.getDataType().toString())).append("</li>\n"); if ((ds.getCollectionType() != null) && (ds.getCollectionType() != CollectionType.NONE)) buff.append(" <li><em>Collection type: </em>").append(StringUtil2.quoteHtmlContent(ds.getCollectionType().toString())).append("</li>\n");
buff.append(" <li><em>Data type: </em>").append(StringUtil2.quoteHtmlContent(ds.getDataType().toString())).append("</li>\n"); if ((ds.getCollectionType() != null) && (ds.getCollectionType() != CollectionType.NONE)) buff.append(" <li><em>Collection type: </em>").append(StringUtil2.quoteHtmlContent(ds.getCollectionType().toString())).append("</li>\n");
buff.append(" <li><em>Data type: </em>").append(StringUtil2.quoteHtmlContent(ds.getDataType().toString())).append("</li>\n"); if ((ds.getCollectionType() != null) && (ds.getCollectionType() != CollectionType.NONE)) buff.append(" <li><em>Collection type: </em>").append(StringUtil2.quoteHtmlContent(ds.getCollectionType().toString())).append("</li>\n");
if ((ds.getCollectionType() != null) && (ds.getCollectionType() != CollectionType.NONE)) dsElem.setAttribute("collectionType", ds.getCollectionType().toString()); if (ds.isHarvest()) dsElem.setAttribute("harvest", "true");
if ((ds.getCollectionType() != null) && (ds.getCollectionType() != CollectionType.NONE)) dsElem.setAttribute("collectionType", ds.getCollectionType().toString()); if (ds.isHarvest()) dsElem.setAttribute("harvest", "true");
if ((ds.getCollectionType() != null) && (ds.getCollectionType() != CollectionType.NONE)) dsElem.setAttribute("collectionType", ds.getCollectionType().toString()); if (ds.isHarvest()) dsElem.setAttribute("harvest", "true");