Tabnine Logo
SAXPathException.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
org.jaxen.saxpath.SAXPathException
constructor

Best Java code snippets using org.jaxen.saxpath.SAXPathException.<init> (Showing top 20 results out of 315)

origin: jaxen/jaxen

  throw new SAXPathException( "Class [" + className 
   + "] does not implement the org.jaxen.saxpath.XPathReader interface." );
throw new SAXPathException( e );
throw new SAXPathException( e );
throw new SAXPathException( e );
origin: smooks/smooks

  public static String getNamespace(String nsPrefix, Properties namespaces) throws SAXPathException {
    String namespace = namespaces.getProperty(nsPrefix);

    if(namespace == null) {
      namespace = Namespace.SMOOKS_PREFIX_MAPPINGS.getProperty(nsPrefix);
      if(namespace == null) {
        throw new SAXPathException("Unknown namespace prefix '" + nsPrefix + "'.  You must define the namespace prefix-to-uri mappings in the Smooks <core:namespaces> configuration section.");
      }
    }
    return namespace;
  }
}
origin: org.virtuslab/milyn-smooks-core

  public static String getNamespace(String nsPrefix, Properties namespaces) throws SAXPathException {
    String namespace = namespaces.getProperty(nsPrefix);

    if(namespace == null) {
      namespace = Namespace.SMOOKS_PREFIX_MAPPINGS.getProperty(nsPrefix);
      if(namespace == null) {
        throw new SAXPathException("Unknown namespace prefix '" + nsPrefix + "'.  You must define the namespace prefix-to-uri mappings in the Smooks <core:namespaces> configuration section.");
      }
    }
    return namespace;
  }
}
origin: org.dhatim/milyn-smooks-core

  public static String getNamespace(String nsPrefix, Properties namespaces) throws SAXPathException {
    String namespace = namespaces.getProperty(nsPrefix);

    if(namespace == null) {
      namespace = Namespace.SMOOKS_PREFIX_MAPPINGS.getProperty(nsPrefix);
      if(namespace == null) {
        throw new SAXPathException("Unknown namespace prefix '" + nsPrefix + "'.  You must define the namespace prefix-to-uri mappings in the Smooks <core:namespaces> configuration section.");
      }
    }
    return namespace;
  }
}
origin: org.milyn/milyn-smooks-all

  public static String getNamespace(String nsPrefix, Properties namespaces) throws SAXPathException {
    String namespace = namespaces.getProperty(nsPrefix);

    if(namespace == null) {
      namespace = Namespace.SMOOKS_PREFIX_MAPPINGS.getProperty(nsPrefix);
      if(namespace == null) {
        throw new SAXPathException("Unknown namespace prefix '" + nsPrefix + "'.  You must define the namespace prefix-to-uri mappings in the Smooks <core:namespaces> configuration section.");
      }
    }
    return namespace;
  }
}
origin: org.milyn/milyn-smooks-core

  public static String getNamespace(String nsPrefix, Properties namespaces) throws SAXPathException {
    String namespace = namespaces.getProperty(nsPrefix);

    if(namespace == null) {
      namespace = Namespace.SMOOKS_PREFIX_MAPPINGS.getProperty(nsPrefix);
      if(namespace == null) {
        throw new SAXPathException("Unknown namespace prefix '" + nsPrefix + "'.  You must define the namespace prefix-to-uri mappings in the Smooks <core:namespaces> configuration section.");
      }
    }
    return namespace;
  }
}
origin: org.milyn/milyn-smooks-all

/**
 * Set the namespaces on the specified set of selector steps.
 * @param steps The selector steps.
 * @param namespaces The set of selector steps to be updated.
 * @return The set of selector steps (as passed in the 'steps' argument).
 * @throws org.jaxen.saxpath.SAXPathException Error setting namespaces
 */
public static SelectorStep[] setNamespaces(SelectorStep[] steps, Properties namespaces) throws SAXPathException {
  AssertArgument.isNotNull(steps, "steps");
  AssertArgument.isNotNull(namespaces, "namespaces");
  for(int i = 0; i < steps.length; i++) {
    SelectorStep step = steps[i];
    try {
      step.buildPredicatesEvaluator(namespaces);
    } catch (SAXPathException e) {
      throw e;
    } catch (Exception e) {
      throw new SAXPathException("Error compiling PredicatesEvaluator.", e);
    }
    //
    if(i < steps.length - 1 && step.accessesText()) {
      throw new SAXPathException("Unsupported XPath selector expression '" + step.getXPathExpression() + "'.  XPath 'text()' tokens are only supported in the last step.");
    }
  }
  return steps;
}
origin: smooks/smooks

/**
 * Set the namespaces on the specified set of selector steps.
 * @param steps The selector steps.
 * @param namespaces The set of selector steps to be updated.
 * @return The set of selector steps (as passed in the 'steps' argument).
 * @throws org.jaxen.saxpath.SAXPathException Error setting namespaces
 */
