请选择 进入手机版 | 继续访问电脑版
  • 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java IAnswerDataSerializer类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中org.javarosa.core.model.IAnswerDataSerializer的典型用法代码示例。如果您正苦于以下问题:Java IAnswerDataSerializer类的具体用法?Java IAnswerDataSerializer怎么用?Java IAnswerDataSerializer使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



IAnswerDataSerializer类属于org.javarosa.core.model包,在下文中一共展示了IAnswerDataSerializer类的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: retrieveExternalDataPointer

import org.javarosa.core.model.IAnswerDataSerializer; //导入依赖的package包/类
public IDataPointer[] retrieveExternalDataPointer(IAnswerData data) {
     for (IAnswerDataSerializer serializer : additionalSerializers) {
		Boolean contains = serializer.containsExternalData(data);
		if(contains != null) {
			return serializer.retrieveExternalDataPointer(data);
		}
	}
	if( data instanceof PointerAnswerData) {
		IDataPointer[] pointer = new IDataPointer[1];
		pointer[0] = (IDataPointer)((PointerAnswerData)data).getValue();
		return pointer;
	}
	else if (data instanceof MultiPointerAnswerData ) {
		return (IDataPointer[])((MultiPointerAnswerData)data).getValue();
	}
	//This shouldn't have been called.
	return null;
}
 
开发者ID:medic,项目名称:javarosa,代码行数:19,代码来源:XFormAnswerDataSerializer.java


示例2: containsExternalData

import org.javarosa.core.model.IAnswerDataSerializer; //导入依赖的package包/类
public Boolean containsExternalData(IAnswerData data) {
    //First check for registered serializers to identify whether
    //they override this one.
    Enumeration en = additionalSerializers.elements();
    while (en.hasMoreElements()) {
        IAnswerDataSerializer serializer = (IAnswerDataSerializer)en.nextElement();
        Boolean contains = serializer.containsExternalData(data);
        if (contains != null) {
            return contains;
        }
    }
    if (data instanceof PointerAnswerData) {
        return Boolean.TRUE;
    }
    return Boolean.FALSE;
}
 
开发者ID:dimagi,项目名称:commcare-j2me,代码行数:17,代码来源:XFormAnswerDataSerializer.java


示例3: retrieveExternalDataPointer

import org.javarosa.core.model.IAnswerDataSerializer; //导入依赖的package包/类
public IDataPointer[] retrieveExternalDataPointer(IAnswerData data) {
    Enumeration en = additionalSerializers.elements();
    while (en.hasMoreElements()) {
        IAnswerDataSerializer serializer = (IAnswerDataSerializer)en.nextElement();
        Boolean contains = serializer.containsExternalData(data);
        if (contains != null) {
            return serializer.retrieveExternalDataPointer(data);
        }
    }
    if (data instanceof PointerAnswerData) {
        IDataPointer[] pointer = new IDataPointer[1];
        pointer[0] = (IDataPointer)data.getValue();
        return pointer;
    }
    //This shouldn't have been called.
    return null;
}
 
开发者ID:dimagi,项目名称:commcare-j2me,代码行数:18,代码来源:XFormAnswerDataSerializer.java


示例4: containsExternalData

import org.javarosa.core.model.IAnswerDataSerializer; //导入依赖的package包/类
@Override
public Boolean containsExternalData(IAnswerData data) {
    //First check for registered serializers to identify whether
    //they override this one.
    Enumeration en = additionalSerializers.elements();
    while (en.hasMoreElements()) {
        IAnswerDataSerializer serializer = (IAnswerDataSerializer)en.nextElement();
        Boolean contains = serializer.containsExternalData(data);
        if (contains != null) {
            return contains;
        }
    }
    if (data instanceof PointerAnswerData) {
        return Boolean.TRUE;
    }
    return Boolean.FALSE;
}
 
开发者ID:dimagi,项目名称:commcare-core,代码行数:18,代码来源:XFormAnswerDataSerializer.java


示例5: retrieveExternalDataPointer

import org.javarosa.core.model.IAnswerDataSerializer; //导入依赖的package包/类
@Override
public IDataPointer[] retrieveExternalDataPointer(IAnswerData data) {
    Enumeration en = additionalSerializers.elements();
    while (en.hasMoreElements()) {
        IAnswerDataSerializer serializer = (IAnswerDataSerializer)en.nextElement();
        Boolean contains = serializer.containsExternalData(data);
        if (contains != null) {
            return serializer.retrieveExternalDataPointer(data);
        }
    }
    if (data instanceof PointerAnswerData) {
        IDataPointer[] pointer = new IDataPointer[1];
        pointer[0] = (IDataPointer)data.getValue();
        return pointer;
    }
    //This shouldn't have been called.
    return null;
}
 
开发者ID:dimagi,项目名称:commcare-core,代码行数:19,代码来源:XFormAnswerDataSerializer.java


示例6: serializeAnswerData

