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

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

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

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/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);
   result.setName(name);
   result.setExpressionIsPlainText(false);
 }
 return result;
}
origin: ocpsoft/rewrite

  @Override
  public String toString()
  {
   return "PathParameter [position=" + position + ", regex=" + regex + ", name=" + getName() + ", expression=" + getExpression() + ", value=" + getValue() + "]";
  }
}
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

PathParameter currentParameter = new PathParameter();
PathValidator currentPathValidator = new PathValidator();
String currentValidatorId = "";
     String value = param.getValue();
     Object coerced = elUtils.coerceToType(context, param.getExpression().getELExpression(), value);
     for (PathValidator pv : validators)
  FacesMessage message = new FacesMessage("Could not coerce value [" + currentParameter.getValue()
      + "] on mappingId [" + mapping.getId() + "] to type in location [" + currentParameter.getExpression()
      + "]");
  handleValidationFailure(context, message, currentPathValidator.getOnError());
      + "] on mappingId [" + mapping.getId() + "] parameter [" + currentParameter.getExpression()
      + "] at position [" + currentParameter.getPosition() + "]");
  handleValidationFailure(context, message, currentPathValidator.getOnError());
origin: com.ocpsoft/prettyfaces-jsf2

@Override
public String getName()
{
 if (!isNamed())
 {
   return PATH_PARAM_NAME_PREFIX + getPosition();
 }
 return super.getName();
}
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: ocpsoft/rewrite

for (PathParameter param : params)
  String el = param.getExpression().getELExpression();
  if ((el != null) && !"".equals(el.trim()))
   String valueAsString = param.getValue();
   try
origin: ocpsoft/rewrite

PathParameter param = segment.getParameter(j).copy();
param.setValue(value);
result.add(param);
origin: ocpsoft/rewrite

String expression = expressionMatcher.group(1);
PathParameter param = ExpressionProcessorRunner.process(expression);
param.setPosition(paramIndex);
pathParameters.add(param);
 PathParameter parameter = pathParameters.get(Integer.valueOf(group));
 segment.addParameter(parameter);
 parameterMatcher.appendReplacement(regex, "(" + parameter.getRegex() + ")");
origin: com.ocpsoft/prettyfaces-jsf2

String[] values = queryParams.get(p.getName());
if ((values != null) && (values.length > 0))
queryParams.remove(p.getName());
uiParams.add(uip);
origin: com.ocpsoft/prettyfaces-jsf2

/**
* Return a list of validators that belong to the given parameter.
*/
public List<PathValidator> getValidatorsForPathParam(final PathParameter param)
{
 List<PathValidator> result = new ArrayList<PathValidator>();
 for (PathValidator pv : pathValidators)
 {
   if (pv.getIndex() == param.getPosition())
   {
    result.add(pv);
   }
 }
 return result;
}
origin: com.ocpsoft/prettyfaces-jsf2

expression = injection.getExpression().getELExpression();
value = elUtils.getValue(context, expression);
if (value == null)
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: ocpsoft/rewrite

PathParameter currentParameter = new PathParameter();
PathValidator currentPathValidator = new PathValidator();
String currentValidatorId = "";
     String value = param.getValue();
     Object coerced = elUtils.coerceToType(context, param.getExpression().getELExpression(), value);
     for (PathValidator pv : validators)
  FacesMessage message = new FacesMessage("Could not coerce value [" + currentParameter.getValue()
      + "] on mappingId [" + mapping.getId() + "] to type in location [" + currentParameter.getExpression()
      + "]");
  handleValidationFailure(context, message, currentPathValidator.getOnError());
      + "] on mappingId [" + mapping.getId() + "] parameter [" + currentParameter.getExpression()
      + "] at position [" + currentParameter.getPosition() + "]");
  handleValidationFailure(context, message, currentPathValidator.getOnError());
origin: com.ocpsoft/prettyfaces-jsf2

  @Override
  public String toString()
  {
   return "PathParameter [position=" + position + ", regex=" + regex + ", name=" + getName() + ", expression=" + getExpression() + ", value=" + getValue() + "]";
  }
}
origin: ocpsoft/rewrite

@Override
public String getName()
{
 if (!isNamed())
 {
   return PATH_PARAM_NAME_PREFIX + getPosition();
 }
 return super.getName();
}
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

for (PathParameter param : params)
  String el = param.getExpression().getELExpression();
  if ((el != null) && !"".equals(el.trim()))
   String valueAsString = param.getValue();
   try
origin: com.ocpsoft/prettyfaces-jsf2

PathParameter param = segment.getParameter(j).copy();
param.setValue(value);
result.add(param);
com.ocpsoft.pretty.faces.config.mappingPathParameter

Most used methods

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

Popular in Java

  • Making http requests using okhttp
  • setContentView (Activity)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • onRequestPermissionsResult (Fragment)
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • PrintStream (java.io)
    Fake signature of an existing Java class.
  • PrintWriter (java.io)
    Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • Top PhpStorm plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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