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


Java ExtWrapListPoly類代碼示例

本文整理匯總了Java中org.javarosa.core.util.externalizable.ExtWrapListPoly的典型用法代碼示例。如果您正苦於以下問題:Java ExtWrapListPoly類的具體用法?Java ExtWrapListPoly怎麽用?Java ExtWrapListPoly使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


ExtWrapListPoly類屬於org.javarosa.core.util.externalizable包,在下文中一共展示了ExtWrapListPoly類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: readExternal

import org.javarosa.core.util.externalizable.ExtWrapListPoly; //導入依賴的package包/類
/** Reads a group definition object from the supplied stream. */
public void readExternal(DataInputStream dis, PrototypeFactory pf) throws IOException, DeserializationException {
	setID(ExtUtil.readInt(dis));
	setAppearanceAttr((String)ExtUtil.read(dis, new ExtWrapNullable(String.class), pf));
	setBind((IDataReference)ExtUtil.read(dis, new ExtWrapTagged(), pf));
	setTextID((String)ExtUtil.read(dis, new ExtWrapNullable(String.class), pf));
	setLabelInnerText((String)ExtUtil.read(dis, new ExtWrapNullable(String.class), pf));
	setRepeat(ExtUtil.readBool(dis));
	setChildren((List<IFormElement>)ExtUtil.read(dis, new ExtWrapListPoly(), pf));

	noAddRemove = ExtUtil.readBool(dis);
	count = (IDataReference)ExtUtil.read(dis, new ExtWrapNullable(new ExtWrapTagged()), pf);

	chooseCaption = ExtUtil.nullIfEmpty(ExtUtil.readString(dis));
	addCaption = ExtUtil.nullIfEmpty(ExtUtil.readString(dis));
	delCaption = ExtUtil.nullIfEmpty(ExtUtil.readString(dis));
	doneCaption = ExtUtil.nullIfEmpty(ExtUtil.readString(dis));
	addEmptyCaption = ExtUtil.nullIfEmpty(ExtUtil.readString(dis));
	doneEmptyCaption = ExtUtil.nullIfEmpty(ExtUtil.readString(dis));
	entryHeader = ExtUtil.nullIfEmpty(ExtUtil.readString(dis));
	delHeader = ExtUtil.nullIfEmpty(ExtUtil.readString(dis));
	mainHeader = ExtUtil.nullIfEmpty(ExtUtil.readString(dis));

	additionalAttributes = ExtUtil.readAttributes(dis, null);
}
 
開發者ID:medic,項目名稱:javarosa,代碼行數:26,代碼來源:GroupDef.java

示例2: writeExternal

import org.javarosa.core.util.externalizable.ExtWrapListPoly; //導入依賴的package包/類
/** Write the group definition object to the supplied stream. */
public void writeExternal(DataOutputStream dos) throws IOException {
	ExtUtil.writeNumeric(dos, getID());
	ExtUtil.write(dos, new ExtWrapNullable(getAppearanceAttr()));
	ExtUtil.write(dos, new ExtWrapTagged(getBind()));
	ExtUtil.write(dos, new ExtWrapNullable(getTextID()));
	ExtUtil.write(dos, new ExtWrapNullable(getLabelInnerText()));
	ExtUtil.writeBool(dos, getRepeat());
	ExtUtil.write(dos, new ExtWrapListPoly(getChildren()));

	ExtUtil.writeBool(dos, noAddRemove);
	ExtUtil.write(dos, new ExtWrapNullable(count != null ? new ExtWrapTagged(count) : null));

	ExtUtil.writeString(dos, ExtUtil.emptyIfNull(chooseCaption));
	ExtUtil.writeString(dos, ExtUtil.emptyIfNull(addCaption));
	ExtUtil.writeString(dos, ExtUtil.emptyIfNull(delCaption));
	ExtUtil.writeString(dos, ExtUtil.emptyIfNull(doneCaption));
	ExtUtil.writeString(dos, ExtUtil.emptyIfNull(addEmptyCaption));
	ExtUtil.writeString(dos, ExtUtil.emptyIfNull(doneEmptyCaption));
	ExtUtil.writeString(dos, ExtUtil.emptyIfNull(entryHeader));
	ExtUtil.writeString(dos, ExtUtil.emptyIfNull(delHeader));
	ExtUtil.writeString(dos, ExtUtil.emptyIfNull(mainHeader));

	ExtUtil.writeAttributes(dos, additionalAttributes);
}
 