import org.javarosa.core.model.IAnswerDataSerializer; //导入依赖的package包/类
public Object serializeAnswerData(IAnswerData data, int dataType) {
	// First, we want to go through the additional serializers, as they should
	// take priority to the default serializations
     for (IAnswerDataSerializer serializer : additionalSerializers) {
		if(serializer.canSerialize(data)) {
			return serializer.serializeAnswerData(data, dataType);
		}
	}
	//Defaults
	Object result = serializeAnswerData(data);
	return result;
}
 
开发者ID:medic,项目名称:javarosa,代码行数:13,代码来源:XFormAnswerDataSerializer.java


示例7: containsExternalData

import org.javarosa.core.model.IAnswerDataSerializer; //导入依赖的package包/类
public Boolean containsExternalData(IAnswerData data) {
	//First check for registered serializers to identify whether
	//they override this one.
     for (IAnswerDataSerializer serializer : additionalSerializers) {
		Boolean contains = serializer.containsExternalData(data);
		if(contains != null) {
			return contains;
		}
	}
	if( data instanceof PointerAnswerData	||
    data instanceof MultiPointerAnswerData ) {
		return Boolean.TRUE;
	}
	return Boolean.FALSE;
}
 
开发者ID:medic,项目名称:javarosa,代码行数:16,代码来源:XFormAnswerDataSerializer.java


示例8: serializeAnswerData

import org.javarosa.core.model.IAnswerDataSerializer; //导入依赖的package包/类
public Object serializeAnswerData(IAnswerData data, int dataType) {
    // First, we want to go through the additional serializers, as they should
    // take priority to the default serializations
    Enumeration en = additionalSerializers.elements();
    while (en.hasMoreElements()) {
        IAnswerDataSerializer serializer = (IAnswerDataSerializer)en.nextElement();
        if (serializer.canSerialize(data)) {
            return serializer.serializeAnswerData(data, dataType);
        }
    }
    //Defaults
    return serializeAnswerData(data);
}
 
开发者ID:dimagi,项目名称:commcare-j2me,代码行数:14,代码来源:XFormAnswerDataSerializer.java


示例9: serializeAnswerData

import org.javarosa.core.model.IAnswerDataSerializer; //导入依赖的package包/类
@Override
public Object serializeAnswerData(IAnswerData data, int dataType) {
    // First, we want to go through the additional serializers, as they should
    // take priority to the default serializations
    Enumeration en = additionalSerializers.elements();
    while (en.hasMoreElements()) {
        IAnswerDataSerializer serializer = (IAnswerDataSerializer)en.nextElement();
        if (serializer.canSerialize(data)) {
            return serializer.serializeAnswerData(data, dataType);
        }
    }
    //Defaults
    return serializeAnswerData(data);
}
 
开发者ID:dimagi,项目名称:commcare-core,代码行数:15,代码来源:XFormAnswerDataSerializer.java


示例10: setAnswerDataSerializer

import org.javarosa.core.model.IAnswerDataSerializer; //导入依赖的package包/类
public void setAnswerDataSerializer(IAnswerDataSerializer ads) {
	this.serializer = ads;
}
 
开发者ID:medic,项目名称:javarosa,代码行数:4,代码来源:XFormSerializingVisitor.java


示例11: registerAnswerSerializer

import org.javarosa.core.model.IAnswerDataSerializer; //导入依赖的package包/类
public void registerAnswerSerializer(IAnswerDataSerializer ads) {
	additionalSerializers.add(ads);
}
 
开发者ID:medic,项目名称:javarosa,代码行数:4,代码来源:XFormAnswerDataSerializer.java


示例12: setAnswerDataSerializer

import org.javarosa.core.model.IAnswerDataSerializer; //导入依赖的package包/类
@Override
public void setAnswerDataSerializer(IAnswerDataSerializer ads) {
    this.serializer = ads;
}
 
开发者ID:dimagi,项目名称:commcare-j2me,代码行数:5,代码来源:XFormSerializingVisitor.java


示例13: setAnswerDataSerializer

import org.javarosa.core.model.IAnswerDataSerializer; //导入依赖的package包/类
public void setAnswerDataSerializer(IAnswerDataSerializer ads) {
    this.serializer = ads;
}
 
开发者ID:dimagi,项目名称:commcare-j2me,代码行数:4,代码来源:SMSSerializingVisitor.java


示例14: setAnswerDataSerializer

import org.javarosa.core.model.IAnswerDataSerializer; //导入依赖的package包/类
void setAnswerDataSerializer(IAnswerDataSerializer ads); 
开发者ID:medic,项目名称:javarosa,代码行数:2,代码来源:IInstanceSerializingVisitor.java



注:本文中的org.javarosa.core.model.IAnswerDataSerializer类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java MimeType类代码示例发布时间:2022-05-16
下一篇:
Java KernelPolynomial类代码示例发布时间:2022-05-16
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap