org.radeox.regex
Class OroMatchResult

java.lang.Object
  extended by org.radeox.regex.MatchResult
      extended by org.radeox.regex.OroMatchResult

public class OroMatchResult
extends MatchResult


Constructor Summary
OroMatchResult(org.apache.oro.text.regex.MatchResult matchResult)
           
 
Method Summary
 int beginOffset(int i)
          The offset of the beginning of the match for the group with the index i
 int endOffset(int i)
          The offset of the end of the match for the group with the index i
 java.lang.String group(int i)
          Return the content of group with the index i
 int groups()
          Returns the number of groups (...) found
 
Methods inherited from class org.radeox.regex.MatchResult
create
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OroMatchResult

public OroMatchResult(org.apache.oro.text.regex.MatchResult matchResult)
Method Detail

groups

public int groups()
Description copied from class: MatchResult
Returns the number of groups (...) found

Specified by:
groups in class MatchResult
Returns:
Number of found groups

group

public java.lang.String group(int i)
Description copied from class: MatchResult
Return the content of group with the index i

Specified by:
group in class MatchResult
Parameters:
i - index for the group
Returns:
Content of the group with the index i

beginOffset

public int beginOffset(int i)
Description copied from class: MatchResult
The offset of the beginning of the match for the group with the index i

Specified by:
beginOffset in class MatchResult
Parameters:
i - index for the group
Returns:
Offset of the group

endOffset

public int endOffset(int i)
Description copied from class: MatchResult
The offset of the end of the match for the group with the index i

Specified by:
endOffset in class MatchResult
Parameters:
i - index for the group
Returns:
Offset of the group