開發者ID:medic,項目名稱:javarosa,代碼行數:26,代碼來源:GroupDef.java

示例3: readExternal

import org.javarosa.core.util.externalizable.ExtWrapListPoly; //導入依賴的package包/類
@Override
public void readExternal(DataInputStream in, PrototypeFactory pf) throws IOException, DeserializationException {
    axis = ExtUtil.readInt(in);
    test = ExtUtil.readInt(in);

    switch (test) {
        case TEST_NAME:
            name = (XPathQName)ExtUtil.read(in, XPathQName.class);
            break;
        case TEST_NAMESPACE_WILDCARD:
            namespace = ExtUtil.readString(in);
            break;
        case TEST_TYPE_PROCESSING_INSTRUCTION:
            literal = (String)ExtUtil.read(in, new ExtWrapNullable(String.class));
            break;
    }

    Vector v = (Vector)ExtUtil.read(in, new ExtWrapListPoly(), pf);
    predicates = new XPathExpression[v.size()];
    for (int i = 0; i < predicates.length; i++) {
        predicates[i] = (XPathExpression)v.elementAt(i);
    }
}
 
開發者ID:dimagi,項目名稱:commcare-j2me,代碼行數:24,代碼來源:XPathStep.java

示例4: writeExternal

import org.javarosa.core.util.externalizable.ExtWrapListPoly; //導入依賴的package包/類
@Override
public void writeExternal(DataOutputStream out) throws IOException {
    ExtUtil.writeNumeric(out, axis);
    ExtUtil.writeNumeric(out, test);

    switch (test) {
        case TEST_NAME:
            ExtUtil.write(out, name);
            break;
        case TEST_NAMESPACE_WILDCARD:
            ExtUtil.writeString(out, namespace);
            break;
        case TEST_TYPE_PROCESSING_INSTRUCTION:
            ExtUtil.write(out, new ExtWrapNullable(literal));
            break;
    }

    Vector<XPathExpression> v = new Vector<XPathExpression>();
    for (XPathExpression predicate : predicates) {
        v.addElement(predicate);
    }
    ExtUtil.write(out, new ExtWrapListPoly(v));
}
 
開發者ID:dimagi,項目名稱:commcare-j2me,代碼行數:24,代碼來源:XPathStep.java

示例5: readExternal

import org.javarosa.core.util.externalizable.ExtWrapListPoly; //導入依賴的package包/類
/**
 * Reads a group definition object from the supplied stream.
 */
public void readExternal(DataInputStream dis, PrototypeFactory pf) throws IOException, DeserializationException {
    setID(ExtUtil.readInt(dis));
    setAppearanceAttr((String)ExtUtil.read(dis, new ExtWrapNullable(String.class), pf));
    setBind((XPathReference)ExtUtil.read(dis, new ExtWrapTagged(), pf));
    setTextID((String)ExtUtil.read(dis, new ExtWrapNullable(String.class), pf));
    setLabelInnerText((String)ExtUtil.read(dis, new ExtWrapNullable(String.class), pf));
    setRepeat(ExtUtil.readBool(dis));
    setChildren((Vector)ExtUtil.read(dis, new ExtWrapListPoly(), pf));

    noAddRemove = ExtUtil.readBool(dis);
    count = (XPathReference)ExtUtil.read(dis, new ExtWrapNullable(new ExtWrapTagged()), pf);

    chooseCaption = ExtUtil.nullIfEmpty(ExtUtil.readString(dis));
    addCaption = ExtUtil.nullIfEmpty(ExtUtil.readString(dis));
    delCaption = ExtUtil.nullIfEmpty(ExtUtil.readString(dis));
    doneCaption = ExtUtil.nullIfEmpty(ExtUtil.readString(dis));
    addEmptyCaption = ExtUtil.nullIfEmpty(ExtUtil.readString(dis));
    doneEmptyCaption = ExtUtil.nullIfEmpty(ExtUtil.readString(dis));
    entryHeader = ExtUtil.nullIfEmpty(ExtUtil.readString(dis));
    delHeader = ExtUtil.nullIfEmpty(ExtUtil.readString(dis));
    mainHeader = ExtUtil.nullIfEmpty(ExtUtil.readString(dis));
}
 
