/** * Invoked by JAXB only. The vertical datum type is set only if it has not already been specified. */ private void setTypeElement(final VerticalDatumType t) { if (type == null) { type = t; } else { MetadataUtilities.propertyAlreadySet(DefaultVerticalDatum.class, "setTypeElement", "verticalDatumType"); } } }
/** * Takes everything except the tip as the code space. */ @Override public String getCodeSpace() { return getCodeSpace(name, null); }
/** * Initializes a horizontal, vertical and temporal extent with the values inferred from the given envelope. * * @param envelope the source envelope. * @param target the target extent. * @throws TransformException if a coordinate transformation was required and failed. * @throws UnsupportedOperationException if the {@code "sis-referencing"} module has not been found on the classpath. */ public void addElements(Envelope envelope, DefaultExtent target) throws TransformException { throw moduleNotFound(); }
/** * Constructs a citation date initialized to the given date. * * @param date the reference date for the cited resource. * @param dateType the event used for reference date. */ public DefaultCitationDate(final Date date, final DateType dateType) { this.date = toMilliseconds(date); this.dateType = dateType; }
/** * Creates a new identifier from the specified name. This constructor infers the identifier attributes * (code, codespace and authority) from the given name. Calls to name-related methods like {@link #tip()}, * {@link #head()} and {@link #scope()} will delegate to the given name. * * @param name the name to wrap. */ public NamedIdentifier(final GenericName name) { super(name instanceof ReferenceIdentifier ? (ReferenceIdentifier) name : new NameToIdentifier(name)); this.name = name; isNameSupplied = true; }
/** * On serialization, returns a proxy which will be resolved as {@link #INSTANCE} on deserialization. */ protected Object writeReplace() throws ObjectStreamException { return new Proxy(); }
/** * Returns the list of codes of the same kind than this code list element. * Invoking this method is equivalent to invoking {@link #values()}, except that * this method can be invoked on an instance of the parent {@code CodeList} class. * * @return all code {@linkplain #values() values} for this code list. */ @Override public SensorType[] family() { return values(); }
/** * Sets an identifier unique for the XML document. * This method is invoked automatically by JAXB and should never be invoked explicitely. */ private void setID(final String id) { MetadataUtilities.setObjectID(this, id); }
/** * Invoked by JAXB at unmarshalling time. * * @see #getRangeMeaning() */ private void setRangeMeaning(final RangeMeaning value) { if (rangeMeaning == null) { rangeMeaning = value; } else { MetadataUtilities.propertyAlreadySet(DefaultCoordinateSystemAxis.class, "setRangeMeaning", "rangeMeaning"); } }
/** * Returns the Greenwich prime meridian. * * @return the Greenwich prime meridian. * * @since 0.6 */ public PrimeMeridian getGreenwich() { throw moduleNotFound(); }
/** * Invoked by JAXB at unmarshalling time. * * @see #getDatum() */ private void setDatum(final DefaultParametricDatum value) { if (datum == null) { datum = value; } else { MetadataUtilities.propertyAlreadySet(DefaultParametricCRS.class, "setDatum", "parametricDatum"); } }
/** * Returns the coordinate system of a geocentric CRS using axes in the given unit of measurement. * * @param unit the unit of measurement for the geocentric CRS axes. * @return the coordinate system for a geocentric CRS with axes using the given unit of measurement. * * @since 0.6 */ public CartesianCS getGeocentricCS(final Unit<Length> unit) { throw moduleNotFound(); }
/** * Invoked by JAXB only at unmarshalling time. * * @see #getScope() */ private void setScope(final InternationalString value) { if (scope == null) { scope = value; } else { MetadataUtilities.propertyAlreadySet(AbstractCoordinateOperation.class, "setScope", "scope"); } }
/** * Invoked by JAXB at unmarshalling time. * * @see #getDatum() */ private void setDatum(final VerticalDatum value) { if (datum == null) { datum = value; } else { MetadataUtilities.propertyAlreadySet(DefaultVerticalCRS.class, "setDatum", "verticalDatum"); } }
/** * Invoked by JAXB at unmarshalling time. * * @see #getSourceDimensions() */ private void setSourceDimensions(final Integer value) { if (sourceDimensions == null) { sourceDimensions = value; } else { MetadataUtilities.propertyAlreadySet(DefaultOperationMethod.class, "setSourceDimensions", "sourceDimensions"); } }
/** * Invoked by JAXB at unmarshalling time. * * @see #getDatum() */ private void setDatum(final ImageDatum value) { if (datum == null) { datum = value; } else { MetadataUtilities.propertyAlreadySet(DefaultImageCRS.class, "setDatum", "imageDatum"); } }
/** * Invoked by JAXB at unmarshalling time. * * @see #getMethod() */ private void setMethod(final OperationMethod value) { if (method == null) { method = value; } else { MetadataUtilities.propertyAlreadySet(AbstractSingleOperation.class, "setMethod", "method"); } }
/** * Invoked by JAXB at unmarshalling time. * * @see #getDatum() */ private void setDatum(final GeodeticDatum value) { if (datum == null) { datum = value; } else { MetadataUtilities.propertyAlreadySet(DefaultGeodeticCRS.class, "setDatum", "geodeticDatum"); } }
/** * Invoked by JAXB at unmarshalling time. * * @see #getDatum() */ private void setDatum(final EngineeringDatum value) { if (datum == null) { datum = value; } else { MetadataUtilities.propertyAlreadySet(DefaultEngineeringCRS.class, "setDatum", "engineeringDatum"); } }
/** * Invoked by JAXB at unmarshalling time. * * @see #getAbbreviation() */ private void setAbbreviation(final String value) { if (abbreviation == null) { abbreviation = value; } else { MetadataUtilities.propertyAlreadySet(DefaultCoordinateSystemAxis.class, "setAbbreviation", "abbreviation"); } }