/** * Converts a GeoAPI interface to the SIS implementation for XML marshalling. * * @param value the bound type value, here the GeoAPI interface. * @return the adapter for the given value, here the SIS implementation. */ @Override public DefaultKeywords marshal(final Keywords value) { return DefaultKeywords.castOrCopy(value); } }
/** * Invoked by JAXB at marshalling time for getting the actual metadata to write * inside the {@code <gmd:MD_Keywords>} 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 DefaultKeywords getElement() { return DefaultKeywords.castOrCopy(metadata); }
/** * Invoked by JAXB at marshalling time for getting the actual metadata to write * inside the {@code <mri:MD_Keywords>} 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 DefaultKeywords getElement() { return DefaultKeywords.castOrCopy(metadata); }