開發者ID:dimagi,項目名稱:commcare-j2me,代碼行數:26,代碼來源:GroupDef.java

示例6: writeExternal

import org.javarosa.core.util.externalizable.ExtWrapListPoly; //導入依賴的package包/類
/**
 * Write the group definition object to the supplied stream.
 */
public void writeExternal(DataOutputStream dos) throws IOException {
    ExtUtil.writeNumeric(dos, getID());
    ExtUtil.write(dos, new ExtWrapNullable(getAppearanceAttr()));
    ExtUtil.write(dos, new ExtWrapTagged(getBind()));
    ExtUtil.write(dos, new ExtWrapNullable(getTextID()));
    ExtUtil.write(dos, new ExtWrapNullable(getLabelInnerText()));
    ExtUtil.writeBool(dos, getRepeat());
    ExtUtil.write(dos, new ExtWrapListPoly(getChildren()));

    ExtUtil.writeBool(dos, noAddRemove);
    ExtUtil.write(dos, new ExtWrapNullable(count != null ? new ExtWrapTagged(count) : null));

    ExtUtil.writeString(dos, ExtUtil.emptyIfNull(chooseCaption));
    ExtUtil.writeString(dos, ExtUtil.emptyIfNull(addCaption));
    ExtUtil.writeString(dos, ExtUtil.emptyIfNull(delCaption));
    ExtUtil.writeString(dos, ExtUtil.emptyIfNull(doneCaption));
    ExtUtil.writeString(dos, ExtUtil.emptyIfNull(addEmptyCaption));
    ExtUtil.writeString(dos, ExtUtil.emptyIfNull(doneEmptyCaption));
    ExtUtil.writeString(dos, ExtUtil.emptyIfNull(entryHeader));
    ExtUtil.writeString(dos, ExtUtil.emptyIfNull(delHeader));
    ExtUtil.writeString(dos, ExtUtil.emptyIfNull(mainHeader));

}
 
開發者ID:dimagi,項目名稱:commcare-j2me,代碼行數:27,代碼來源:GroupDef.java

示例7: readExternal

import org.javarosa.core.util.externalizable.ExtWrapListPoly; //導入依賴的package包/類
@Override
public void readExternal(DataInputStream in, PrototypeFactory pf) throws IOException, DeserializationException {
    axis = ExtUtil.readInt(in);
    test = ExtUtil.readInt(in);

    switch (test) {
        case TEST_NAME:
            name = (XPathQName)ExtUtil.read(in, XPathQName.class, pf);
            break;
        case TEST_NAMESPACE_WILDCARD:
            namespace = ExtUtil.readString(in);
            break;
        case TEST_TYPE_PROCESSING_INSTRUCTION:
            literal = (String)ExtUtil.read(in, new ExtWrapNullable(String.class), pf);
            break;
    }

    Vector v = (Vector)ExtUtil.read(in, new ExtWrapListPoly(), pf);
    predicates = new XPathExpression[v.size()];
    for (int i = 0; i < predicates.length; i++) {
        predicates[i] = (XPathExpression)v.elementAt(i);
    }
}
 
開發者ID:dimagi,項目名稱:commcare-core,代碼行數:24,代碼來源:XPathStep.java

示例8: writeExternal

import org.javarosa.core.util.externalizable.ExtWrapListPoly; //導入依賴的package包/類
@Override
public void writeExternal(DataOutputStream out) throws IOException {
    ExtUtil.writeNumeric(out, axis);
    ExtUtil.writeNumeric(out, test);

    switch (test) {
        case TEST_NAME:
            ExtUtil.write(out, name);
            break;
        case TEST_NAMESPACE_WILDCARD:
            ExtUtil.writeString(out, namespace);
            break;
        case TEST_TYPE_PROCESSING_INSTRUCTION:
            ExtUtil.write(out, new ExtWrapNullable(literal));
            break;
    }

    Vector<XPathExpression> v = new Vector<>();
    for (XPathExpression predicate : predicates) {
        v.addElement(predicate);
    }
    ExtUtil.write(out, new ExtWrapListPoly(v));
}
 
開發者ID:dimagi,項目名稱:commcare-core,代碼行數:24,代碼來源:XPathStep.java

