public boolean makeCatalogRef( InvDataset dataset) { // @todo double check that dataset is a collection dataset pattern = Pattern.compile( this.directoryMatchPattern); matcher = pattern.matcher( dataset.getName()); return( matcher.matches()); }
public boolean makeCatalogRef( InvDataset dataset) { // @todo double check that dataset is a collection dataset pattern = Pattern.compile( this.directoryMatchPattern); matcher = pattern.matcher( dataset.getName()); return( matcher.matches()); }
public boolean makeCatalogRef( InvDataset dataset) { // @todo double check that dataset is a collection dataset pattern = Pattern.compile( this.directoryMatchPattern); matcher = pattern.matcher( dataset.getName()); return( matcher.matches()); }
public boolean addMetadata( InvDataset dataset ) { InvDataset parentDs = dataset.getParent(); String curId = ( parentDs == null) ? this.baseId : parentDs.getID(); if ( curId == null) curId = this.baseId; if ( dataset.getName() != null && ! dataset.getName().equals( "") ) curId += "/" + dataset.getName(); ( (InvDatasetImpl) dataset).setID( curId ); return ( true ); } }
public boolean addMetadata( InvDataset dataset ) { InvDataset parentDs = dataset.getParent(); String curId = ( parentDs == null) ? this.baseId : parentDs.getID(); if ( curId == null) curId = this.baseId; if ( dataset.getName() != null && ! dataset.getName().equals( "") ) curId += "/" + dataset.getName(); ( (InvDatasetImpl) dataset).setID( curId ); return ( true ); } }
public boolean addMetadata( InvDataset dataset ) { InvDataset parentDs = dataset.getParent(); String curId = ( parentDs == null) ? this.baseId : parentDs.getID(); if ( curId == null) curId = this.baseId; if ( dataset.getName() != null && ! dataset.getName().equals( "") ) curId += "/" + dataset.getName(); ( (InvDatasetImpl) dataset).setID( curId ); return ( true ); } }
@Override public String getName() { return access.getDataset().getName(); }
/** * Find an immediate child dataset by its name. * * @param name match on this name * @return dataset if found or null if not exist. */ public InvDatasetImpl findDatasetByName(String name) { for (InvDataset ds : getDatasets()) { if (ds.getName().equals(name)) return (InvDatasetImpl) ds; } return null; }