Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.acmsl.regexpplugin.jakartaoro
Class MatchResultOROAdapter  view MatchResultOROAdapter download MatchResultOROAdapter.java

java.lang.Object
  extended byorg.acmsl.regexpplugin.jakartaoro.MatchResultOROAdapter
All Implemented Interfaces:
org.acmsl.regexpplugin.MatchResult

public class MatchResultOROAdapter
extends java.lang.Object
implements org.acmsl.regexpplugin.MatchResult

Represents the result of match in a regexp parsing process using Jakarta ORO package.

Version:
$Revision: 1.6 $

Field Summary
private  org.apache.oro.text.regex.MatchResult m__Adaptee
          Adapted object.
static Version VERSION
          Concrete version object updated everytime it's checked-in in a CVS repository.
 
Constructor Summary
MatchResultOROAdapter(org.apache.oro.text.regex.MatchResult matchResult)
          Constructs a MatchResultOROAdapter from given Jakarta ORO-specific instance.
 
Method Summary
protected  org.apache.oro.text.regex.MatchResult getAdaptee()
          Retrieves the adaptee.
static Version getClassVersion()
          Retrieves the current version of this class.
 Version getVersion()
          Retrieves the current version of this object.
 java.lang.String group(int group)
          Taken from Jakarta ORO javadoc: Returns the contents of the parenthesized subgroups of a match, counting parentheses from left to right and starting from 1.
 int groups()
          Taken from Jakarta ORO 2.0.6 javadoc: The number of groups contained in the result.
protected  void setAdaptee(org.apache.oro.text.regex.MatchResult adaptee)
          Sets the adaptee.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m__Adaptee

private org.apache.oro.text.regex.MatchResult m__Adaptee
Adapted object.


VERSION

public static final Version VERSION
Concrete version object updated everytime it's checked-in in a CVS repository.

Constructor Detail

MatchResultOROAdapter

public MatchResultOROAdapter(org.apache.oro.text.regex.MatchResult matchResult)
Constructs a MatchResultOROAdapter from given Jakarta ORO-specific instance.

Method Detail

setAdaptee

protected void setAdaptee(org.apache.oro.text.regex.MatchResult adaptee)
Sets the adaptee.


getAdaptee

protected org.apache.oro.text.regex.MatchResult getAdaptee()
Retrieves the adaptee.


group

public java.lang.String group(int group)
Taken from Jakarta ORO javadoc: Returns the contents of the parenthesized subgroups of a match, counting parentheses from left to right and starting from 1. Group 0 always refers to the entire match. For example, if the pattern foo(\d+) is used to extract a match from the input abfoo123 , then group(0) will return foo123 and group(1) will return 123 . group(2) will return null because there is only one subgroup in the original pattern.

Specified by:
group in interface org.acmsl.regexpplugin.MatchResult

groups

public int groups()
Taken from Jakarta ORO 2.0.6 javadoc: The number of groups contained in the result. This number includes the 0th group. In other words, the result refers to the number of parenthesized subgroups plus the entire match itself..

Specified by:
groups in interface org.acmsl.regexpplugin.MatchResult

getVersion

public Version getVersion()
Retrieves the current version of this object.


getClassVersion

public static Version getClassVersion()
Retrieves the current version of this class.