Examples of deleteProperty()


Examples of js.lang.NativeObject.deleteProperty()

                Object value = instance.setProperty(key, "value");
                assert instance.hasProperty(key) == true;
                assert instance.getProperty(key) == value;

                boolean result = instance.deleteProperty(key);
                assert instance.hasProperty(key) == false;
                assert instance.getProperty(key) == null;

                return result;
            }
View Full Code Here

Examples of js.lang.NativeObject.deleteProperty()

                assert set2.indexOf(key1) != -1;
                assert set2.indexOf(key2) != -1;
                assert set2.indexOf(key3) != -1;
                assert set2.indexOf("4") == -1;

                instance.deleteProperty(key1);
                instance.deleteProperty(key3);

                NativeArray<String> set3 = new NativeArray(instance.keys());
                assert set3.length() == 1;
                assert set3.indexOf(key1) == -1;
View Full Code Here

Examples of js.lang.NativeObject.deleteProperty()

                assert set2.indexOf(key2) != -1;
                assert set2.indexOf(key3) != -1;
                assert set2.indexOf("4") == -1;

                instance.deleteProperty(key1);
                instance.deleteProperty(key3);

                NativeArray<String> set3 = new NativeArray(instance.keys());
                assert set3.length() == 1;
                assert set3.indexOf(key1) == -1;
                assert set3.indexOf(key2) != -1;
View Full Code Here

Examples of org.apache.clerezza.rdf.utils.GraphNode.deleteProperty()

  private void deleteScript(UriRef scriptUri) {
    MGraph contentGraph = cgProvider.getContentGraph();
   
    contentHandler.remove(scriptUri);
    GraphNode scriptNode = new GraphNode(scriptUri, contentGraph);
    scriptNode.deleteProperty(RDF.type, SCRIPT.Script);
    scriptNode.deleteProperties(DCTERMS.title);
    scriptNode.deleteProperties(SCRIPT.scriptLanguage);
    scriptNode.deleteProperties(SCRIPT.scriptLanguageVersion);
    scriptNode.deleteProperties(SCRIPT.producedType);
  }
View Full Code Here

Examples of org.apache.clerezza.rdf.utils.GraphNode.deleteProperty()

      UriRef scriptUri) {
    MGraph contentGraph = cgProvider.getContentGraph();

    GraphNode generatedResourceNode =
        new GraphNode(scriptGeneratedResource, contentGraph);
    generatedResourceNode.deleteProperty(RDF.type,
        SCRIPT.ScriptGeneratedResource);
    generatedResourceNode.deleteProperty(SCRIPT.scriptSource,
        scriptUri);
  }
View Full Code Here

Examples of org.apache.clerezza.rdf.utils.GraphNode.deleteProperty()

    GraphNode generatedResourceNode =
        new GraphNode(scriptGeneratedResource, contentGraph);
    generatedResourceNode.deleteProperty(RDF.type,
        SCRIPT.ScriptGeneratedResource);
    generatedResourceNode.deleteProperty(SCRIPT.scriptSource,
        scriptUri);
  }

  private ScriptLanguageDescription extractLanguageAndVersion(String str) {
    int begin = str.indexOf(" (");
View Full Code Here

Examples of org.apache.clerezza.rdf.utils.GraphNode.deleteProperty()

    Lock l = contentGraph.getLock().writeLock();
    l.lock();
    try {
      NonLiteral binding = getBindingWithValue(bindingValue, contentGraph);
      GraphNode bindingNode = new GraphNode(binding, contentGraph);
      bindingNode.deleteProperty(RDF.type, CURIE.CuriePrefixBinding);
      bindingNode.deleteProperties(CURIE.prefix);
      bindingNode.deleteProperties(CURIE.binding);
    } finally {
      l.unlock();
    }
View Full Code Here

Examples of org.apache.clerezza.rdf.utils.GraphNode.deleteProperty()

        userNode.addPropertyValue(PERMISSION.passwordSha1, passwordSha1);
        // workaround for possible issue in verification re. PlainLiteral vs. xsd:string
        // userNode.addProperty(PERMISSION.passwordSha1, new PlainLiteralImpl(passwordSha1));
        // most likely not a problem, and the above will work
       
        userNode.deleteProperty(PERMISSION.passwordSha1, oldPasswordSha1);

        System.out.println("AFTER ========================================================");
        serializer.serialize(System.out, userNode.getGraph(), SupportedFormat.TURTLE);
       
        URI pageUri = uriInfo.getBaseUriBuilder().path("/system/console").build();
View Full Code Here

Examples of org.apache.muse.ws.resource.WsResourceCapability.deleteProperty()

        //
        for (int n = 0; n < results.length; ++n)
            changeRequested(qname, results[n], null, securityToken);
       
        WsResourceCapability capability = getCapability(qname);
        capability.deleteProperty(qname);
       
        //
        // inform listeners of deletion
        //
        for (int n = 0; n < results.length; ++n)
View Full Code Here

Examples of org.apache.muse.ws.resource.WsResourceCapability.deleteProperty()

        //
        for (int n = 0; n < results.length; ++n)
            changeRequested(qname, results[n], null, securityToken);
       
        WsResourceCapability capability = getCapability(qname);
        capability.deleteProperty(qname);
       
        //
        // inform listeners of deletion
        //
        for (int n = 0; n < results.length; ++n)
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.