if (members.size() > 0) {
out <<
endl <<
- indent() << "public final Isset __isset = new Isset();" << endl <<
- indent() << "public static final class Isset implements java.io.Serializable {" << endl;
+ indent() << "private final Isset __isset = new Isset();" << endl <<
+ indent() << "private static final class Isset implements java.io.Serializable {" << endl;
indent_up();
for (m_iter = members.begin(); m_iter != members.end(); ++m_iter) {
indent(out) <<
indent(out) << "return this.__isset." << field_name << ";" << endl;
indent_down();
indent(out) << "}" << endl << endl;
+
+ if(!bean_style_) {
+ indent(out) << "public void set" << cap_name << get_cap_name("isSet") << "(boolean value) {" << endl;
+ indent_up();
+ indent(out) << "this.__isset." << field_name << " = value;" << endl;
+ indent_down();
+ indent(out) << "}";
+ }
}
}
* @param oprot Output protocol
*/
public void write(TProtocol oprot) throws TException;
-
+
/**
* Check if a field is currently set or unset.
*
* @param fieldId The field's id tag as found in the IDL.
*/
public boolean isSet(int fieldId);
-
+
/**
* Get a field's value by id. Primitive types will be wrapped in the
* appropriate "boxed" types.
* @param fieldId The field's id tag as found in the IDL.
*/
public Object getFieldValue(int fieldId);
-
+
/**
* Set a field's value by id. Primitive types must be "boxed" in the
* appropriate object wrapper type.