本文整理匯總了Java中com.arangodb.velocypack.VPackSerializationContext類的典型用法代碼示例。如果您正苦於以下問題:Java VPackSerializationContext類的具體用法?Java VPackSerializationContext怎麽用?Java VPackSerializationContext使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
VPackSerializationContext類屬於com.arangodb.velocypack包,在下文中一共展示了VPackSerializationContext類的6個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: serialize
import com.arangodb.velocypack.VPackSerializationContext; //導入依賴的package包/類
@Override
public void serialize(
final VPackBuilder builder,
final String attribute,
final String value,
final VPackSerializationContext context) throws VPackException {
builder.add(attribute, value);
}
示例2: serialize
import com.arangodb.velocypack.VPackSerializationContext; //導入依賴的package包/類
@Override
public void serialize(
final VPackBuilder builder,
final String attribute,
final SafeHTMLString value,
final VPackSerializationContext context) throws VPackException {
builder.add(attribute, value.toString());
}
示例3: serialize
import com.arangodb.velocypack.VPackSerializationContext; //導入依賴的package包/類
@Override
public void serialize(
final VPackBuilder builder,
final String attribute,
final Abundance value,
final VPackSerializationContext context) throws VPackException {
builder.add(attribute, value.toString());
}
示例4: serialize
import com.arangodb.velocypack.VPackSerializationContext; //導入依賴的package包/類
@Override
public void serialize(
final VPackBuilder builder,
final String attribute,
final Precision value,
final VPackSerializationContext context) throws VPackException {
// builder.add(attribute, ValueType.STRING);
builder.add(attribute, value.toString());
// builder.close();
}
示例5: serialize
import com.arangodb.velocypack.VPackSerializationContext; //導入依賴的package包/類
@Override
public void serialize(
final VPackBuilder builder,
final String attribute,
final NumericInterval value,
final VPackSerializationContext context) throws VPackException {
builder.add(attribute, value.toString());
}
示例6: serialize
import com.arangodb.velocypack.VPackSerializationContext; //導入依賴的package包/類
@Override
public void serialize(
final VPackBuilder builder,
final String attribute,
final AuthenticationRequest value,
final VPackSerializationContext context) throws VPackException {
builder.add(attribute, ValueType.ARRAY);
builder.add(value.getVersion());
builder.add(value.getType());
builder.add(value.getEncryption());
builder.add(value.getUser());
builder.add(value.getPassword());
builder.close();
}