示例9: readExternal

import org.javarosa.core.util.externalizable.ExtWrapListPoly; //導入依賴的package包/類
/**
 * Reads a group definition object from the supplied stream.
 */
@Override
public void readExternal(DataInputStream dis, PrototypeFactory pf) throws IOException, DeserializationException {
    setID(ExtUtil.readInt(dis));
    setAppearanceAttr((String)ExtUtil.read(dis, new ExtWrapNullable(String.class), pf));
    setBind((XPathReference)ExtUtil.read(dis, new ExtWrapTagged(), pf));
    setTextID((String)ExtUtil.read(dis, new ExtWrapNullable(String.class), pf));
    setLabelInnerText((String)ExtUtil.read(dis, new ExtWrapNullable(String.class), pf));
    setIsRepeat(ExtUtil.readBool(dis));
    setChildren((Vector)ExtUtil.read(dis, new ExtWrapListPoly(), pf));

    noAddRemove = ExtUtil.readBool(dis);
    count = (XPathReference)ExtUtil.read(dis, new ExtWrapNullable(new ExtWrapTagged()), pf);

    chooseCaption = ExtUtil.nullIfEmpty(ExtUtil.readString(dis));
    addCaption = ExtUtil.nullIfEmpty(ExtUtil.readString(dis));
    delCaption = ExtUtil.nullIfEmpty(ExtUtil.readString(dis));
    doneCaption = ExtUtil.nullIfEmpty(ExtUtil.readString(dis));
    addEmptyCaption = ExtUtil.nullIfEmpty(ExtUtil.readString(dis));
    doneEmptyCaption = ExtUtil.nullIfEmpty(ExtUtil.readString(dis));
    entryHeader = ExtUtil.nullIfEmpty(ExtUtil.readString(dis));
    delHeader = ExtUtil.nullIfEmpty(ExtUtil.readString(dis));
    mainHeader = ExtUtil.nullIfEmpty(ExtUtil.readString(dis));
}
 
開發者ID:dimagi,項目名稱:commcare-core,代碼行數:27,代碼來源:GroupDef.java

示例10: writeExternal

import org.javarosa.core.util.externalizable.ExtWrapListPoly; //導入依賴的package包/類
/**
 * Write the group definition object to the supplied stream.
 */
@Override
public void writeExternal(DataOutputStream dos) throws IOException {
    ExtUtil.writeNumeric(dos, getID());
    ExtUtil.write(dos, new ExtWrapNullable(getAppearanceAttr()));
    ExtUtil.write(dos, new ExtWrapTagged(getBind()));
    ExtUtil.write(dos, new ExtWrapNullable(getTextID()));
    ExtUtil.write(dos, new ExtWrapNullable(getLabelInnerText()));
    ExtUtil.writeBool(dos, isRepeat());
    ExtUtil.write(dos, new ExtWrapListPoly(getChildren()));

    ExtUtil.writeBool(dos, noAddRemove);
    ExtUtil.write(dos, new ExtWrapNullable(count != null ? new ExtWrapTagged(count) : null));

    ExtUtil.writeString(dos, ExtUtil.emptyIfNull(chooseCaption));
    ExtUtil.writeString(dos, ExtUtil.emptyIfNull(addCaption));
    ExtUtil.writeString(dos, ExtUtil.emptyIfNull(delCaption));
    ExtUtil.writeString(dos, ExtUtil.emptyIfNull(doneCaption));
    ExtUtil.writeString(dos, ExtUtil.emptyIfNull(addEmptyCaption));
    ExtUtil.writeString(dos, ExtUtil.emptyIfNull(doneEmptyCaption));
    ExtUtil.writeString(dos, ExtUtil.emptyIfNull(entryHeader));
    ExtUtil.writeString(dos, ExtUtil.emptyIfNull(delHeader));
    ExtUtil.writeString(dos, ExtUtil.emptyIfNull(mainHeader));

}
 
開發者ID:dimagi,項目名稱:commcare-core,代碼行數:28,代碼來源:GroupDef.java

示例11: readExternal

