Examples of stringValue()


Examples of org.openrdf.model.Literal.stringValue()

    try {
      Value server = model.filter(implNode, SERVERURL, null).objectValue();
      Literal id = model.filter(implNode, REPOSITORYID, null).objectLiteral();
      if (server != null && id != null) {
        setURL(server.stringValue() + "/repositories/" + id.stringValue());
      }
      URI uri = model.filter(implNode, REPOSITORYURL, null).objectURI();
      if (uri != null) {
        setURL(uri.toString());
      }
View Full Code Here

Examples of org.openrdf.model.Resource.stringValue()

          }
          else if (isViewable(subject)) {
            // Since the user did not explicitly specify the subject being
            // removed, we silently ignore the statement if the subject is
            // not viewable by the user.
            throw new StoreException("insufficient access rights on subject " + subject.stringValue());
          }
        }
      }
      finally {
        toBeRemovedStatements.close();
View Full Code Here

Examples of org.openrdf.model.URI.stringValue()

      writeStartOfStartTag(RDF.NAMESPACE, "Description");
    }

    if (value instanceof URI) {
      URI uri = (URI)value;
      writeAttribute(RDF.NAMESPACE, "about", relativize(uri.stringValue()));
    }
    else {
      BNode bNode = (BNode)value;
      writeAttribute(RDF.NAMESPACE, "nodeID", bNode.getID());
    }
View Full Code Here

Examples of org.openrdf.model.Value.stringValue()

        while (result.hasNext()) {
          Value value = result.next().getValue(name);
          if (value == null) {
            labels.add(null);
          } else {
            labels.add(value.stringValue());
          }
        }
      }
      finally {
        result.close();
View Full Code Here

Examples of org.openrdf.model.impl.URIImpl.stringValue()

   
    // div holding the label text
    Element labelDiv=new Element("div")
                    .setAttribute("style","cursor: help;")
                    .setAttribute("class","tooltip")
                    .setAttribute("title","Property: "+pURI.stringValue());

    if (label!=null && !label.trim().equals("")) {
      labelDiv.setText(label);
    } else {
      labelDiv.setText(pURI.getLocalName());
View Full Code Here

Examples of org.springframework.osgi.iandt.simpleservice.MyService.stringValue()

    assertNotNull(service1);
    assertNotNull(service2);

    String msg1 = service1.stringValue();
    String msg2 = service2.stringValue();

    String jmsg = "Bond.  James Bond.";
    String cmsg = "Connery.  Sean Connery #1";
    System.out.println(msg1);
    System.out.println(msg2);
View Full Code Here

Examples of org.springframework.osgi.samples.simpleservice.MyService.stringValue()

        ServiceReference ref = bundleContext.getServiceReference(MyService.class.getName());
        assertNotNull("Service Reference is null", ref);
        try {
            MyService simpleService = (MyService) bundleContext.getService(ref);
            assertNotNull("Cannot find the service", simpleService);
            assertEquals("simple service at your service", simpleService.stringValue());
        } finally {
            bundleContext.ungetService(ref);
        }
  }
 
View Full Code Here

Examples of org.springframework.xd.dirt.stream.dsl.Token.stringValue()

    StringBuilder prefix = null;
    for (prefix = new StringBuilder(); tokenPointer < tokens.size(); tokenPointer++) {
      Token t = tokens.get(tokenPointer);
      if (t.isIdentifier()) {
        prefix.append(t.stringValue());
      }
      else {
        prefix.append(t.getKind().getTokenChars());
      }
    }
View Full Code Here

Examples of org.voltdb.client.exampleutils.AppHelper.stringValue()

            config = new ConnectionConfig(apph);

            // Retrieve parameters
            final boolean catalogSwap  = apph.booleanValue("catalogswap");
            final String csv           = apph.stringValue("statsfile");

            TxnIdWriter writer = new TxnIdWriter("dude", "clientlog");

            // Validate parameters
            apph.validate("duration", (config.duration > 0))
View Full Code Here

Examples of ptolemy.data.StringToken.stringValue()

            try {
                str = (StringToken) modelString.get(0);

                _parser.reset();

                CompositeActor model = (CompositeActor) _parser.parse(str
                        .stringValue());
                StringWriter writer = new StringWriter();

                try {
                    model.exportMoML(writer, 1);
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.