Package org.apache.isis.objectstore.xml.internal.data

Examples of org.apache.isis.objectstore.xml.internal.data.CollectionData


                } else if (tagName.equals("collection")) {
                   
                    final RootOidDefault oid = oidFrom(attributes);
                    final Version fileVersion = fileVersionFrom(attributes);
                   
                    collection = new CollectionData(oid, fileVersion);
                } else {
                    throw new SAXException("Invalid data");
                }
            }
        }
View Full Code Here


        writer.append(XmlFile.getValueWithSpecialsEscaped(entry.toString()));
        writer.append("</value>\n");
    }

    private static void writeCollection(final Data data, final Writer writer) throws IOException {
        final CollectionData collection = (CollectionData) data;
        final ListOfRootOid refs = collection.references();
        for (int i = 0; i < refs.size(); i++) {
            final Object oid = refs.elementAt(i);
            writer.append("  <element");
            final RootOid rootOid = (RootOid) oid;
            Utils.appendAttribute(writer, "oid", rootOid.enString(getOidMarshaller()));
View Full Code Here

TOP

Related Classes of org.apache.isis.objectstore.xml.internal.data.CollectionData

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.