Examples of asString()


Examples of Framework.TextData.asString()

                name = name.copyRange(name.getOffset());
            }
            boolean ascending = (this.getSorter().getSortDirection() == TableSorter.ASCENDING);

            DynamicArray<Object> theArray = (DynamicArray<Object>)(this.tableModel.getData().clone());
            theArray.sort(name.asString(),false,ascending);
            index = theArray.indexOf(node);
        }
        return this.getSelectionModel().isSelectedIndex(index);
    }
View Full Code Here

Examples of cambridge.model.Expression.asString()

    {
        ExpressionContext context = language.createNewContext();
        context.put("name", "Cambridge");
        Expression expression = language.parse("#name", 1, 1);

        String name = expression.asString(context);
        assertEquals(name, "Cambridge");
    }
}
View Full Code Here

Examples of ch.qos.mistletoe.core.helper.ExceptionHelper.asString()

    ExceptionHelper ex = new ExceptionHelper(t);
   
   
    final WebMarkupContainer parent = new WebMarkupContainer(Constants.PAYLOAD_ID);
    add(parent);
    Label exception = new Label(Constants.NODE_ID, ex.asString());
    exception.setEscapeModelStrings(false);
    exception.add(new SimpleAttributeModifier("class", "exception"));
    parent.add(exception);
    if (ex.getLines() > 50) {
      System.out.println("ex.getLines() > 50");
View Full Code Here

Examples of com.alvazan.orm.api.z8spi.conv.ByteArray.asString()

  public String toString() {
    String t = "";
    t += "columnFamilyName="+columnFamilyName+" columnSortType="+columnSortType;
    for(Row r : keyToRow.values()) {
      ByteArray b = new ByteArray(r.getKey());
      t += "\nrowkey="+b.asString()+" row="+r;
    }
    return t;
  }
 
 
View Full Code Here

Examples of com.asakusafw.utils.java.internal.parser.javadoc.ir.IrDocName.asString()

    public void testFetchName() {
        {
            DefaultJavadocScanner scanner = string("java.lang.String#length()");
            IrDocName elem = JavadocBlockParserUtil.fetchName(scanner, null);
            assertNotNull(elem);
            assertEquals("java.lang.String", elem.asString());
            assertSameLocation(0, "java.lang.String".length(), elem.getLocation());

            assertEquals(IrDocElementKind.QUALIFIED_NAME, elem.getKind());
            assertEquals(3, elem.asSimpleNameList().size());
            assertSameLocation("".length(), "java".length(), elem.asSimpleNameList().get(0).getLocation());
View Full Code Here

Examples of com.badlogic.gdx.utils.JsonValue.asString()

  }

  private void readCurve (CurveTimeline timeline, int frameIndex, JsonValue valueMap) {
    JsonValue curve = valueMap.get("curve");
    if (curve == null) return;
    if (curve.isString() && curve.asString().equals("stepped"))
      timeline.setStepped(frameIndex);
    else if (curve.isArray()) {
      timeline.setCurve(frameIndex, curve.getFloat(0), curve.getFloat(1), curve.getFloat(2), curve.getFloat(3));
    }
  }
View Full Code Here

Examples of com.cedarsoft.couchdb.DocId.asString()

  public <K, V, D> void serialize( @Nonnull Row<K, V, D> row, @Nonnull JacksonSerializer<? super K> keySerializer, @Nonnull JacksonSerializer<? super V> valueSerializer, @Nullable JacksonSerializer<? super D> documentSerializer, @Nonnull JsonGenerator generator ) throws IOException {
    generator.writeStartObject();

    @Nullable DocId id = row.getId();
    if ( id != null ) {
      generator.writeStringField( PROPERTY_ID, id.asString() );
    }

    //The key
    generator.writeFieldName( PROPERTY_KEY );
    keySerializer.serialize( row.getKey(), generator );
View Full Code Here

Examples of com.cedarsoft.couchdb.Revision.asString()

  public static void serializeIdAndRev( @Nonnull JsonGenerator serializeTo, @Nonnull RawCouchDoc doc ) throws IOException, JsonProcessingException {
    serializeTo.writeStringField( PROPERTY_ID, doc.getId().asString() );

    Revision rev = doc.getRev();
    if ( rev != null ) {
      serializeTo.writeStringField( PROPERTY_REV, rev.asString() );
    }
  }

  @Nonnull
  protected static JsonParser createJsonParser( @Nonnull InputStream in ) throws IOException {
View Full Code Here

Examples of com.cedarsoft.couchdb.core.DocId.asString()

  public <K, V, D> void serialize( @Nonnull Row<K, V, D> row, @Nonnull JacksonSerializer<? super K> keySerializer, @Nonnull JacksonSerializer<? super V> valueSerializer, @Nullable JacksonSerializer<? super D> documentSerializer, @Nonnull JsonGenerator generator ) throws IOException {
    generator.writeStartObject();

    @Nullable DocId id = row.getId();
    if ( id != null ) {
      generator.writeStringField( PROPERTY_ID, id.asString() );
    }

    //The key
    generator.writeFieldName( PROPERTY_KEY );
    keySerializer.serialize( row.getKey(), generator );
View Full Code Here

Examples of com.cedarsoft.couchdb.core.Revision.asString()

  public static void serializeIdAndRev( @Nonnull JsonGenerator serializeTo, @Nonnull RawCouchDoc doc ) throws IOException {
    serializeTo.writeStringField( PROPERTY_ID, doc.getId().asString() );

    Revision rev = doc.getRev();
    if ( rev != null ) {
      serializeTo.writeStringField( PROPERTY_REV, rev.asString() );
    }
  }

  @Nonnull
  protected static JsonParser createJsonParser( @Nonnull InputStream in ) throws IOException {
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.