/** * Invoked by JAXB after unmarshalling. */ void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { computeTransientFields(); } }
/** * Invoked by JAXB after unmarshalling. */ void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { computeTransientFields(); } }
/** * Computes transient fields after deserialization. * * @param in the input stream from which to deserialize a coordinate operation. * @throws IOException if an I/O error occurred while reading or if the stream contains invalid data. * @throws ClassNotFoundException if the class serialized on the stream is not on the classpath. */ private void readObject(final ObjectInputStream in) throws IOException, ClassNotFoundException { in.defaultReadObject(); computeTransientFields(); }
/** * Computes transient fields after deserialization. * * @param in the input stream from which to deserialize a coordinate operation. * @throws IOException if an I/O error occurred while reading or if the stream contains invalid data. * @throws ClassNotFoundException if the class serialized on the stream is not on the classpath. */ private void readObject(final ObjectInputStream in) throws IOException, ClassNotFoundException { in.defaultReadObject(); computeTransientFields(); }
/** * Creates a new coordinate operation with the same values than the specified one. * This copy constructor provides a way to convert an arbitrary implementation into a SIS one * or a user-defined one (as a subclass), usually in order to leverage some implementation-specific API. * * <p>This constructor performs a shallow copy, i.e. the properties are not cloned.</p> * * @param operation the coordinate operation to copy. * * @see #castOrCopy(CoordinateOperation) */ protected AbstractCoordinateOperation(final CoordinateOperation operation) { super(operation); sourceCRS = operation.getSourceCRS(); targetCRS = operation.getTargetCRS(); interpolationCRS = getInterpolationCRS(operation); operationVersion = operation.getOperationVersion(); coordinateOperationAccuracy = operation.getCoordinateOperationAccuracy(); domainOfValidity = operation.getDomainOfValidity(); scope = operation.getScope(); transform = operation.getMathTransform(); if (operation instanceof AbstractCoordinateOperation) { wrapAroundChanges = ((AbstractCoordinateOperation) operation).wrapAroundChanges; } else { computeTransientFields(); } }
/** * Creates a new coordinate operation with the same values than the specified one. * This copy constructor provides a way to convert an arbitrary implementation into a SIS one * or a user-defined one (as a subclass), usually in order to leverage some implementation-specific API. * * <p>This constructor performs a shallow copy, i.e. the properties are not cloned.</p> * * @param operation the coordinate operation to copy. * * @see #castOrCopy(CoordinateOperation) */ protected AbstractCoordinateOperation(final CoordinateOperation operation) { super(operation); sourceCRS = operation.getSourceCRS(); targetCRS = operation.getTargetCRS(); interpolationCRS = getInterpolationCRS(operation); operationVersion = operation.getOperationVersion(); coordinateOperationAccuracy = operation.getCoordinateOperationAccuracy(); domainOfValidity = operation.getDomainOfValidity(); scope = operation.getScope(); transform = operation.getMathTransform(); if (operation instanceof AbstractCoordinateOperation) { wrapAroundChanges = ((AbstractCoordinateOperation) operation).wrapAroundChanges; } else { computeTransientFields(); } }