/** * Sets the identification of authority requesting target collection. * * @param newValue the new citation value. */ public void setCitation(final Citation newValue) { checkWritePermission(); citation = newValue; }
/** * Sets the requirement satisfied by the plan. * * @param newValues the new satisfied requirements. */ public void setSatisfiedRequirements(final Collection<? extends Requirement> newValues) { satisfiedRequirements = writeCollection(newValues, satisfiedRequirements, Requirement.class); } }
/** * Returns the requirement satisfied by the plan. * * @return requirement satisfied by the plan. */ @Override @XmlElement(name = "satisfiedRequirement") public Collection<Requirement> getSatisfiedRequirements() { return satisfiedRequirements = nonNullCollection(satisfiedRequirements, Requirement.class); }
/** * Invoked by JAXB at marshalling time for getting the actual metadata to write * inside the {@code <gmi:MI_Plan>} 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 DefaultPlan getElement() { return DefaultPlan.castOrCopy(metadata); }
/** * 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(Plan) */ public DefaultPlan(final Plan object) { super(object); if (object != null) { type = object.getType(); status = object.getStatus(); citation = object.getCitation(); operations = copyCollection(object.getOperations(), Operation.class); satisfiedRequirements = copyCollection(object.getSatisfiedRequirements(), Requirement.class); } }
/** * 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 DefaultPlan}, then it is returned unchanged.</li> * <li>Otherwise a new {@code DefaultPlan} instance is created using the * {@linkplain #DefaultPlan(Plan) 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 DefaultPlan castOrCopy(final Plan object) { if (object == null || object instanceof DefaultPlan) { return (DefaultPlan) object; } return new DefaultPlan(object); }
/** * Returns the identification of the activity or activities that satisfy a plan. * * @return identification of the activity or activities. */ @Override @XmlElement(name = "operation") public Collection<Operation> getOperations() { return operations = nonNullCollection(operations, Operation.class); }
/** * Invoked by JAXB at marshalling time for getting the actual metadata to write * inside the {@code <mac:MI_Plan>} 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 DefaultPlan getElement() { return DefaultPlan.castOrCopy(metadata); }
/** * 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(Plan) */ public DefaultPlan(final Plan object) { super(object); if (object != null) { type = object.getType(); status = object.getStatus(); citation = object.getCitation(); operations = copyCollection(object.getOperations(), Operation.class); satisfiedRequirements = copyCollection(object.getSatisfiedRequirements(), Requirement.class); } }
/** * 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 DefaultPlan}, then it is returned unchanged.</li> * <li>Otherwise a new {@code DefaultPlan} instance is created using the * {@linkplain #DefaultPlan(Plan) 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 DefaultPlan castOrCopy(final Plan object) { if (object == null || object instanceof DefaultPlan) { return (DefaultPlan) object; } return new DefaultPlan(object); }
/** * Sets the manner of sampling geometry that the planner expects for collection of * objective data. * * @param newValue the new type value. */ public void setType(final GeometryType newValue) { checkWritePermission(); type = newValue; }
/** * Returns the identification of the activity or activities that satisfy a plan. * * @return identification of the activity or activities. */ @Override @XmlElement(name = "operation") public Collection<Operation> getOperations() { return operations = nonNullCollection(operations, Operation.class); }
/** * Sets the requirement satisfied by the plan. * * @param newValues the new satisfied requirements. */ public void setSatisfiedRequirements(final Collection<? extends Requirement> newValues) { satisfiedRequirements = writeCollection(newValues, satisfiedRequirements, Requirement.class); } }
/** * Sets the current status of the plan (pending, completed, etc.) * * @param newValue the new status value. */ public void setStatus(final Progress newValue) { checkWritePermission(status); status = newValue; }
/** * Returns the requirement satisfied by the plan. * * @return requirement satisfied by the plan. */ @Override @XmlElement(name = "satisfiedRequirement") public Collection<Requirement> getSatisfiedRequirements() { return satisfiedRequirements = nonNullCollection(satisfiedRequirements, Requirement.class); }
/** * Sets the identification of the activity or activities that satisfy a plan. * * @param newValues the new identifications of the activity. */ public void setOperations(final Collection<? extends Operation> newValues) { operations = writeCollection(newValues, operations, Operation.class); }
/** * Sets the current status of the plan (pending, completed, etc.) * * @param newValue the new status value. */ public void setStatus(final Progress newValue) { checkWritePermission(); status = newValue; }
/** * Sets the identification of the activity or activities that satisfy a plan. * * @param newValues the new identifications of the activity. */ public void setOperations(final Collection<? extends Operation> newValues) { operations = writeCollection(newValues, operations, Operation.class); }
/** * Sets the manner of sampling geometry that the planner expects for collection of * objective data. * * @param newValue the new type value. */ public void setType(final GeometryType newValue) { checkWritePermission(type); type = newValue; }
/** * Sets the identification of authority requesting target collection. * * @param newValue the new citation value. */ public void setCitation(final Citation newValue) { checkWritePermission(citation); citation = newValue; }