Package org.apache.isis.runtimes.dflt.objectstores.xml.internal.data

Examples of org.apache.isis.runtimes.dflt.objectstores.xml.internal.data.CollectionData


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

    private void writeCollection(final Data data, final StringBuffer xml) {
        final CollectionData collection = (CollectionData) data;
        final ReferenceVector refs = collection.references();
        for (int i = 0; i < refs.size(); i++) {
            final Object oid = refs.elementAt(i);
            xml.append("  <element ");
            xml.append("ref=\"" + encodedOid((SerialOid) oid) + "\"/>\n");
        }
View Full Code Here


                    final long version = Long.valueOf(attributes.getValue("ver"), 16).longValue();
                    final String user = attributes.getValue("user");
                    final long id = Long.valueOf(attributes.getValue("id"), 16).longValue();
                    final ObjectSpecification spec = IsisContext.getSpecificationLoader().loadSpecification(type);
                    final SerialOid oid = SerialOid.createPersistent(id);
                    collection = new CollectionData(spec, oid, new FileVersion(user, version));
                } else {
                    throw new SAXException("Invalid data");
                }
            }
        }
View Full Code Here

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

    private void writeCollection(final Data data, final StringBuffer xml) {
        final CollectionData collection = (CollectionData) data;
        final ReferenceVector refs = collection.references();
        for (int i = 0; i < refs.size(); i++) {
            final Object oid = refs.elementAt(i);
            xml.append("  <element ");
            xml.append("ref=\"" + encodedOid((SerialOid) oid) + "\"/>\n");
        }
View Full Code Here

                    final long version = Long.valueOf(attributes.getValue("ver"), 16).longValue();
                    final String user = attributes.getValue("user");
                    final long id = Long.valueOf(attributes.getValue("id"), 16).longValue();
                    final ObjectSpecification spec = IsisContext.getSpecificationLoader().loadSpecification(type);
                    final SerialOid oid = SerialOid.createPersistent(id);
                    collection = new CollectionData(spec, oid, new FileVersion(user, version));
                } else {
                    throw new SAXException("Invalid data");
                }
            }
        }
View Full Code Here

TOP

Related Classes of org.apache.isis.runtimes.dflt.objectstores.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.