Package org.apache.isis.core.runtime.snapshot

Examples of org.apache.isis.core.runtime.snapshot.XmlSnapshot


    /**
     * Creates a simple snapshot of the domain object.
     */
    public XmlSnapshotService.Snapshot snapshotFor(final Object domainObject) {
        final ObjectAdapter adapter = getAdapterManager().adapterFor(domainObject);
        return new XmlSnapshot(adapter, getOidMarshaller());
    }
View Full Code Here


        public void includePathAndAnnotation(String path, String annotation) {
            builder.includePathAndAnnotation(path, annotation);
        }

        public XmlSnapshotService.Snapshot build() {
            XmlSnapshot xmlSnapshot = builder.build();
            return xmlSnapshot;
        }
View Full Code Here

    /**
     * Creates a simple snapshot of the domain object.
     */
    public XmlSnapshotService.Snapshot snapshotFor(final Object domainObject) {
        final ObjectAdapter adapter = getAdapterManager().adapterFor(domainObject);
        return new XmlSnapshot(adapter, getOidMarshaller());
    }
View Full Code Here

        public void includePathAndAnnotation(String path, String annotation) {
            builder.includePathAndAnnotation(path, annotation);
        }

        public XmlSnapshotService.Snapshot build() {
            XmlSnapshot xmlSnapshot = builder.build();
            return xmlSnapshot;
        }
View Full Code Here

        return this;
    }

    public XmlSnapshot build() {
        final ObjectAdapter adapter = getAdapterMap().adapterFor(snapshottable);
        final XmlSnapshot snapshot = (schema != null) ? new XmlSnapshot(adapter, schema) : new XmlSnapshot(adapter);
        for (final XmlSnapshotBuilder.PathAndAnnotation paa : paths) {
            if (paa.annotation != null) {
                snapshot.include(paa.path, paa.annotation);
            } else {
                snapshot.include(paa.path);
            }
        }
        return snapshot;
    }
View Full Code Here

        return this;
    }

    public XmlSnapshot build() {
        final ObjectAdapter adapter = getAdapterMap().adapterFor(snapshottable);
        final XmlSnapshot snapshot = (schema != null) ? new XmlSnapshot(adapter, schema) : new XmlSnapshot(adapter);
        for (final XmlSnapshotBuilder.PathAndAnnotation paa : paths) {
            if (paa.annotation != null) {
                snapshot.include(paa.path, paa.annotation);
            } else {
                snapshot.include(paa.path);
            }
        }
        return snapshot;
    }
View Full Code Here

TOP

Related Classes of org.apache.isis.core.runtime.snapshot.XmlSnapshot

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.