Package org.fcrepo.server.storage.types

Examples of org.fcrepo.server.storage.types.RelationshipTuple


        assertNotNull(message.getDate());
        assertEquals("getDatastream", message.getMethodName());
        assertEquals("demo:foo", message.getPID().toString());
        assertEquals(baseURL, message.getBaseUrl());

        RelationshipTuple tuple =
                new RelationshipTuple("urn:subject",
                                      "urn:predicate",
                                      "object",
                                      true,
                                      null);
        fm =
View Full Code Here


                    if (oNode instanceof Literal) {
                        isLiteral = true;
                        typeURI = ((Literal) oNode).getDatatypeURI();
                    }
                    object = oNode.toString();
                    entries.add(new RelationshipTuple(triple.getSubject()
                                                              .toString(),
                                                      triple.getPredicate()
                                                              .toString(),
                                                      object,
                                                      isLiteral,
View Full Code Here

        public void addRow(String subject,
                           String predicate,
                           String object,
                           boolean isLiteral,
                           URI datatype) {
            entries.add(new RelationshipTuple(subject,
                                              predicate,
                                              object,
                                              isLiteral,
                                              datatype));
            dataChanged();
View Full Code Here

                               String subject,
                               String predicate,
                               String object,
                               boolean isLiteral,
                               URI datatype) {
            entries.set(selectedRow, new RelationshipTuple(subject,
                                                           predicate,
                                                           object,
                                                           isLiteral,
                                                           datatype));
            dataChanged();
View Full Code Here

            String results = new String(os.toByteArray());
            return results;
        }

        public Object getValueAt(int iRowIndex, int iColumnIndex) {
            RelationshipTuple tuple = entries.get(iRowIndex);
            switch (iColumnIndex) {
                case 0:
                    return tuple.subject;
                case 1:
                    return tuple.getRelationship();
                case 2:
                    if (tuple.isLiteral) {
                        if (tuple.datatype == null) {
                            return String.format("\"%s\"", tuple.object);
                        } else {
View Full Code Here

TOP

Related Classes of org.fcrepo.server.storage.types.RelationshipTuple

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.