Example usage for com.fasterxml.jackson.core SerializableString getValue

List of usage examples for com.fasterxml.jackson.core SerializableString getValue

Introduction

In this page you can find the example usage for com.fasterxml.jackson.core SerializableString getValue.

Prototype

String getValue();

Source Link

Document

Returns unquoted String that this object represents (and offers serialized forms for)

Usage

From source file:org.ojai.beans.jackson.DocumentGenerator.java

@Override
public void writeString(SerializableString value) throws IOException {
    writeString(value.getValue());
}

From source file:org.ojai.beans.jackson.DocumentGenerator.java

@Override
public void writeFieldName(SerializableString fieldName) throws IOException {
    currFieldName = fieldName.getValue();
}

From source file:org.mongojack.internal.object.BsonObjectGenerator.java

@Override
public void writeString(SerializableString text) throws IOException, JsonGenerationException {
    setValue(text.getValue());
}

From source file:org.mongojack.internal.object.BsonObjectGenerator.java

@Override
public void writeFieldName(SerializableString name) throws IOException, JsonGenerationException {
    writeFieldName(name.getValue());
}

From source file:com.bazaarvoice.jackson.rison.RisonGenerator.java

@Override
public void writeFieldName(SerializableString name) throws IOException, JsonGenerationException {
    // Object is a value, need to verify it's allowed
    int status = _writeContext.writeFieldName(name.getValue());
    if (status == JsonWriteContext.STATUS_EXPECT_VALUE) {
        _reportError("Can not write a field name, expecting a value");
    }/*from   w ww . java  2  s  .com*/
    _writeFieldName(name, (status == JsonWriteContext.STATUS_OK_AFTER_COMMA));
}

From source file:com.bazaarvoice.jackson.rison.RisonGenerator.java

@Override
public void writeString(SerializableString sstr) throws IOException, JsonGenerationException {
    // Can't take advantage of SerializableString.asQuotedChars() because JSON and Rison
    // have different rules for quoting characters within strings.
    writeString(sstr.getValue());
}

From source file:com.bazaarvoice.jackson.rison.RisonGenerator.java

public void _writeFieldName(SerializableString name, boolean commaBefore)
        throws IOException, JsonGenerationException {
    // Can't take advantage of SerializableString.asQuotedChars() because JSON and Rison
    // have different rules for quoting characters within strings.
    _writeFieldName(name.getValue(), commaBefore);
}

From source file:nl.knaw.huygens.timbuctoo.rest.providers.HTMLGenerator.java

@Override
public void writeFieldName(SerializableString fieldName) throws IOException, JsonGenerationException {
    this.writeRaw("<tr><th>" + camelCaseUnescape(fieldName.getValue()) + "</th>");
}

From source file:nl.knaw.huygens.timbuctoo.rest.providers.HTMLGenerator.java

@Override
public void writeString(SerializableString text) throws IOException, JsonGenerationException {
    writeFieldValue(htmlEscape(text.getValue()));
}