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

How to use
org.apache.batik.dom.svg.LiveAttributeException
constructor

Best Java code snippets using org.apache.batik.dom.svg.LiveAttributeException.<init> (Showing top 20 results out of 315)

origin: org.apache.xmlgraphics/batik-anim

public void endNumberList() {
  if (count != 4) {
    throw new LiveAttributeException
      (element, localName,
       LiveAttributeException.ERR_ATTRIBUTE_MALFORMED,
       s);
  }
}
public void numberValue(float v) throws ParseException {
origin: apache/batik

public void endNumberList() {
  if (count != 4) {
    throw new LiveAttributeException
      (element, localName,
       LiveAttributeException.ERR_ATTRIBUTE_MALFORMED,
       s);
  }
}
public void numberValue(float v) throws ParseException {
origin: org.apache.xmlgraphics/batik-anim

  public void numberValue(float v) throws ParseException {
    if (count < 4) {
      numbers[count] = v;
    }
    if (v < 0 && (count == 2 || count == 3)) {
      throw new LiveAttributeException
        (element, localName,
         LiveAttributeException.ERR_ATTRIBUTE_MALFORMED,
         s);
    }
    count++;
  }
});
origin: fr.avianey.apache-xmlgraphics/batik

public void endNumberList() {
  if (count != 4) {
    throw new LiveAttributeException
      (element, localName,
       LiveAttributeException.ERR_ATTRIBUTE_MALFORMED,
       s);
  }
}
public void numberValue(float v) throws ParseException {
origin: fr.avianey.apache-xmlgraphics/batik

  public void numberValue(float v) throws ParseException {
    if (count < 4) {
      numbers[count] = v;
    }
    if (v < 0 && (count == 2 || count == 3)) {
      throw new LiveAttributeException
        (element, localName,
         LiveAttributeException.ERR_ATTRIBUTE_MALFORMED,
         s);
    }
    count++;
  }
});
origin: apache/batik

  public void numberValue(float v) throws ParseException {
    if (count < 4) {
      numbers[count] = v;
    }
    if (v < 0 && (count == 2 || count == 3)) {
      throw new LiveAttributeException
        (element, localName,
         LiveAttributeException.ERR_ATTRIBUTE_MALFORMED,
         s);
    }
    count++;
  }
});
origin: apache/batik

/**
 * Throws an exception if the points list value is malformed.
 */
public void check() {
  if (!hasAnimVal) {
    if (baseVal == null) {
      baseVal = new BaseSVGTransformList();
    }
    baseVal.revalidate();
    if (baseVal.missing) {
      throw new LiveAttributeException
        (element, localName,
         LiveAttributeException.ERR_ATTRIBUTE_MISSING, null);
    }
    if (baseVal.malformed) {
      throw new LiveAttributeException
        (element, localName,
         LiveAttributeException.ERR_ATTRIBUTE_MALFORMED,
         baseVal.getValueAsString());
    }
  }
}
origin: org.apache.xmlgraphics/batik-anim

/**
 * Throws an exception if the length list value is malformed.
 */
public void check() {
  if (!hasAnimVal) {
    if (baseVal == null) {
      baseVal = new BaseSVGLengthList();
    }
    baseVal.revalidate();
    if (baseVal.missing) {
      throw new LiveAttributeException
        (element, localName,
         LiveAttributeException.ERR_ATTRIBUTE_MISSING, null);
    }
    if (baseVal.malformed) {
      throw new LiveAttributeException
        (element, localName,
         LiveAttributeException.ERR_ATTRIBUTE_MALFORMED,
         baseVal.getValueAsString());
    }
  }
}
origin: org.apache.xmlgraphics/batik-anim

/**
 * Throws an exception if the path data is malformed.
 */
public void check() {
  if (!hasAnimVal) {
    if (pathSegs == null) {
      pathSegs = new BaseSVGPathSegList();
    }
    pathSegs.revalidate();
    if (pathSegs.missing) {
      throw new LiveAttributeException
        (element, localName,
         LiveAttributeException.ERR_ATTRIBUTE_MISSING, null);
    }
    if (pathSegs.malformed) {
      throw new LiveAttributeException
        (element, localName,
         LiveAttributeException.ERR_ATTRIBUTE_MALFORMED,
         pathSegs.getValueAsString());
    }
  }
}
origin: fr.avianey.apache-xmlgraphics/batik

/**
 * Throws an exception if the length list value is malformed.
 */
public void check() {
  if (!hasAnimVal) {
    if (baseVal == null) {
      baseVal = new BaseSVGLengthList();
    }
    baseVal.revalidate();
    if (baseVal.missing) {
      throw new LiveAttributeException
        (element, localName,
         LiveAttributeException.ERR_ATTRIBUTE_MISSING, null);
    }
    if (baseVal.malformed) {
      throw new LiveAttributeException
        (element, localName,
         LiveAttributeException.ERR_ATTRIBUTE_MALFORMED,
         baseVal.getValueAsString());
    }
  }
}
origin: fr.avianey.apache-xmlgraphics/batik

/**
 * Throws an exception if the number list value is malformed.
 */
public void check() {
  if (!hasAnimVal) {
    if (baseVal == null) {
      baseVal = new BaseSVGNumberList();
    }
    baseVal.revalidate();
    if (baseVal.missing) {
      throw new LiveAttributeException
        (element, localName,
         LiveAttributeException.ERR_ATTRIBUTE_MISSING, null);
    }
    if (baseVal.malformed) {
      throw new LiveAttributeException
        (element, localName,
         LiveAttributeException.ERR_ATTRIBUTE_MALFORMED,
         baseVal.getValueAsString());
    }
  }
}
origin: fr.avianey.apache-xmlgraphics/batik

