@XmlElement(name = "additionalDocumentation") private Collection<Citation> getAdditionalDocumentations() { return FilterByVersion.CURRENT_METADATA.accept() ? getAdditionalDocumentation() : 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(Usage) */ public DefaultUsage(final Usage object) { super(object); if (object != null) { specificUsage = object.getSpecificUsage(); usageDate = toMilliseconds(object.getUsageDate()); userDeterminedLimitations = object.getUserDeterminedLimitations(); userContactInfo = copyCollection(object.getUserContactInfo(), ResponsibleParty.class); if (object instanceof DefaultUsage) { final DefaultUsage c = (DefaultUsage) object; responses = copyCollection(c.getResponses(), InternationalString.class); additionalDocumentation = copyCollection(c.getAdditionalDocumentation(), Citation.class); identifiedIssues = copyCollection(c.getIdentifiedIssues(), Citation.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. * * @see #castOrCopy(Usage) */ public DefaultUsage(final Usage object) { super(object); if (object != null) { specificUsage = object.getSpecificUsage(); usageDate = toMilliseconds(object.getUsageDate()); userDeterminedLimitations = object.getUserDeterminedLimitations(); userContactInfo = copyCollection(object.getUserContactInfo(), ResponsibleParty.class); if (object instanceof DefaultUsage) { final DefaultUsage c = (DefaultUsage) object; responses = copyCollection(c.getResponses(), InternationalString.class); additionalDocumentation = copyCollection(c.getAdditionalDocumentation(), Citation.class); identifiedIssues = copyCollection(c.getIdentifiedIssues(), Citation.class); } } }