Examples of removeNamespace()


Examples of org.apache.xmlbeans.QNameSetBuilder.removeNamespace()

                    label = "add namespace " + namespace[j];
                    break;

                case 14:
                case 15:
                    current.removeNamespace(namespace[j]);
                    for (int k = 0; k < width; k++)
                        contents[k + width * j] = false;
                    label = "remove namespace " + namespace[j];
                    break;

View Full Code Here

Examples of org.openrdf.http.server.helpers.ServerConnection.removeNamespace()

  protected Representation delete(Variant variant)
    throws ResourceException
  {
    try {
      ServerConnection connection = getConnection();
      connection.removeNamespace(prefix);
      connection.getCacheInfo().processUpdate();

      getResponse().setStatus(SUCCESS_NO_CONTENT);
      return null;
    }
View Full Code Here

Examples of org.openrdf.repository.RepositoryConnection.removeNamespace()

        );


        // remove ns2
        connection.begin();
        connection.removeNamespace("ns2");
        connection.commit();

        connection.begin();
        Assert.assertEquals(1, Iterations.asList(connection.getNamespaces()).size());
View Full Code Here

Examples of org.openrdf.repository.RepositoryConnection.removeNamespace()

        );


        // remove ns2
        connection.begin();
        connection.removeNamespace("ns2");
        connection.commit();

        connection.begin();
        Assert.assertEquals(1, connection.getNamespaces().asList().size());
View Full Code Here

Examples of org.openrdf.repository.RepositoryConnection.removeNamespace()

        );


        // remove ns2
        connection.begin();
        connection.removeNamespace("ns2");
        connection.commit();

        connection.begin();
        Assert.assertEquals(1, connection.getNamespaces().asList().size());
View Full Code Here

Examples of org.openrdf.sail.SailConnection.removeNamespace()

                    assertEquals(name, namePrefix + prefix.substring(prefixPrefix.length()));
                }
            }
            namespaces.close();
            for (int i = 0; i < nTests; i++) {
                sc.removeNamespace(prefixPrefix + i);
            }
            sc.commit();
            sc.begin();
            namespaces = sc.getNamespaces();
            while (namespaces.hasNext()) {
View Full Code Here

Examples of org.openrdf.sail.SailConnection.removeNamespace()

            String prefix = "foo";
            String emptyPrefix = "";
            String name = "http://example.org/foo";
            String otherName = "http://example.org/bar";

            sc.removeNamespace(prefix);
            sc.removeNamespace(emptyPrefix);
            sc.commit();
            sc.begin();

            // Namespace initially absent?
View Full Code Here

Examples of org.openrdf.sail.SailConnection.removeNamespace()

            String emptyPrefix = "";
            String name = "http://example.org/foo";
            String otherName = "http://example.org/bar";

            sc.removeNamespace(prefix);
            sc.removeNamespace(emptyPrefix);
            sc.commit();
            sc.begin();

            // Namespace initially absent?
            assertNull(sc.getNamespace(prefix));
View Full Code Here

Examples of org.openrdf.sail.SailConnection.removeNamespace()

            sc.commit();
            sc.begin();
            assertEquals(sc.getNamespace(prefix), name);

            // Remove the namespace and make sure it's gone.
            sc.removeNamespace(prefix);
            sc.commit();
            sc.begin();
            assertNull(sc.getNamespace(prefix));

            // Same thing for the default namespace.
View Full Code Here

Examples of org.openrdf.sail.SailConnection.removeNamespace()

            // Same thing for the default namespace.
            sc.setNamespace(emptyPrefix, name);
            sc.commit();
            sc.begin();
            assertEquals(sc.getNamespace(emptyPrefix), name);
            sc.removeNamespace(emptyPrefix);
            sc.commit();
            sc.begin();
            assertNull(sc.getNamespace(emptyPrefix));
        } finally {
            sc.rollback();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.