[TH2] Generate untyped getters for message bean
@@ -203,6 +203,20 @@ public class <% typeName %> extends BaseMessage
}
</%if>
+ public List<?> getUntyped<% field.getName() %>()
+ {
+ List<?> values = this.msg.getField("<% field.getName() %>");
+
+ if(values == null)
+ {
+ throw new FieldNotFoundException(" <% field.getName() %> ");
+ }
+
+ List<Object> result = new ArrayList<>(values.size());
+ result.addAll(values);
+ return result;
+ }
+
<%else>
public <% typeName %> set<% field.getName() %>(<% fieldTypeName %> value)
{
@@ -276,6 +290,11 @@ public class <% typeName %> extends BaseMessage
return <% methodCall %>;
}
+
+ public Object getUntyped<% field.getName() %>()
+ {
+ return this.msg.getField("<% field.getName() %>");
+ }
</%if>
public IFilter get<% field.getName() %>Filter()
