@XmlElement(name = "linkage") private Collection<OnlineResource> getLinkage() { return FilterByVersion.CURRENT_METADATA.accept() ? getLinkages() : null; } }
/** * 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. * * @see #castOrCopy(BrowseGraphic) */ public DefaultBrowseGraphic(final BrowseGraphic object) { super(object); if (object != null) { fileName = object.getFileName(); fileDescription = object.getFileDescription(); fileType = object.getFileType(); if (object instanceof DefaultBrowseGraphic) { imageConstraints = ((DefaultBrowseGraphic) object).getImageConstraints(); linkages = ((DefaultBrowseGraphic) object).getLinkages(); } } }
/** * 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. * * @see #castOrCopy(BrowseGraphic) */ public DefaultBrowseGraphic(final BrowseGraphic object) { super(object); if (object != null) { fileName = object.getFileName(); fileDescription = object.getFileDescription(); fileType = object.getFileType(); if (object instanceof DefaultBrowseGraphic) { imageConstraints = ((DefaultBrowseGraphic) object).getImageConstraints(); linkages = ((DefaultBrowseGraphic) object).getLinkages(); } } }