Codota Logo
MarshallingException
Code IndexAdd Codota to your IDE (free)

How to use
MarshallingException
in
org.jboss.windup.util.exception

Best Java code snippets using org.jboss.windup.util.exception.MarshallingException (Showing top 6 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Dictionary d =
  • Codota Iconnew Hashtable()
  • Codota IconBundle bundle;bundle.getHeaders()
  • Codota Iconnew Properties()
  • Smart code suggestions by Codota
}
origin: org.jboss.windup.utils/utils

  public static Object executeXPath(Node document, XPathExpression expr, QName result) throws XPathException, MarshallingException
  {
    try
    {
      return expr.evaluate(document, result);
    }
    catch (Exception e)
    {
      throw new MarshallingException("Exception unmarshalling XML.", e);
    }
  }
}
origin: windup/windup

  /**
   * Executes the given {@link XPathExpression} and returns the result with the type specified.
   */
  public static Object executeXPath(Node document, XPathExpression expr, QName result) throws XPathException, MarshallingException
  {
    try
    {
      return expr.evaluate(document, result);
    }
    catch (Exception e)
    {
      throw new MarshallingException("Exception unmarshalling XML.", e);
    }
  }
}
origin: org.jboss.windup.utils/windup-utils

  /**
   * Executes the given {@link XPathExpression} and returns the result with the type specified.
   */
  public static Object executeXPath(Node document, XPathExpression expr, QName result) throws XPathException, MarshallingException
  {
    try
    {
      return expr.evaluate(document, result);
    }
    catch (Exception e)
    {
      throw new MarshallingException("Exception unmarshalling XML.", e);
    }
  }
}
origin: org.jboss.windup.utils/windup-utils

/**
 * Executes the given xpath and returns the result with the type specified.
 */
public static Object executeXPath(Node document, String xpathExpression, Map<String, String> namespaceMapping, QName result)
      throws XPathException, MarshallingException
{
  NamespaceMapContext mapContext = new NamespaceMapContext(namespaceMapping);
  try
  {
    XPathFactory xPathfactory = XPathFactory.newInstance();
    XPath xpath = xPathfactory.newXPath();
    xpath.setNamespaceContext(mapContext);
    XPathExpression expr = xpath.compile(xpathExpression);
    return executeXPath(document, expr, result);
  }
  catch (XPathExpressionException e)
  {
    throw new XPathException("Xpath(" + xpathExpression + ") cannot be compiled", e);
  }
  catch (Exception e)
  {
    throw new MarshallingException("Exception unmarshalling XML.", e);
  }
}
origin: org.jboss.windup.utils/utils

public static Object executeXPath(Node document, String xpathExpression, Map<String, String> namespaceMapping, QName result)
      throws XPathException, MarshallingException
{
  NamespaceMapContext mapContext = new NamespaceMapContext(namespaceMapping);
  try
  {
    XPathFactory xPathfactory = XPathFactory.newInstance();
    XPath xpath = xPathfactory.newXPath();
    xpath.setNamespaceContext(mapContext);
    XPathExpression expr = xpath.compile(xpathExpression);
    return executeXPath(document, expr, result);
  }
  catch (XPathExpressionException e)
  {
    throw new XPathException("Xpath(" + xpathExpression + ") cannot be compiled", e);
  }
  catch (Exception e)
  {
    throw new MarshallingException("Exception unmarshalling XML.", e);
  }
}
origin: windup/windup

/**
 * Executes the given xpath and returns the result with the type specified.
 */
public static Object executeXPath(Node document, String xpathExpression, Map<String, String> namespaceMapping, QName result)
      throws XPathException, MarshallingException
{
  NamespaceMapContext mapContext = new NamespaceMapContext(namespaceMapping);
  try
  {
    XPathFactory xPathfactory = XPathFactory.newInstance();
    XPath xpath = xPathfactory.newXPath();
    xpath.setNamespaceContext(mapContext);
    XPathExpression expr = xpath.compile(xpathExpression);
    return executeXPath(document, expr, result);
  }
  catch (XPathExpressionException e)
  {
    throw new XPathException("Xpath(" + xpathExpression + ") cannot be compiled", e);
  }
  catch (Exception e)
  {
    throw new MarshallingException("Exception unmarshalling XML.", e);
  }
}
org.jboss.windup.util.exceptionMarshallingException

Most used methods

  • <init>

Popular in Java

  • Running tasks concurrently on multiple threads
  • getSupportFragmentManager (FragmentActivity)
  • notifyDataSetChanged (ArrayAdapter)
  • scheduleAtFixedRate (ScheduledExecutorService)
    Creates and executes a periodic action that becomes enabled first after the given initial delay, and
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • LinkedHashMap (java.util)
    Hash table and linked list implementation of the Map interface, with predictable iteration order. Th
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now