Cisco Cisco Collaboration Server Dynamic Content Adapter Developer's Guide
DCA 2.01 Parser API Specification
Class ParsedMatch 89
setGroupJS
public java.lang.String setGroupJS(int groupNum,
java.lang.String newGroupString)
Sets a particular subgroup to a new string. This may result in other subgroups
in this match or it's ancestors being declared invalid (if the replaced group is
sufficiently contained in the group being replaced). An exception may be
thrown if the group does not exist. The requested group may also no longer
be valid (or null), which will also throw an exception. JavaScript users of this
object should call this method rather than the setGroup method, which is
overloaded and seems not to call the method with the correct signature.
in this match or it's ancestors being declared invalid (if the replaced group is
sufficiently contained in the group being replaced). An exception may be
thrown if the group does not exist. The requested group may also no longer
be valid (or null), which will also throw an exception. JavaScript users of this
object should call this method rather than the setGroup method, which is
overloaded and seems not to call the method with the correct signature.
Parameters:
groupNum
- Requested group number
newGroupString
- String with which to replace existing subgroup
Returns:
Description of the Returned Value
Throws:
GroupIndexOutOfBoundsException
- Thrown if the requested group number
is greater than the number of groups in this match
InvalidSubgroupException
- Thrown if the requested group is no longer
valid or is null
Since:
2.0
setGroup