Tabnine Logo
LiveAttributeException.getElement
Code IndexAdd Tabnine to your IDE (free)

How to use
getElement
method
in
org.apache.batik.dom.svg.LiveAttributeException

Best Java code snippets using org.apache.batik.dom.svg.LiveAttributeException.getElement (Showing top 3 results out of 315)

origin: org.apache.xmlgraphics/batik-bridge

/**
 * Constructs a new <code>BridgeException</code> based on the specified
 * <code>LiveAttributeException</code>.
 *
 * @param ctx the bridge context to use for determining the element's
 *            source position
 * @param ex the {@link LiveAttributeException}
 */
public BridgeException(BridgeContext ctx, LiveAttributeException ex) {
  switch (ex.getCode()) {
    case LiveAttributeException.ERR_ATTRIBUTE_MISSING:
      this.code = ErrorConstants.ERR_ATTRIBUTE_MISSING;
      break;
    case LiveAttributeException.ERR_ATTRIBUTE_MALFORMED:
      this.code = ErrorConstants.ERR_ATTRIBUTE_VALUE_MALFORMED;
      break;
    case LiveAttributeException.ERR_ATTRIBUTE_NEGATIVE:
      this.code = ErrorConstants.ERR_LENGTH_NEGATIVE;
      break;
    default:
      throw new IllegalStateException
        ("Unknown LiveAttributeException error code "
         + ex.getCode());
  }
  this.e = ex.getElement();
  this.params = new Object[] { ex.getAttributeName(), ex.getValue() };
  if (e != null && ctx != null) {
    this.line = ctx.getDocumentLoader().getLineNumber(e);
  }
}
origin: fr.avianey.apache-xmlgraphics/batik

/**
 * Constructs a new <code>BridgeException</code> based on the specified
 * <code>LiveAttributeException</code>.
 *
 * @param ctx the bridge context to use for determining the element's
 *            source position
 * @param ex the {@link LiveAttributeException}
 */
public BridgeException(BridgeContext ctx, LiveAttributeException ex) {
  switch (ex.getCode()) {
    case LiveAttributeException.ERR_ATTRIBUTE_MISSING:
      this.code = ErrorConstants.ERR_ATTRIBUTE_MISSING;
      break;
    case LiveAttributeException.ERR_ATTRIBUTE_MALFORMED:
      this.code = ErrorConstants.ERR_ATTRIBUTE_VALUE_MALFORMED;
      break;
    case LiveAttributeException.ERR_ATTRIBUTE_NEGATIVE:
      this.code = ErrorConstants.ERR_LENGTH_NEGATIVE;
      break;
    default:
      throw new IllegalStateException
        ("Unknown LiveAttributeException error code "
         + ex.getCode());
  }
  this.e = ex.getElement();
  this.params = new Object[] { ex.getAttributeName(), ex.getValue() };
  if (e != null && ctx != null) {
    this.line = ctx.getDocumentLoader().getLineNumber(e);
  }
}
origin: apache/batik

/**
 * Constructs a new <code>BridgeException</code> based on the specified
 * <code>LiveAttributeException</code>.
 *
 * @param ctx the bridge context to use for determining the element's
 *            source position
 * @param ex the {@link LiveAttributeException}
 */
public BridgeException(BridgeContext ctx, LiveAttributeException ex) {
  switch (ex.getCode()) {
    case LiveAttributeException.ERR_ATTRIBUTE_MISSING:
      this.code = ErrorConstants.ERR_ATTRIBUTE_MISSING;
      break;
    case LiveAttributeException.ERR_ATTRIBUTE_MALFORMED:
      this.code = ErrorConstants.ERR_ATTRIBUTE_VALUE_MALFORMED;
      break;
    case LiveAttributeException.ERR_ATTRIBUTE_NEGATIVE:
      this.code = ErrorConstants.ERR_LENGTH_NEGATIVE;
      break;
    default:
      throw new IllegalStateException
        ("Unknown LiveAttributeException error code "
         + ex.getCode());
  }
  this.e = ex.getElement();
  this.params = new Object[] { ex.getAttributeName(), ex.getValue() };
  if (e != null && ctx != null) {
    this.line = ctx.getDocumentLoader().getLineNumber(e);
  }
}
org.apache.batik.dom.svgLiveAttributeExceptiongetElement

Javadoc

Returns the element on which the error occurred.

Popular methods of LiveAttributeException

  • <init>
    Constructs a new LiveAttributeException with the specified parameters.
  • getAttributeName
    Returns the attribute name.
  • getCode
    Returns the error code.
  • getValue
    Returns the problematic attribute value.

Popular in Java

  • Finding current android device location
  • notifyDataSetChanged (ArrayAdapter)
  • requestLocationUpdates (LocationManager)
  • getSystemService (Context)
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • Path (java.nio.file)
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • PriorityQueue (java.util)
    A PriorityQueue holds elements on a priority heap, which orders the elements according to their natu
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • 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