import org.javarosa.core.util.externalizable.ExtWrapListPoly; //導入依賴的package包/類
public void readExternal(DataInputStream in, PrototypeFactory pf) throws IOException, DeserializationException {
	id = (XPathQName)ExtUtil.read(in, XPathQName.class);
       List<Object> v = (List<Object>)ExtUtil.read(in, new ExtWrapListPoly(), pf);

	args = new XPathExpression[v.size()];
	for (int i = 0; i < args.length; i++)
		args[i] = (XPathExpression)v.get(i);
}
 
開發者ID:medic,項目名稱:javarosa,代碼行數:9,代碼來源:XPathFuncExpr.java

示例12: readExternal

import org.javarosa.core.util.externalizable.ExtWrapListPoly; //導入依賴的package包/類
public void readExternal(DataInputStream in, PrototypeFactory pf) throws IOException, DeserializationException {
	x = (XPathExpression)ExtUtil.read(in, new ExtWrapTagged(), pf);
       List<Object> v = (List<Object>)ExtUtil.read(in, new ExtWrapListPoly(), pf);

	predicates = new XPathExpression[v.size()];
	for (int i = 0; i < predicates.length; i++)
		predicates[i] = (XPathExpression)v.get(i);
}
 
開發者ID:medic,項目名稱:javarosa,代碼行數:9,代碼來源:XPathFilterExpr.java

示例13: readExternal

import org.javarosa.core.util.externalizable.ExtWrapListPoly; //導入依賴的package包/類
public void readExternal(DataInputStream in, PrototypeFactory pf) throws IOException, DeserializationException {
	axis = ExtUtil.readInt(in);
	test = ExtUtil.readInt(in);

	switch (test) {
	case TEST_NAME: name = (XPathQName)ExtUtil.read(in, XPathQName.class); break;
	case TEST_NAMESPACE_WILDCARD: namespace = ExtUtil.readString(in); break;
	case TEST_TYPE_PROCESSING_INSTRUCTION: literal = (String)ExtUtil.read(in, new ExtWrapNullable(String.class)); break;
	}

     List<Object> v = (List<Object>)ExtUtil.read(in, new ExtWrapListPoly(), pf);
	predicates = new XPathExpression[v.size()];
	for (int i = 0; i < predicates.length; i++)
		predicates[i] = (XPathExpression)v.get(i);
}
 
開發者ID:medic,項目名稱:javarosa,代碼行數:16,代碼來源:XPathStep.java

示例14: writeExternal

import org.javarosa.core.util.externalizable.ExtWrapListPoly; //導入依賴的package包/類
public void writeExternal(DataOutputStream out) throws IOException {
	ExtUtil.writeNumeric(out, axis);
	ExtUtil.writeNumeric(out, test);

	switch (test) {
	case TEST_NAME: ExtUtil.write(out, name); break;
	case TEST_NAMESPACE_WILDCARD: ExtUtil.writeString(out, namespace); break;
	case TEST_TYPE_PROCESSING_INSTRUCTION: ExtUtil.write(out, new ExtWrapNullable(literal)); break;
	}

     List<XPathExpression> v = Arrays.asList(predicates);
     
	ExtUtil.write(out, new ExtWrapListPoly(v));
}
 
開發者ID:medic,項目名稱:javarosa,代碼行數:15,代碼來源:XPathStep.java

示例15: readExternal

import org.javarosa.core.util.externalizable.ExtWrapListPoly; //導入依賴的package包/類
/**
 * Read the object from stream.
 */
public void readExternal(DataInputStream dis, PrototypeFactory pf) throws IOException, DeserializationException {
	fallbackDefaultLocale = ExtUtil.readBool(dis);
	fallbackDefaultForm = ExtUtil.readBool(dis);
	localeResources = (OrderedMap<String,List<LocaleDataSource>>)ExtUtil.read(dis, new ExtWrapMap(String.class, new ExtWrapListPoly(), ExtWrapMap.TYPE_ORDERED),	pf);;
	locales = (List<String>)ExtUtil.read(dis, new ExtWrapList(String.class));
	setDefaultLocale((String)ExtUtil.read(dis, new ExtWrapNullable(String.class), pf));
	String currentLocale = (String)ExtUtil.read(dis, new ExtWrapNullable(String.class), pf);
	if (currentLocale != null) {
		setLocale(currentLocale);
	}
}
 
開發者ID:medic,項目名稱:javarosa,代碼行數:15,代碼來源:Localizer.java


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