/** * Returns the number of groups associated with the specified count tag. * * @param tag the count tag number * @return the number of times the group repeats */ public int getGroupCount(int tag) { return getGroups(tag).size(); }
/** * Returns the number of groups associated with the specified count tag. * * @param tag the count tag number * @return the number of times the group repeats */ public int getGroupCount(int tag) { return getGroups(tag).size(); }
/** * Returns the number of groups associated with the specified count tag. * * @param tag the count tag number * @return the number of times the group repeats */ public int getGroupCount(int tag) { return getGroups(tag).size(); }
public void removeGroup(int field) { getGroups(field).clear(); removeField(field); }
public Group getGroup(int num, int groupTag) throws FieldNotFound { List<Group> groupList = getGroups(groupTag); if (num > groupList.size()) { throw new FieldNotFound(groupTag + ", index=" + num); } return groupList.get(num - 1); }
public void removeGroup(int num, int field) { final List<Group> groupList = getGroups(field); if (num <= groupList.size()) { groupList.remove(num - 1); } if (!groupList.isEmpty()) { setGroupCount(field, groupList.size()); } }
public Group getGroup(int num, int groupTag) throws FieldNotFound { List<Group> groupList = getGroups(groupTag); if (num > groupList.size()) { throw new FieldNotFound(groupTag + ", index=" + num); } return groupList.get(num - 1); }
public Group getGroup(int num, int groupTag) throws FieldNotFound { List<Group> groupList = getGroups(groupTag); if (num > groupList.size()) { throw new FieldNotFound(groupTag + ", index=" + num); } return groupList.get(num - 1); }
public void removeGroup(int num, int field) { final List<Group> groupList = getGroups(field); if (num <= groupList.size()) { groupList.remove(num - 1); } if (!groupList.isEmpty()) { setGroupCount(field, groupList.size()); } }
public void removeGroup(int num, int field) { final List<Group> groupList = getGroups(field); if (num <= groupList.size()) { groupList.remove(num - 1); } if (!groupList.isEmpty()) { setGroupCount(field, groupList.size()); } }
public void removeGroup(int field) { getGroups(field).clear(); removeField(field); }
public void replaceGroup(int num, Group group) { final int offset = num - 1; final List<Group> groupList = getGroups(group.getFieldTag()); if (offset < 0 || offset >= groupList.size()) { return; } groupList.set(offset, new Group(group)); }
public void addGroupRef(Group group) { int countTag = group.getFieldTag(); List<Group> currentGroups = getGroups(countTag); currentGroups.add(group); setGroupCount(countTag, currentGroups.size()); }
public void replaceGroup(int num, Group group) { final int offset = num - 1; final List<Group> groupList = getGroups(group.getFieldTag()); if (offset < 0 || offset >= groupList.size()) { return; } groupList.set(offset, new Group(group)); }
public void addGroupRef(Group group) { int countTag = group.getFieldTag(); List<Group> currentGroups = getGroups(countTag); currentGroups.add(group); setGroupCount(countTag, currentGroups.size()); }
public void addGroupRef(Group group) { int countTag = group.getFieldTag(); List<Group> currentGroups = getGroups(countTag); currentGroups.add(group); setGroupCount(countTag, currentGroups.size()); }
public void replaceGroup(int num, Group group) { final int offset = num - 1; final List<Group> groupList = getGroups(group.getFieldTag()); if (offset < 0 || offset >= groupList.size()) { return; } groupList.set(offset, new Group(group)); }
public Group getGroup(int num, Group group) throws FieldNotFound { final List<Group> groupList = getGroups(group.getFieldTag()); if (num > groupList.size()) { throw new FieldNotFound(group.getFieldTag() + ", index=" + num); } final Group grp = groupList.get(num - 1); group.setFields(grp); group.setGroups(grp); return group; }
public Group getGroup(int num, Group group) throws FieldNotFound { final List<Group> groupList = getGroups(group.getFieldTag()); if (num > groupList.size()) { throw new FieldNotFound(group.getFieldTag() + ", index=" + num); } final Group grp = groupList.get(num - 1); group.setFields(grp); group.setGroups(grp); return group; }
public Group getGroup(int num, Group group) throws FieldNotFound { final List<Group> groupList = getGroups(group.getFieldTag()); if (num > groupList.size()) { throw new FieldNotFound(group.getFieldTag() + ", index=" + num); } final Group grp = groupList.get(num - 1); group.setFields(grp); group.setGroups(grp); return group; }