Package com.thoughtworks.xstream.io.path

Examples of com.thoughtworks.xstream.io.path.Path.explicit()


    protected String createReference(final Path currentPath, final Path existingReferenceKey) {
        final Path existingPath = existingReferenceKey;
        final Path referencePath = (mode & ReferenceByXPathMarshallingStrategy.ABSOLUTE) > 0
            ? existingPath
            : currentPath.relativeTo(existingPath);
        return (mode & ReferenceByXPathMarshallingStrategy.SINGLE_NODE) > 0 ? referencePath.explicit() : referencePath
            .toString();
    }

    @Override
    protected Path createReferenceKey(final Path currentPath, final Object item) {
View Full Code Here


    }

    protected String createReference(Path currentPath, Object existingReferenceKey) {
        Path existingPath = (Path)existingReferenceKey;
        Path referencePath = (mode & ReferenceByXPathMarshallingStrategy.ABSOLUTE) > 0 ? existingPath : currentPath.relativeTo(existingPath);
        return (mode & ReferenceByXPathMarshallingStrategy.SINGLE_NODE) > 0 ? referencePath.explicit() : referencePath.toString();
    }

    protected Object createReferenceKey(Path currentPath, Object item) {
        return currentPath;
    }
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.