congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
PathParameter.setExpression
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: ocpsoft/rewrite

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

public static PathParameter process(final String expression)
{
 PathParameter result = new PathParameter();
 result.setExpression(new ConstantExpression(expression));
 for (PathParameterProcessor p : preProcessors)
 {
   result = p.process(result);
 }
 for (PathParameterProcessor p : processors)
 {
   result = p.process(result);
 }
 if (result == null)
 {
   throw new PrettyException("Malformed EL expression: " + expression + ", discovered.");
 }
 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 el = matcher.group(1);
   result.setExpression(new ConstantExpression("#{" + el + "}"));
   result.setExpressionIsPlainText(false);
 }
 return result;
}
origin: ocpsoft/prettyfaces

public static PathParameter process(final String expression)
{
 PathParameter result = new PathParameter();
 result.setExpression(new ConstantExpression(expression));
 for (PathParameterProcessor p : preProcessors)
 {
   result = p.process(result);
 }
 for (PathParameterProcessor p : processors)
 {
   result = p.process(result);
 }
 if (result == null)
 {
   throw new PrettyException("Malformed EL expression: " + expression + ", discovered.");
 }
 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 el = matcher.group(1);
   result.setExpression(new ConstantExpression("#{" + el + "}"));
   result.setExpressionIsPlainText(false);
 }
 return result;
}
origin: ocpsoft/rewrite

public static PathParameter process(final String expression)
{
 PathParameter result = new PathParameter();
 result.setExpression(new ConstantExpression(expression));
 for (PathParameterProcessor p : preProcessors)
 {
   result = p.process(result);
 }
 for (PathParameterProcessor p : processors)
 {
   result = p.process(result);
 }
 if (result == null)
 {
   throw new PrettyException("Malformed EL expression: " + expression + ", discovered.");
 }
 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 el = matcher.group(1);
   result.setExpression(new ConstantExpression("#{" + el + "}"));
   result.setExpressionIsPlainText(false);
 }
 return result;
}
origin: ocpsoft/prettyfaces

public static PathParameter process(final String expression)
{
 PathParameter result = new PathParameter();
 result.setExpression(new ConstantExpression(expression));
 for (PathParameterProcessor p : preProcessors)
 {
   result = p.process(result);
 }
 for (PathParameterProcessor p : processors)
 {
   result = p.process(result);
 }
 if (result == null)
 {
   throw new PrettyException("Malformed EL expression: " + expression + ", discovered.");
 }
 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: 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/rewrite

public PathParameter process(final PathParameter param)
{
 PathParameter result = param.copy();
 Matcher matcher = pattern.matcher(param.getExpression().getELExpression());
 if (matcher.matches())
 {
   String name = matcher.group(1);
   String el = matcher.group(2);
   result.setExpression(new ConstantExpression("#{" + el + "}"));
   result.setName(name);
   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 name = matcher.group(1);
   String el = matcher.group(2);
   result.setExpression(new ConstantExpression("#{" + el + "}"));
   result.setName(name);
   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 name = matcher.group(1);
   String el = matcher.group(2);
   result.setExpression(new ConstantExpression("#{" + el + "}"));
   result.setName(name);
   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 name = matcher.group(1);
   String el = matcher.group(2);
   result.setExpression(new ConstantExpression("#{" + el + "}"));
   result.setName(name);
   result.setExpressionIsPlainText(false);
 }
 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.mappingPathParametersetExpression

Popular methods of PathParameter

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

Popular in Java

  • Finding current android device location
  • setRequestProperty (URLConnection)
  • onCreateOptionsMenu (Activity)
  • getResourceAsStream (ClassLoader)
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • Pattern (java.util.regex)
    Patterns are compiled regular expressions. In many cases, convenience methods such as String#matches
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
  • Top 15 Vim 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