本文整理汇总了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);
}
示例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);
}
示例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);
}
}
示例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));
}
示例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));
}
示例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));
}
示例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);
}
}
示例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));
}
示例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));
}
示例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));
}
示例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);
}
示例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);
}
示例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);
}
示例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));
}
示例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);
}
}