rewrite-impl-config 1.0.2.Final

org.ocpsoft.rewrite.bind
Class RegexParameter

java.lang.Object
  extended by org.ocpsoft.rewrite.bind.DefaultBindable<Parameter<T>>
      extended by org.ocpsoft.rewrite.param.ParameterBuilder<RegexParameter,java.lang.String>
          extended by org.ocpsoft.rewrite.bind.RegexParameter
All Implemented Interfaces:
Bindable<Parameter<java.lang.String>>, Parameter<java.lang.String>

public class RegexParameter
extends ParameterBuilder<RegexParameter,java.lang.String>

An String specific implementation of Bindable

Author:
Lincoln Baxter, III

Constructor Summary
RegexParameter(CapturingGroup capture)
          Create a new instance for the given CapturingGroup, using ".*" as the default pattern.
 
Method Summary
 CapturingGroup getCapture()
           
 java.lang.String getName()
           
 java.lang.String getPattern()
           
 RegexParameter matches(java.lang.String pattern)
           
 java.lang.String toString()
           
 
Methods inherited from class org.ocpsoft.rewrite.param.ParameterBuilder
constrainedBy, getConstraints, getTransforms, transformedBy
 
Methods inherited from class org.ocpsoft.rewrite.bind.DefaultBindable
bindsTo, getBindings
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.ocpsoft.rewrite.bind.Bindable
bindsTo, getBindings
 

Constructor Detail

RegexParameter

public RegexParameter(CapturingGroup capture)
Create a new instance for the given CapturingGroup, using ".*" as the default pattern.

Method Detail

matches

public RegexParameter matches(java.lang.String pattern)

getPattern

public java.lang.String getPattern()

getName

public java.lang.String getName()

getCapture

public CapturingGroup getCapture()

toString

public java.lang.String toString()
Overrides:
toString in class ParameterBuilder<RegexParameter,java.lang.String>

rewrite-impl-config 1.0.2.Final

Copyright © 2012 OCPsoft. All Rights Reserved.