/** * Returns the given geodetic datum as a formattable object. * * @param object the datum, or {@code null}. * @return the given datum as a formattable object, or {@code null}. */ public static FormattableObject toFormattable(final GeodeticDatum object) { if (object instanceof FormattableObject) { return (FormattableObject) object; } else { return DefaultGeodeticDatum.castOrCopy(object); } }
/** * Returns the given geodetic datum as a formattable object. * * @param object the datum, or {@code null}. * @return the given datum as a formattable object, or {@code null}. */ public static FormattableObject toFormattable(final GeodeticDatum object) { if (object instanceof FormattableObject) { return (FormattableObject) object; } else { return DefaultGeodeticDatum.castOrCopy(object); } }
/** * Invoked by JAXB at marshalling time for getting the actual element to write * inside the {@code <gml:GeodeticDatum>} XML element. * This is the value or a copy of the value given in argument to the {@code wrap} method. * * @return the element to be marshalled. */ @XmlElement(name = "GeodeticDatum") public DefaultGeodeticDatum getElement() { return DefaultGeodeticDatum.castOrCopy(metadata); }
/** * Invoked by JAXB at marshalling time for getting the actual element to write * inside the {@code <gml:GeodeticDatum>} XML element. * This is the value or a copy of the value given in argument to the {@code wrap} method. * * @return the element to be marshalled. */ @XmlElement(name = "GeodeticDatum") public DefaultGeodeticDatum getElement() { return DefaultGeodeticDatum.castOrCopy(metadata); }
return DefaultGeodeticDatum.castOrCopy((GeodeticDatum) object);
return DefaultGeodeticDatum.castOrCopy((GeodeticDatum) object);