Examples of NamespaceImpl


Examples of org.openrdf.model.impl.NamespaceImpl

    }
    return result;
  }

  public void setNamespace(String prefix, String name) {
    NamespaceImpl ns = namespacesMap.get(prefix);

    if (ns != null) {
      if (!ns.getName().equals(name)) {
        ns.setName(name);
        contentsChanged = true;
      }
    }
    else {
      namespacesMap.put(prefix, new NamespaceImpl(prefix, name));
      contentsChanged = true;
    }
  }
View Full Code Here

Examples of org.openrdf.model.impl.NamespaceImpl

      contentsChanged = true;
    }
  }

  public void removeNamespace(String prefix) {
    NamespaceImpl ns = namespacesMap.remove(prefix);

    if (ns != null) {
      contentsChanged = true;
    }
  }
View Full Code Here

Examples of org.openrdf.model.impl.NamespaceImpl

        while (true) {
          try {
            String name = in.readUTF();
            String prefix = in.readUTF();

            NamespaceImpl ns = new NamespaceImpl(prefix, name);
            namespacesMap.put(prefix, ns);
          }
          catch (EOFException e) {
            break;
          }
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.