/// <summary> Constructs a handler for inline style declarations using the given policy /// * and queue for imported stylesheets. /// </summary> /// <param name="policy">policy <code>Policy</code> The policy to use /// </param> /// <param name="embeddedStyleSheets">embeddedStyleSheets <code>ArrayList</code> the queue of stylesheets imported /// </param> /// <param name="errorMessages">errorMessages <code>ArrayList</code> the queue of stylesheets imported /// </param> /// <param name="tagName">tagName <code>ArrayList</code> the associated tag name with this inline style /// </param> public CssHandler(Policy policy, ArrayList embeddedStyleSheets, ArrayList errorMessages, String tagName) { this.policy = policy; this.errorMessages = errorMessages; this.validator = new CssValidator(policy); this.importedStyleSheets = embeddedStyleSheets; this.tagName = tagName; this.isInline = (tagName != null); }
/// <summary> Constructs a handler for stylesheets using the given policy and queue for /// imported stylesheets. /// /// </summary> /// <param name="policy">the policy to use /// </param> /// <param name="embeddedStyleSheets">the queue of stylesheets imported /// </param> public CssHandler(Policy policy, ArrayList embeddedStyleSheets) : this(policy, embeddedStyleSheets, null) { }
/// <summary> Constructs a handler for inline style declarations using the given policy /// * and queue for imported stylesheets. /// </summary> /// <param name="policy">policy <code>Policy</code> The policy to use /// </param> /// <param name="embeddedStyleSheets">embeddedStyleSheets <code>ArrayList</code> the queue of stylesheets imported /// </param> /// <param name="errorMessages">errorMessages <code>ArrayList</code> the queue of stylesheets imported /// </param> /// <param name="tagName">tagName <code>ArrayList</code> the associated tag name with this inline style /// </param> public CssHandler(Policy policy, ArrayList embeddedStyleSheets, ArrayList errorMessages, String tagName) { this.policy = policy; this.errorMessages = errorMessages; this.validator = new CssValidator(policy); this.importedStyleSheets = embeddedStyleSheets; this.tagName = tagName; this.isInline = (tagName != null); }
/** * Constructs a handler for stylesheets using the given policy and queue for * imported stylesheets. * * @param policy * the policy to use * @param embeddedStyleSheets * the queue of stylesheets imported */ public CssHandler(Policy policy, ArrayList embeddedStyleSheets, ArrayList errorMessages) : this(policy, embeddedStyleSheets, errorMessages, null) { }
/// <summary> Constructs a validator for CSS selectors, conditions and properties based /// on the given policy. /// /// </summary> /// <param name="policy">the policy file to use in this validator /// </param> public CssValidator(Policy policy) { this.policy = policy; }
/// <summary> Constructs a handler for stylesheets using the given policy and queue for /// imported stylesheets. /// /// </summary> /// <param name="policy">the policy to use /// </param> /// <param name="embeddedStyleSheets">the queue of stylesheets imported /// </param> public CssHandler(Policy policy, ArrayList embeddedStyleSheets) : this(policy, embeddedStyleSheets, null) { }
/** * Constructs a handler for stylesheets using the given policy and queue for * imported stylesheets. * * @param policy * the policy to use * @param embeddedStyleSheets * the queue of stylesheets imported */ public CssHandler(Policy policy, ArrayList embeddedStyleSheets, ArrayList errorMessages) : this(policy, embeddedStyleSheets, errorMessages, null) { }
/// <summary> Constructs a scanner based on the given policy. /// /// </summary> /// <param name="policy">the policy to follow when scanning /// </param> public CssScanner(Policy policy) { this.policy = policy; }
/// <summary> Constructs a validator for CSS selectors, conditions and properties based /// on the given policy. /// /// </summary> /// <param name="policy">the policy file to use in this validator /// </param> public CssValidator(Policy policy) { this.policy = policy; }
/// <summary> Constructs a scanner based on the given policy. /// /// </summary> /// <param name="policy">the policy to follow when scanning /// </param> public CssScanner(Policy policy) { this.policy = policy; }