Codota Logo
LiveAttributeException.getElement
Code IndexAdd Codota 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)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
StringBuilder s =
  • Codota Iconnew StringBuilder()
  • Codota Iconnew StringBuilder(32)
  • Codota IconString str;new StringBuilder(str)
  • Smart code suggestions by Codota
}
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

  • Running tasks concurrently on multiple threads
  • addToBackStack (FragmentTransaction)
  • runOnUiThread (Activity)
  • getSharedPreferences (Context)
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
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