Пример #1
0
 /// <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);
 }
Пример #2
0
 /// <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)
 {
 }
Пример #3
0
 /// <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);
 }
Пример #4
0
 /**
  * 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)
 {
 }
Пример #5
0
 /// <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;
 }
Пример #6
0
        /// <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)
        {
        }
Пример #7
0
 /**
  * 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)
 {
 }
Пример #8
0
 /// <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;
 }
Пример #9
0
 /// <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;
 }
Пример #10
0
 /// <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;
 }