Package com.thoughtworks.xstream.core

Examples of com.thoughtworks.xstream.core.ReferenceByIdMarshaller


        private ReferenceByIdUnmarshaller unmarshaller;

        public void marshal(HierarchicalStreamWriter writer, Object obj,
            ConverterLookup converterLookup, Mapper mapper, DataHolder dataHolder) {
            if (marshaller == null) {
                marshaller = new ReferenceByIdMarshaller(writer, converterLookup, mapper);
            }
            marshaller.start(obj, dataHolder);
        }
View Full Code Here


    private static final class ReferenceByFirstnameMarshallingStrategy extends
        ReferenceByIdMarshallingStrategy {
        protected TreeMarshaller createMarshallingContext(HierarchicalStreamWriter writer,
            ConverterLookup converterLookup, Mapper mapper) {
            return new ReferenceByIdMarshaller(
                writer, converterLookup, mapper, new ReferenceByIdMarshaller.IDGenerator() {
                    int id = 0;

                    public String next(Object item) {
                        final String id;
View Full Code Here

TOP

Related Classes of com.thoughtworks.xstream.core.ReferenceByIdMarshaller

Copyright © 2018 www.massapicom. 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.