private void writeArrayObject(XmlOutputStream out, TypeInfo info, Object value) throws IOException { int length = Array.getLength(value); for (int i = 0; i < length; i++) { Object o = Array.get(value, i); writeSingleObject(out, info, o); } }
private void writeArrayObject(XmlOutputStream out, TypeInfo info, Object value) throws IOException { int length = Array.getLength(value); for (int i = 0; i < length; i++) { Object o = Array.get(value, i); writeSingleObject(out, info, o); } }
public void writeObject(XmlOutputStream out, TypeInfo info, Object value, boolean isSet) throws IOException { if (!isSet && info.getMinOcc() == 0) { return; } if (value == null) { writeNull(out, info); return; } if (info.getMaxOcc() == 1) { writeSingleObject(out, info, value); } else { writeArrayObject(out, info, value); } }
public void writeObject(XmlOutputStream out, TypeInfo info, Object value, boolean isSet) throws IOException { if (!isSet && info.getMinOcc() == 0) { return; } if (value == null) { writeNull(out, info); return; } if (info.getMaxOcc() == 1) { writeSingleObject(out, info, value); } else { writeArrayObject(out, info, value); } }