/**
 * Throws an exception if the path data is malformed.
 */
public void check() {
  if (!hasAnimVal) {
    if (pathSegs == null) {
      pathSegs = new BaseSVGPathSegList();
    }
    pathSegs.revalidate();
    if (pathSegs.missing) {
      throw new LiveAttributeException
        (element, localName,
         LiveAttributeException.ERR_ATTRIBUTE_MISSING, null);
    }
    if (pathSegs.malformed) {
      throw new LiveAttributeException
        (element, localName,
         LiveAttributeException.ERR_ATTRIBUTE_MALFORMED,
         pathSegs.getValueAsString());
    }
  }
}
origin: apache/batik

/**
 * Throws an exception if the path data is malformed.
 */
public void check() {
  if (!hasAnimVal) {
    if (pathSegs == null) {
      pathSegs = new BaseSVGPathSegList();
    }
    pathSegs.revalidate();
    if (pathSegs.missing) {
      throw new LiveAttributeException
        (element, localName,
         LiveAttributeException.ERR_ATTRIBUTE_MISSING, null);
    }
    if (pathSegs.malformed) {
      throw new LiveAttributeException
        (element, localName,
         LiveAttributeException.ERR_ATTRIBUTE_MALFORMED,
         pathSegs.getValueAsString());
    }
  }
}
origin: apache/batik

/**
 * Throws an exception if the length list value is malformed.
 */
public void check() {
  if (!hasAnimVal) {
    if (baseVal == null) {
      baseVal = new BaseSVGLengthList();
    }
    baseVal.revalidate();
    if (baseVal.missing) {
      throw new LiveAttributeException
        (element, localName,
         LiveAttributeException.ERR_ATTRIBUTE_MISSING, null);
    }
    if (baseVal.malformed) {
      throw new LiveAttributeException
        (element, localName,
         LiveAttributeException.ERR_ATTRIBUTE_MALFORMED,
         baseVal.getValueAsString());
    }
  }
}
origin: fr.avianey.apache-xmlgraphics/batik

/**
 * Throws an exception if the points list value is malformed.
 */
public void check() {
  if (!hasAnimVal) {
    if (baseVal == null) {
      baseVal = new BaseSVGPARValue();
    }
    if (baseVal.malformed) {
      throw new LiveAttributeException
        (element, localName,
         LiveAttributeException.ERR_ATTRIBUTE_MALFORMED,
         baseVal.getValueAsString());
    }
  }
}
origin: org.apache.xmlgraphics/batik-anim

/**
 * Gets the current animated value, throwing an exception if the attribute
 * is malformed.
 */
public short getCheckedVal() {
  if (hasAnimVal) {
    return animVal;
  }
  if (!valid) {
    update();
  }
  if (baseVal == 0) {
    throw new LiveAttributeException
      (element, localName,
       LiveAttributeException.ERR_ATTRIBUTE_MALFORMED,
       getBaseValAsString());
  }
  return baseVal;
}
origin: fr.avianey.apache-xmlgraphics/batik

/**
 * Gets the current animated value, throwing an exception if the attribute
 * is malformed.
 */
public short getCheckedVal() {
  if (hasAnimVal) {
    return animVal;
  }
  if (!valid) {
    update();
  }
  if (baseVal == 0) {
    throw new LiveAttributeException
      (element, localName,
       LiveAttributeException.ERR_ATTRIBUTE_MALFORMED,
       getBaseValAsString());
  }
  return baseVal;
}
origin: org.apache.xmlgraphics/batik-anim

/**
 * Throws an exception if the points list value is malformed.
 */
public void check() {
  if (!hasAnimVal) {
    if (baseVal == null) {
      baseVal = new BaseSVGPARValue();
    }
    if (baseVal.malformed) {
      throw new LiveAttributeException
        (element, localName,
         LiveAttributeException.ERR_ATTRIBUTE_MALFORMED,
         baseVal.getValueAsString());
    }
  }
}
origin: apache/batik

/**
 * Throws an exception if the points list value is malformed.
 */
public void check() {
  if (!hasAnimVal) {
    if (baseVal == null) {
      baseVal = new BaseSVGPARValue();
    }
    if (baseVal.malformed) {
      throw new LiveAttributeException
        (element, localName,
         LiveAttributeException.ERR_ATTRIBUTE_MALFORMED,
         baseVal.getValueAsString());
    }
  }
}
origin: apache/batik

/**
 * Gets the current animated value, throwing an exception if the attribute
 * is malformed.
 */
public short getCheckedVal() {
  if (hasAnimVal) {
    return animVal;
  }
  if (!valid) {
    update();
  }
  if (baseVal == 0) {
    throw new LiveAttributeException
      (element, localName,
       LiveAttributeException.ERR_ATTRIBUTE_MALFORMED,
       getBaseValAsString());
  }
  return baseVal;
}
org.apache.batik.dom.svgLiveAttributeException<init>

Javadoc

Constructs a new LiveAttributeException with the specified parameters.

Popular methods of LiveAttributeException

  • getAttributeName
    Returns the attribute name.
  • getCode
    Returns the error code.
  • getElement
    Returns the element on which the error occurred.
  • getValue
    Returns the problematic attribute value.

Popular in Java

  • Creating JSON documents from java classes using gson
  • startActivity (Activity)
  • onRequestPermissionsResult (Fragment)
  • scheduleAtFixedRate (Timer)
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • PrintWriter (java.io)
    Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • JButton (javax.swing)
  • JFrame (javax.swing)
  • Top plugins for Android Studio
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