/** * Adds type of information represented in the cell. * Storage location is: * * <ul> * <li>{@code metadata/contentInfo/attributeGroup/contentType}</li> * </ul> * * @param type type of information represented in the cell, or {@code null} for no-operation. */ public final void addContentType(final CoverageContentType type) { if (type != null) { attributeGroup().getContentTypes().add(type); } }
/** * Adds type of information represented in the cell. * Storage location is: * * <ul> * <li>{@code metadata/contentInfo/attributeGroup/contentType}</li> * </ul> * * @param type type of information represented in the cell, or {@code null} for no-operation. */ public final void addContentType(final CoverageContentType type) { if (type != null) { attributeGroup().getContentTypes().add(type); } }
/** * Constructs a new instance initialized with the values from the specified metadata object. * This is a <cite>shallow</cite> copy constructor, since the other metadata contained in the * given object are not recursively copied. * * @param object the metadata to copy values from, or {@code null} if none. */ public DefaultAttributeGroup(final DefaultAttributeGroup object) { super(object); if (object != null) { contentTypes = copyCollection(object.getContentTypes(), CoverageContentType.class); attributes = copyCollection(object.getAttributes(), RangeDimension.class); } }
/** * Constructs a new instance initialized with the values from the specified metadata object. * This is a <cite>shallow</cite> copy constructor, since the other metadata contained in the * given object are not recursively copied. * * @param object the metadata to copy values from, or {@code null} if none. */ public DefaultAttributeGroup(final DefaultAttributeGroup object) { super(object); if (object != null) { contentTypes = copyCollection(object.getContentTypes(), CoverageContentType.class); attributes = copyCollection(object.getAttributes(), RangeDimension.class); } }
if (groups != null) { // May be null on marshalling. for (final DefaultAttributeGroup g : groups) { final Collection<? extends CoverageContentType> contentTypes = g.getContentTypes(); if (contentTypes != null) { // May be null on marshalling. for (final CoverageContentType t : contentTypes) {
if (groups != null) { // May be null on marshalling. for (final DefaultAttributeGroup g : groups) { final Collection<? extends CoverageContentType> contentTypes = g.getContentTypes(); if (contentTypes != null) { // May be null on marshalling. for (final CoverageContentType t : contentTypes) {
assertEquals(CoverageContentType.IMAGE, getSingleton(getSingleton(groups).getContentTypes()));