public static SelectorStep[] setNamespaces(SelectorStep[] steps, Properties namespaces) throws SAXPathException {
  AssertArgument.isNotNull(steps, "steps");
  AssertArgument.isNotNull(namespaces, "namespaces");
  for(int i = 0; i < steps.length; i++) {
    SelectorStep step = steps[i];
    try {
      step.buildPredicatesEvaluator(namespaces);
    } catch (SAXPathException e) {
      throw e;
    } catch (Exception e) {
      throw new SAXPathException("Error compiling PredicatesEvaluator.", e);
    }
    //
    if(i < steps.length - 1 && step.accessesText()) {
      throw new SAXPathException("Unsupported XPath selector expression '" + step.getXPathExpression() + "'.  XPath 'text()' tokens are only supported in the last step.");
    }
  }
  return steps;
}
origin: org.milyn/milyn-smooks-core

/**
 * Set the namespaces on the specified set of selector steps.
 * @param steps The selector steps.
 * @param namespaces The set of selector steps to be updated.
 * @return The set of selector steps (as passed in the 'steps' argument).
 * @throws org.jaxen.saxpath.SAXPathException Error setting namespaces
 */
public static SelectorStep[] setNamespaces(SelectorStep[] steps, Properties namespaces) throws SAXPathException {
  AssertArgument.isNotNull(steps, "steps");
  AssertArgument.isNotNull(namespaces, "namespaces");
  for(int i = 0; i < steps.length; i++) {
    SelectorStep step = steps[i];
    try {
      step.buildPredicatesEvaluator(namespaces);
    } catch (SAXPathException e) {
      throw e;
    } catch (Exception e) {
      throw new SAXPathException("Error compiling PredicatesEvaluator.", e);
    }
    //
    if(i < steps.length - 1 && step.accessesText()) {
      throw new SAXPathException("Unsupported XPath selector expression '" + step.getXPathExpression() + "'.  XPath 'text()' tokens are only supported in the last step.");
    }
  }
  return steps;
}
origin: smooks/smooks

public XPathExpressionEvaluator build() throws SAXPathException
{
  PredicatesEvaluator evaluator = new PredicatesEvaluator();
  if (!(step instanceof NameStep)) {
    throw new SAXPathException("Unsupported step '" + step.getText() + "'.");
  }
  addEvaluators(step, evaluator);
  // Add the evaluators for the attribute step...
  if(attributeStep != null) {
    addEvaluators(attributeStep, evaluator);
  }
  return evaluator;
}
origin: org.virtuslab/milyn-smooks-core

public XPathExpressionEvaluator build() throws SAXPathException, NotFoundException, CannotCompileException, InstantiationException, IllegalAccessException {
  PredicatesEvaluator evaluator = new PredicatesEvaluator();
  if (!(step instanceof NameStep)) {
    throw new SAXPathException("Unsupported step '" + step.getText() + "'.");
  }
  addEvaluators(step, evaluator);
  // Add the evaluators for the attribute step...
  if(attributeStep != null) {
    addEvaluators(attributeStep, evaluator);
  }
  return evaluator;
}
origin: org.dhatim/milyn-smooks-core

public XPathExpressionEvaluator build() throws SAXPathException, NotFoundException, CannotCompileException, InstantiationException, IllegalAccessException {
  PredicatesEvaluator evaluator = new PredicatesEvaluator();
  if (!(step instanceof NameStep)) {
    throw new SAXPathException("Unsupported step '" + step.getText() + "'.");
  }
  addEvaluators(step, evaluator);
  // Add the evaluators for the attribute step...
  if(attributeStep != null) {
    addEvaluators(attributeStep, evaluator);
  }
  return evaluator;
}
origin: org.milyn/milyn-smooks-core

public XPathExpressionEvaluator build() throws SAXPathException
{
  PredicatesEvaluator evaluator = new PredicatesEvaluator();
  if (!(step instanceof NameStep)) {
    throw new SAXPathException("Unsupported step '" + step.getText() + "'.");
  }
  addEvaluators(step, evaluator);
  // Add the evaluators for the attribute step...
  if(attributeStep != null) {
    addEvaluators(attributeStep, evaluator);
  }
  return evaluator;
}
origin: org.milyn/milyn-smooks-all

public XPathExpressionEvaluator build() throws SAXPathException
{
  PredicatesEvaluator evaluator = new PredicatesEvaluator();
  if (!(step instanceof NameStep)) {
    throw new SAXPathException("Unsupported step '" + step.getText() + "'.");
  }
  addEvaluators(step, evaluator);
  // Add the evaluators for the attribute step...
  if(attributeStep != null) {
    addEvaluators(attributeStep, evaluator);
  }
  return evaluator;
}
origin: org.milyn/milyn-smooks-core

