Examples of canSubstituteByReference()


Examples of org.apache.sis.xml.ReferenceResolver.canSubstituteByReference()

                 * Check if the user gives us the permission to use reference to those identifiers.
                 * If not, forget them. Information will actually not be lost, since the same identifiers
                 * will be provided by private methods in ISOMetadata. If we do nott clear the identifiers
                 * here, they would appear twice in the XML output.
                 */
                if (uuid != null && !resolver.canSubstituteByReference(context, type, metadata, uuid)) {
                    uuid = null;
                }
                if (link != null && !resolver.canSubstituteByReference(context, type, metadata, link)) {
                    link = null;
                }
View Full Code Here

Examples of org.apache.sis.xml.ReferenceResolver.canSubstituteByReference()

                 * here, they would appear twice in the XML output.
                 */
                if (uuid != null && !resolver.canSubstituteByReference(context, type, metadata, uuid)) {
                    uuid = null;
                }
                if (link != null && !resolver.canSubstituteByReference(context, type, metadata, link)) {
                    link = null;
                }
                if (uuid != null || link != null) {
                    reference = new ObjectReference(uuid, anyUUID, link);
                }
View Full Code Here

Examples of org.apache.sis.xml.ReferenceResolver.canSubstituteByReference()

                 * Check if the user gives us the permission to use reference to those identifiers.
                 * If not, forget them in order to avoid marshalling the identifiers twice (see the
                 * example in the above comment).
                 */
                if (uuid != null) {
                    if (resolver.canSubstituteByReference(context, type, value, uuid)) {
                        metadata = null;
                    } else {
                        uuid = null;
                    }
                }
View Full Code Here

Examples of org.apache.sis.xml.ReferenceResolver.canSubstituteByReference()

                /*
                 * There is no risk of duplication for 'xlink' because there is no such attribute in ISOMetadata.
                 * So if the user does not allow us to omit the metadata object, we will still keep the xlink for
                 * informative purpose.
                 */
                if (link != null && resolver.canSubstituteByReference(context, type, value, link)) {
                    metadata = null;
                }
                if (uuid != null || link != null) {
                    reference = new ObjectReference(uuid, link);
                }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.