本文整理匯總了Java中org.javarosa.core.model.IAnswerDataSerializer.containsExternalData方法的典型用法代碼示例。如果您正苦於以下問題:Java IAnswerDataSerializer.containsExternalData方法的具體用法?Java IAnswerDataSerializer.containsExternalData怎麽用?Java IAnswerDataSerializer.containsExternalData使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類org.javarosa.core.model.IAnswerDataSerializer
的用法示例。
在下文中一共展示了IAnswerDataSerializer.containsExternalData方法的6個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例6: 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;
}