public List<String> getAlias() { return delegate.getAlias(); }
coverage.setName("test"); coverage.setEnabled(true); coverage.getAlias().add("alias"); coverage.getKeywords().add(new Keyword("key")); MetadataLinkInfoImpl metadataLink = new MetadataLinkInfoImpl();
@Override public void visit(CoverageInfo coverage) { CoverageInfo otherCoverage = otherCatalog.getCoverage(coverage.getId()); if (!(Objects.equals(coverage, otherCoverage) && checkEquals(coverage.getDimensions(), otherCoverage.getDimensions()) && checkEquals( coverage.getInterpolationMethods(), otherCoverage.getInterpolationMethods()) && checkEquals(coverage.getParameters(), otherCoverage.getParameters()) && checkEquals(coverage.getResponseSRS(), otherCoverage.getResponseSRS()) && checkEquals(coverage.getAlias(), otherCoverage.getAlias()) && checkEquals(coverage.getKeywords(), otherCoverage.getKeywords()) && checkEquals(coverage.getDataLinks(), otherCoverage.getDataLinks()) && checkEquals(coverage.getMetadataLinks(), otherCoverage.getMetadataLinks()) && checkEquals(coverage.getMetadata(), otherCoverage.getMetadata()))) { differences.add(new InfoDiff(coverage, otherCoverage)); } }
/** * This method returns {@code true} in case we have POSTed a Coverage object with the name only, * as an instance when configuring a new coverage which has just been harvested. * * @param coverage */ private boolean isNewCoverage(CoverageInfo coverage) { return coverage.getName() != null && (coverage.isAdvertised()) && (!coverage.isEnabled()) && (coverage.getAlias() == null) && (coverage.getCRS() == null) && (coverage.getDefaultInterpolationMethod() == null) && (coverage.getDescription() == null) && (coverage.getDimensions() == null) && (coverage.getGrid() == null) && (coverage.getInterpolationMethods() == null) && (coverage.getKeywords() == null) && (coverage.getLatLonBoundingBox() == null) && (coverage.getMetadata() == null) && (coverage.getNativeBoundingBox() == null) && (coverage.getNativeCRS() == null) && (coverage.getNativeFormat() == null) && (coverage.getProjectionPolicy() == null) && (coverage.getSRS() == null) && (coverage.getResponseSRS() == null) && (coverage.getRequestSRS() == null); }