Package org.apache.isis.core.commons.xml

Examples of org.apache.isis.core.commons.xml.ContentWriter


    public final void save(final Data data) {
        writeInstanceToItsDataFile(data);
    }

    private void writeInstanceToItsDataFile(final Data data) {
        xmlFile.writeXml(filename(data.getOid()), new ContentWriter() {
            @Override
            public void write(final Writer writer) throws IOException {
                final StringBuffer xml = new StringBuffer();
                final boolean isObject = data instanceof ObjectData;
                final String tag = isObject ? "isis" : "collection";
View Full Code Here


        services.addElement(element);
        saveServices();
    }

    public final void saveServices() {
        xmlFile.writeXml(SERVICES_FILE_NAME, new ContentWriter() {
            @Override
            public void write(final Writer writer) throws IOException {
                final String tag = SERVICES_FILE_NAME;
                writer.append("<" + tag + ">\n");
                for (final Enumeration e = services.elements(); e.hasMoreElements();) {
View Full Code Here

TOP

Related Classes of org.apache.isis.core.commons.xml.ContentWriter

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.