/** * Invoked by JAXB at marshalling time for getting the actual metadata to write * inside the {@code <gmd:MD_ContentInformation>} XML element. * This is the value or a copy of the value given in argument to the {@code wrap} method. * * @return the metadata to be marshalled. */ @XmlElementRef public AbstractContentInformation getElement() { final ContentInformation metadata = this.metadata; if (metadata instanceof ImageDescription) { return MI_ImageDescription.castOrCopy((ImageDescription) metadata); } if (metadata instanceof CoverageDescription) { return MI_CoverageDescription.castOrCopy((CoverageDescription) metadata); } return AbstractContentInformation.castOrCopy(metadata); }
return (AbstractContentInformation) object; return new AbstractContentInformation(object);
return (AbstractContentInformation) object; return new AbstractContentInformation(object);
/** * Invoked by JAXB at marshalling time for getting the actual metadata to write * inside the {@code <mrc:MD_ContentInformation>} XML element. * This is the value or a copy of the value given in argument to the {@code wrap} method. * * @return the metadata to be marshalled. */ @XmlElementRef public AbstractContentInformation getElement() { final ContentInformation metadata = this.metadata; if (metadata instanceof ImageDescription) { return MI_ImageDescription.castOrCopy((ImageDescription) metadata); } if (metadata instanceof CoverageDescription) { return MI_CoverageDescription.castOrCopy((CoverageDescription) metadata); } return AbstractContentInformation.castOrCopy(metadata); }