/** * Returns the given prime meridian as a formattable object. * * @param object the prime meridian, or {@code null}. * @return the given prime meridian as a formattable object, or {@code null}. */ public static FormattableObject toFormattable(final PrimeMeridian object) { if (object instanceof FormattableObject) { return (FormattableObject) object; } else { return DefaultPrimeMeridian.castOrCopy(object); } }
/** * Returns the given prime meridian as a formattable object. * * @param object the prime meridian, or {@code null}. * @return the given prime meridian as a formattable object, or {@code null}. */ public static FormattableObject toFormattable(final PrimeMeridian object) { if (object instanceof FormattableObject) { return (FormattableObject) object; } else { return DefaultPrimeMeridian.castOrCopy(object); } }
/** * Invoked by JAXB at marshalling time for getting the actual element to write * inside the {@code <gml:PrimeMeridian>} 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 = "PrimeMeridian") public DefaultPrimeMeridian getElement() { return DefaultPrimeMeridian.castOrCopy(metadata); }
/** * Invoked by JAXB at marshalling time for getting the actual element to write * inside the {@code <gml:PrimeMeridian>} 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 = "PrimeMeridian") public DefaultPrimeMeridian getElement() { return DefaultPrimeMeridian.castOrCopy(metadata); }
return DefaultPrimeMeridian.castOrCopy((PrimeMeridian) object);
return DefaultPrimeMeridian.castOrCopy((PrimeMeridian) object);