public void buildPredicatesEvaluator(Properties namespaces) throws SAXPathException, NotFoundException, CannotCompileException, IllegalAccessException, InstantiationException {
  AssertArgument.isNotNull(namespaces, "namespaces");
  if(predicatesEvaluator != null) {
    return;
  }
  if(step != null) {
    PredicatesEvaluatorBuilder builder = new PredicatesEvaluatorBuilder(step, attributeStep, this, namespaces);
    try {
      predicatesEvaluator = builder.build();
    } catch (SAXPathException e) {
      throw new SAXPathException("Error processing XPath selector expression '" + xpathExpression + "'.", e);
    }
    // And update the QNames again now that we have the namespaces...
    targetElement = toQName(step, builder);
    if(attributeStep != null) {
      targetAttribute = toQName(attributeStep, builder);
    }
  } else {
    predicatesEvaluator = PassThruEvaluator.INSTANCE;
  }
}
origin: smooks/smooks

public void buildPredicatesEvaluator(Properties namespaces) throws SAXPathException, NotFoundException, CannotCompileException, IllegalAccessException, InstantiationException {
  AssertArgument.isNotNull(namespaces, "namespaces");
  if(predicatesEvaluator != null) {
    return;
  }
  if(step != null) {
    PredicatesEvaluatorBuilder builder = new PredicatesEvaluatorBuilder(step, attributeStep, this, namespaces);
    try {
      predicatesEvaluator = builder.build();
    } catch (SAXPathException e) {
      throw new SAXPathException("Error processing XPath selector expression '" + xpathExpression + "'.", e);
    }
    // And update the QNames again now that we have the namespaces...
    targetElement = toQName(step, builder);
    if(attributeStep != null) {
      targetAttribute = toQName(attributeStep, builder);
    }
  } else {
    predicatesEvaluator = PassThruEvaluator.INSTANCE;
  }
}
origin: org.dhatim/milyn-smooks-core

public void buildPredicatesEvaluator(Properties namespaces) throws SAXPathException, NotFoundException, CannotCompileException, IllegalAccessException, InstantiationException {
  AssertArgument.isNotNull(namespaces, "namespaces");
  if(predicatesEvaluator != null) {
    return;
  }
  if(step != null) {
    PredicatesEvaluatorBuilder builder = new PredicatesEvaluatorBuilder(step, attributeStep, this, namespaces);
    try {
      predicatesEvaluator = builder.build();
    } catch (SAXPathException e) {
      throw new SAXPathException("Error processing XPath selector expression '" + xpathExpression + "'.", e);
    }
    // And update the QNames again now that we have the namespaces...
    targetElement = toQName(step, builder);
    if(attributeStep != null) {
      targetAttribute = toQName(attributeStep, builder);
    }
  } else {
    predicatesEvaluator = PassThruEvaluator.INSTANCE;
  }
}
origin: org.virtuslab/milyn-smooks-core

public void buildPredicatesEvaluator(Properties namespaces) throws SAXPathException, NotFoundException, CannotCompileException, IllegalAccessException, InstantiationException {
  AssertArgument.isNotNull(namespaces, "namespaces");
  if(predicatesEvaluator != null) {
    return;
  }
  if(step != null) {
    PredicatesEvaluatorBuilder builder = new PredicatesEvaluatorBuilder(step, attributeStep, this, namespaces);
    try {
      predicatesEvaluator = builder.build();
    } catch (SAXPathException e) {
      throw new SAXPathException("Error processing XPath selector expression '" + xpathExpression + "'.", e);
    }
    // And update the QNames again now that we have the namespaces...
    targetElement = toQName(step, builder);
    if(attributeStep != null) {
      targetAttribute = toQName(attributeStep, builder);
    }
  } else {
    predicatesEvaluator = PassThruEvaluator.INSTANCE;
  }
}
origin: org.milyn/milyn-smooks-all

public void buildPredicatesEvaluator(Properties namespaces) throws SAXPathException, NotFoundException, CannotCompileException, IllegalAccessException, InstantiationException {
  AssertArgument.isNotNull(namespaces, "namespaces");
  if(predicatesEvaluator != null) {
    return;
  }
  if(step != null) {
    PredicatesEvaluatorBuilder builder = new PredicatesEvaluatorBuilder(step, attributeStep, this, namespaces);
    try {
      predicatesEvaluator = builder.build();
    } catch (SAXPathException e) {
      throw new SAXPathException("Error processing XPath selector expression '" + xpathExpression + "'.", e);
    }
    // And update the QNames again now that we have the namespaces...
    targetElement = toQName(step, builder);
    if(attributeStep != null) {
      targetAttribute = toQName(attributeStep, builder);
    }
  } else {
    predicatesEvaluator = PassThruEvaluator.INSTANCE;
  }
}
origin: org.dhatim/milyn-smooks-core

throw new SAXPathException("Unsupported XPath value token '" + expr.getText() + "'.");
org.jaxen.saxpathSAXPathException<init>

Javadoc

Create a new SAXPathException with a given message.

Popular methods of SAXPathException

  • getMessage
  • getCause
    Returns the exception that caused this exception. This is necessary to implement Java 1.4 chained ex
  • initCause
    Sets the exception that caused this exception. This is necessary to implement Java 1.4 chained excep
  • toString

Popular in Java

  • Making http post requests using okhttp
  • putExtra (Intent)
  • scheduleAtFixedRate (Timer)
  • setContentView (Activity)
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • JComboBox (javax.swing)
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
  • From CI to AI: The AI layer in your organization
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