org.vectomatic.dev.svg.impl.gen
Class SVGValidator

java.lang.Object
  extended by org.vectomatic.dev.svg.impl.gen.SVGValidator

public class SVGValidator
extends Object

Class to validate an SVG file against the SVG 1.1 XSD schema

Author:
laaglu

Method Summary
static void validate(String rawSvg, String systemId, com.google.gwt.core.ext.TreeLogger logger, UiBinderWriter writer)
          Validates the specified SVG input
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

validate

public static void validate(String rawSvg,
                            String systemId,
                            com.google.gwt.core.ext.TreeLogger logger,
                            UiBinderWriter writer)
                     throws com.google.gwt.core.ext.UnableToCompleteException
Validates the specified SVG input

Parameters:
rawSvg - The SVG input to validate
systemId - The URL of the resource being validated
logger - A logger to report validation errors (if the method is invoked to validate an SVGResource or an ExternalSVGResource)
writer - A writer to report validation errors (if the method is invoked to validate a UiBinder template)
Throws:
com.google.gwt.core.ext.UnableToCompleteException - If validation error occur


Copyright © 2012. All Rights Reserved.