當前位置: 首頁>>代碼示例>>Java>>正文


Java VPackSerializationContext類代碼示例

本文整理匯總了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);
}
 
開發者ID:arangodb,項目名稱:java-velocypack,代碼行數:9,代碼來源:VPackSerializers.java

示例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());
}
 
開發者ID:miguel-porto,項目名稱:flora-on-server,代碼行數:10,代碼來源:SafeHTMLStringSerializer.java

示例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());
}
 
開發者ID:miguel-porto,項目名稱:flora-on-server,代碼行數:10,代碼來源:AbundanceSerializer.java

示例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();
    }
 
開發者ID:miguel-porto,項目名稱:flora-on-server,代碼行數:11,代碼來源:PrecisionSerializer.java

示例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());
}
 
開發者ID:miguel-porto,項目名稱:flora-on-server,代碼行數:10,代碼來源:NumericIntervalSerializer.java

示例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();
}
 
開發者ID:arangodb,項目名稱:arangodb-java-driver,代碼行數:15,代碼來源:VPackSerializers.java


注:本文中的com.arangodb.velocypack.VPackSerializationContext類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。