Examples of asString()


Examples of com.eclipsesource.json.JsonValue.asString()

    }

    public static String getString(JsonObject object, String field) {
        final JsonValue value = object.get(field);
        throwExceptionIfNull(value, field);
        return value.asString();
    }

    public static String getString(JsonObject object, String field, String defaultValue) {
        final JsonValue value = object.get(field);
        if (value == null) {
View Full Code Here

Examples of com.esri.gpt.framework.resource.api.SourceUri.asString()

    ReportBuilder rp = helper.getReportBuilder();

    try {
      // immediately remove from the source URI's collection
      if (unit.getCleanupFlag()) {
        helper.getSourceUris().remove("uri", sourceUri.asString());
      }

      boolean proceed =
        (ProtocolInvoker.getUpdateDefinition(unit.getRepository().getProtocol()) && record instanceof Native)
        || (ProtocolInvoker.getUpdateContent(unit.getRepository().getProtocol()) && !(record instanceof Native));
View Full Code Here

Examples of com.google.clearsilver.jsilver.values.Value.asString()

  public Value execute(Value... args) {
    Value left = args[0];
    Value right = args[1];
    EscapeMode mode = EscapeMode.combineModes(left.getEscapeMode(), right.getEscapeMode());
    return literalValue(left.asString() + right.asString(), mode, left.isPartiallyEscaped()
        || right.isPartiallyEscaped());
  }

}
View Full Code Here

Examples of com.google.enterprise.connector.dctm.dfcwrap.IValue.asString()

            break;
          case IAttr.DM_INTEGER:
            values.add(Value.getLongValue(val.asInteger()));
            break;
          case IAttr.DM_STRING:
            values.add(Value.getStringValue(val.asString()));
            break;
          case IAttr.DM_TIME:
            Date date = val.asTime().getDate();
            if (date != null) {
              values.add(Value.getDateValue(getCalendarFromDate(date)));
View Full Code Here

Examples of com.google.gwt.autobean.shared.Splittable.asString()

            sb.append("{ ");
            sb.append(encodeValue(split));
            sb.append(" }");
        } else if (object instanceof Splittable) {
            Splittable split = (Splittable)object;
            if (split.isString()) return encodeValue(split.asString());
           
            int c = 0;
            List<String> keys = split.getPropertyKeys();
            for (String key : keys) {
                sb.append(encodeValue(key));
View Full Code Here

Examples of com.google.gwt.safehtml.shared.SafeHtml.asString()

        SafeHtml result = null;

        column.returnTooltip = false;
        result = column.getValue(null);
        assertNotNull(result);
        assertEquals("<span>_null</span>", result.asString());

        column.returnTooltip = true;
        result = column.getValue(null);
        assertNotNull(result);
        assertEquals("<span title='_null_tooltip'>_null</span>", result.asString());
View Full Code Here

Examples of com.google.gwtexpui.safehtml.client.SafeHtml.asString()

    if (diffPrefs.isShowTabs()) {
      String t = 1 < diffPrefs.getTabSize() ? "\t" : "";
      html = html.replaceAll("\t", "<span class=\"vt\">\u00BB</span>" + t);
    }

    return html.asString();
  }

  private SafeHtml colorLineEdits(SparseFileContent src) {
    // Make a copy of the edits with a sentinel that is after all lines
    // in the source. That simplifies our loop below because we'll never
View Full Code Here

Examples of com.google.web.bindery.autobean.shared.Splittable.asString()

            sb.append("{ ");
            sb.append(encodeValue(split));
            sb.append(" }");
        } else if (object instanceof Splittable) {
            Splittable split = (Splittable)object;
            if (split.isString()) return encodeValue(split.asString());

            int c = 0;
            List<String> keys = split.getPropertyKeys();
            for (String key : keys) {
                sb.append(encodeValue(key));
View Full Code Here

Examples of com.hazelcast.com.eclipsesource.json.JsonValue.asString()

    }

    public static String getString(JsonObject object, String field) {
        final JsonValue value = object.get(field);
        throwExceptionIfNull(value, field);
        return value.asString();
    }

    public static String getString(JsonObject object, String field, String defaultValue) {
        final JsonValue value = object.get(field);
        if (value == null) {
View Full Code Here

Examples of com.hp.hpl.jena.shared.uuid.JenaUUID.asString()

            if ( asURN )
                str = uuid.asURN() ;
            else if ( asURI )
                str = uuid.asURI() ;
            else if ( asPlain )
                str = uuid.asString() ;
            if ( str == null )
                str = uuid.asString() ;
            System.out.println(str) ;
        }
    }
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.