/** * Sets the request/purchase choices. * * @param newValue the new request/purchase choices. * * @since 0.5 */ public void setOrderOptions(final Record newValue) { checkWritePermission(orderOptions); orderOptions = newValue; } }
/** * Constructs a new instance initialized with the values from the specified metadata object. * This is a <cite>shallow</cite> copy constructor, since the other metadata contained in the * given object are not recursively copied. * * @param object the metadata to copy values from, or {@code null} if none. * * @see #castOrCopy(StandardOrderProcess) */ public DefaultStandardOrderProcess(final StandardOrderProcess object) { super(object); if (object != null) { fees = object.getFees(); plannedAvailableDateTime = toMilliseconds(object.getPlannedAvailableDateTime()); orderingInstructions = object.getOrderingInstructions(); turnaround = object.getTurnaround(); if (object instanceof DefaultStandardOrderProcess) { orderOptionType = ((DefaultStandardOrderProcess) object).getOrderOptionType(); orderOptions = ((DefaultStandardOrderProcess) object).getOrderOptions(); } } }
/** * Invoked by JAXB at marshalling time for getting the actual metadata to write * inside the {@code <gmd:MD_StandardOrderProcess>} 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 DefaultStandardOrderProcess getElement() { return DefaultStandardOrderProcess.castOrCopy(metadata); }
/** * Returns a SIS metadata implementation with the values of the given arbitrary implementation. * This method performs the first applicable action in the following choices: * * <ul> * <li>If the given object is {@code null}, then this method returns {@code null}.</li> * <li>Otherwise if the given object is already an instance of * {@code DefaultStandardOrderProcess}, then it is returned unchanged.</li> * <li>Otherwise a new {@code DefaultStandardOrderProcess} instance is created using the * {@linkplain #DefaultStandardOrderProcess(StandardOrderProcess) copy constructor} * and returned. Note that this is a <cite>shallow</cite> copy operation, since the other * metadata contained in the given object are not recursively copied.</li> * </ul> * * @param object the object to get as a SIS implementation, or {@code null} if none. * @return a SIS implementation containing the values of the given object (may be the * given object itself), or {@code null} if the argument was null. */ public static DefaultStandardOrderProcess castOrCopy(final StandardOrderProcess object) { if (object == null || object instanceof DefaultStandardOrderProcess) { return (DefaultStandardOrderProcess) object; } return new DefaultStandardOrderProcess(object); }
/** * Constructs a new instance initialized with the values from the specified metadata object. * This is a <cite>shallow</cite> copy constructor, since the other metadata contained in the * given object are not recursively copied. * * @param object the metadata to copy values from, or {@code null} if none. * * @see #castOrCopy(StandardOrderProcess) */ public DefaultStandardOrderProcess(final StandardOrderProcess object) { super(object); if (object != null) { fees = object.getFees(); plannedAvailableDateTime = toMilliseconds(object.getPlannedAvailableDateTime()); orderingInstructions = object.getOrderingInstructions(); turnaround = object.getTurnaround(); if (object instanceof DefaultStandardOrderProcess) { orderOptionType = ((DefaultStandardOrderProcess) object).getOrderOptionType(); orderOptions = ((DefaultStandardOrderProcess) object).getOrderOptions(); } } }
/** * Invoked by JAXB at marshalling time for getting the actual metadata to write * inside the {@code <mrd:MD_StandardOrderProcess>} 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 DefaultStandardOrderProcess getElement() { return DefaultStandardOrderProcess.castOrCopy(metadata); }
/** * Returns a SIS metadata implementation with the values of the given arbitrary implementation. * This method performs the first applicable action in the following choices: * * <ul> * <li>If the given object is {@code null}, then this method returns {@code null}.</li> * <li>Otherwise if the given object is already an instance of * {@code DefaultStandardOrderProcess}, then it is returned unchanged.</li> * <li>Otherwise a new {@code DefaultStandardOrderProcess} instance is created using the * {@linkplain #DefaultStandardOrderProcess(StandardOrderProcess) copy constructor} * and returned. Note that this is a <cite>shallow</cite> copy operation, since the other * metadata contained in the given object are not recursively copied.</li> * </ul> * * @param object the object to get as a SIS implementation, or {@code null} if none. * @return a SIS implementation containing the values of the given object (may be the * given object itself), or {@code null} if the argument was null. */ public static DefaultStandardOrderProcess castOrCopy(final StandardOrderProcess object) { if (object == null || object instanceof DefaultStandardOrderProcess) { return (DefaultStandardOrderProcess) object; } return new DefaultStandardOrderProcess(object); }
/** * Sets general instructions, terms and services provided by the distributor. * * @param newValue the new ordering instructions. */ public void setOrderingInstructions(final InternationalString newValue) { checkWritePermission(orderingInstructions); orderingInstructions = newValue; }
/** * Sets typical turnaround time for the filling of an order. * * @param newValue the new turnaround. */ public void setTurnaround(final InternationalString newValue) { checkWritePermission(turnaround); turnaround = newValue; }
/** * Sets fees and terms for retrieving the resource. * Include monetary units (as specified in ISO 4217). * * @param newValue the new fees. * * @see #setCurrency(Currency) */ public void setFees(final InternationalString newValue) { checkWritePermission(); fees = newValue; }
/** * Sets general instructions, terms and services provided by the distributor. * * @param newValue the new ordering instructions. */ public void setOrderingInstructions(final InternationalString newValue) { checkWritePermission(); orderingInstructions = newValue; }
/** * Sets typical turnaround time for the filling of an order. * * @param newValue the new turnaround. */ public void setTurnaround(final InternationalString newValue) { checkWritePermission(); turnaround = newValue; }
/** * Sets the description of the {@linkplain #getOrderOptions() order options} record. * * @param newValue New description of the order options record. * * @since 0.5 */ public void setOrderOptionType(final RecordType newValue) { checkWritePermission(); orderOptionType = newValue; }
/** * Sets the request/purchase choices. * * @param newValue the new request/purchase choices. * * @since 0.5 */ public void setOrderOptions(final Record newValue) { checkWritePermission(); orderOptions = newValue; } }
/** * Sets fees and terms for retrieving the resource. * Include monetary units (as specified in ISO 4217). * * @param newValue the new fees. * * @see #setCurrency(Currency) */ public void setFees(final InternationalString newValue) { checkWritePermission(fees); fees = newValue; }
/** * Sets the description of the {@linkplain #getOrderOptions() order options} record. * * @param newValue New description of the order options record. * * @since 0.5 */ public void setOrderOptionType(final RecordType newValue) { checkWritePermission(orderOptionType); orderOptionType = newValue; }
/** * Sets the monetary units of the {@link #getFees() fees} (as specified in ISO 4217). * Callers should ensure that the given currency is consistent with the currency * in the {@linkplain #getFees() fees} text. * * @param newValue the new currency. * * @see #setFees(InternationalString) * * @since 0.5 */ public void setCurrency(final Currency newValue) { checkWritePermission(); currency = newValue; }
/** * Sets the monetary units of the {@link #getFees() fees} (as specified in ISO 4217). * Callers should ensure that the given currency is consistent with the currency * in the {@linkplain #getFees() fees} text. * * @param newValue the new currency. * * @see #setFees(InternationalString) * * @since 0.5 */ public void setCurrency(final Currency newValue) { checkWritePermission(currency); currency = newValue; }
/** * Sets the date and time when the dataset will be available. * * @param newValue the new planned available time. */ public void setPlannedAvailableDateTime(final Date newValue) { checkWritePermission(); plannedAvailableDateTime = toMilliseconds(newValue); }
/** * Sets the date and time when the dataset will be available. * * @param newValue the new planned available time. */ public void setPlannedAvailableDateTime(final Date newValue) { checkWritePermission(plannedAvailableDateTime); plannedAvailableDateTime = toMilliseconds(newValue); }