Tabnine Logo
PathParameter.setRegex
Code IndexAdd Tabnine to your IDE (free)

How to use
setRegex
method
in
com.ocpsoft.pretty.faces.config.mapping.PathParameter

Best Java code snippets using com.ocpsoft.pretty.faces.config.mapping.PathParameter.setRegex (Showing top 12 results out of 315)

origin: ocpsoft/prettyfaces

public PathParameter process(final PathParameter param)
{
 PathParameter result = param.copy();
 Matcher matcher = pattern.matcher(param.getExpression().getELExpression());
 if (matcher.matches())
 {
   String regex = matcher.group(3);
   result.setRegex(regex);
   result.setExpression(new ConstantExpression(matcher.group(1) + matcher.group(4)));
   result.setExpressionIsPlainText(false);
 }
 return result;
}
origin: ocpsoft/prettyfaces

public PathParameter process(final PathParameter param)
{
 PathParameter result = param.copy();
 Matcher matcher = pattern.matcher(param.getExpression().getELExpression());
 if (matcher.matches())
 {
   String regex = matcher.group(3);
   result.setRegex(regex);
   result.setExpression(new ConstantExpression(matcher.group(1) + matcher.group(4)));
   result.setExpressionIsPlainText(false);
 }
 return result;
}
origin: com.ocpsoft/prettyfaces-jsf2

public PathParameter process(final PathParameter param)
{
 PathParameter result = param.copy();
 Matcher matcher = pattern.matcher(param.getExpression().getELExpression());
 if (matcher.matches())
 {
   String regex = matcher.group(3);
   result.setRegex(regex);
   result.setExpression(new ConstantExpression(matcher.group(1) + matcher.group(4)));
   result.setExpressionIsPlainText(false);
 }
 return result;
}
origin: ocpsoft/rewrite

public PathParameter process(final PathParameter param)
{
 PathParameter result = param.copy();
 Matcher matcher = pattern.matcher(param.getExpression().getELExpression());
 if (matcher.matches())
 {
   String regex = matcher.group(3);
   result.setRegex(regex);
   result.setExpression(new ConstantExpression(matcher.group(1) + matcher.group(4)));
   result.setExpressionIsPlainText(false);
 }
 return result;
}
origin: ocpsoft/prettyfaces

public PathParameter process(final PathParameter param)
{
 PathParameter result = param.copy();
 if (result.expressionIsPlainText())
 {
   result.setRegex(result.getExpression().getELExpression());
 }
 return result;
}
origin: ocpsoft/prettyfaces

public PathParameter process(final PathParameter param)
{
 PathParameter result = param.copy();
 if (result.expressionIsPlainText())
 {
   result.setRegex(result.getExpression().getELExpression());
 }
 return result;
}
origin: ocpsoft/rewrite

public PathParameter process(final PathParameter param)
{
 PathParameter result = param.copy();
 if (result.expressionIsPlainText())
 {
   result.setRegex(result.getExpression().getELExpression());
 }
 return result;
}
origin: com.ocpsoft/prettyfaces-jsf2

public PathParameter process(final PathParameter param)
{
 PathParameter result = param.copy();
 if (result.expressionIsPlainText())
 {
   result.setRegex(result.getExpression().getELExpression());
 }
 return result;
}
origin: com.ocpsoft/prettyfaces-jsf2

public PathParameter copy()
{
 PathParameter result = new PathParameter();
 if (isNamed())
 {
   result.setName(getName());
 }
 result.setName(getName());
 result.setValue(getValue());
 result.setPosition(getPosition());
 result.setExpression(getExpression());
 result.setRegex(getRegex());
 result.setExpressionIsPlainText(expressionIsPlainText());
 return result;
}
origin: ocpsoft/rewrite

public PathParameter copy()
{
 PathParameter result = new PathParameter();
 if (isNamed())
 {
   result.setName(getName());
 }
 result.setName(getName());
 result.setValue(getValue());
 result.setPosition(getPosition());
 result.setExpression(getExpression());
 result.setRegex(getRegex());
 result.setExpressionIsPlainText(expressionIsPlainText());
 return result;
}
origin: ocpsoft/prettyfaces

public PathParameter copy()
{
 PathParameter result = new PathParameter();
 if (isNamed())
 {
   result.setName(getName());
 }
 result.setName(getName());
 result.setValue(getValue());
 result.setPosition(getPosition());
 result.setExpression(getExpression());
 result.setRegex(getRegex());
 result.setExpressionIsPlainText(expressionIsPlainText());
 return result;
}
origin: ocpsoft/prettyfaces

public PathParameter copy()
{
 PathParameter result = new PathParameter();
 if (isNamed())
 {
   result.setName(getName());
 }
 result.setName(getName());
 result.setValue(getValue());
 result.setPosition(getPosition());
 result.setExpression(getExpression());
 result.setRegex(getRegex());
 result.setExpressionIsPlainText(expressionIsPlainText());
 return result;
}
com.ocpsoft.pretty.faces.config.mappingPathParametersetRegex

Popular methods of PathParameter

  • <init>
  • copy
  • expressionIsPlainText
  • getExpression
  • getName
  • getPosition
  • getRegex
  • getValue
  • isNamed
  • setExpression
  • setExpressionIsPlainText
  • setName
  • setExpressionIsPlainText,
  • setName,
  • setPosition,
  • setValue

Popular in Java

  • Running tasks concurrently on multiple threads
  • runOnUiThread (Activity)
  • compareTo (BigDecimal)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • Runner (org.openjdk.jmh.runner)
  • 21 Best IntelliJ Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now