org.acmsl.regexpplugin.jakartaregexp
Class PatternRegexpAdapter

java.lang.Object
  |
  +--org.acmsl.regexpplugin.jakartaregexp.PatternRegexpAdapter
All Implemented Interfaces:
Pattern, org.acmsl.version.Versionable

public class PatternRegexpAdapter
extends java.lang.Object
implements Pattern

Adapts Jakarta Regexp REProgram objects to follow the generic Pattern interface defined in this API.

Version:
$Revision: 1.4 $
Author:
Jose San Leandro Armend?riz

Field Summary
static org.acmsl.version.Version VERSION
          Concrete version object updated everytime it's checked-in in a CVS repository.
 
Constructor Summary
PatternRegexpAdapter(org.apache.regexp.REProgram adaptee, org.apache.regexp.RE re)
          Constructs a PatternRegexpAdapter for given object.
 
Method Summary
static org.acmsl.version.Version getClassVersion()
          Retrieves the current version of this class.
protected  org.apache.regexp.REProgram getDelegatedInstance()
          Retrieves an instance of a REProgram class.
 org.acmsl.version.Version getVersion()
          Retrieves the current version of this object.
protected  void setAdaptee(org.apache.regexp.REProgram adaptee)
          Sets the instance to adapt.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VERSION

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

Constructor Detail

PatternRegexpAdapter

public PatternRegexpAdapter(org.apache.regexp.REProgram adaptee,
                            org.apache.regexp.RE re)
Constructs a PatternRegexpAdapter for given object.

Parameters:
adaptee - the instance to be adapted.
Method Detail

setAdaptee

protected void setAdaptee(org.apache.regexp.REProgram adaptee)
Sets the instance to adapt.

Parameters:
adaptee - the REProgram to be adapted.

getDelegatedInstance

protected org.apache.regexp.REProgram getDelegatedInstance()
Retrieves an instance of a REProgram class.

Returns:
such instance.

getVersion

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

Specified by:
getVersion in interface org.acmsl.version.Versionable
Returns:
the version object with such information.

getClassVersion

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

Returns:
the object with class version information.


Copyright © 2003 ACM S.L.. All Rights Reserved.