W3C home > Mailing lists > Public > www-validator-cvs@w3.org > February 2009

2002/css-validator/org/w3c/css/css NewStyleSheet.java,1.5,1.6

From: Yves Lafon via cvs-syncmail <cvsmail@w3.org>
Date: Sat, 14 Feb 2009 09:03:45 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1LYGR7-0000fz-9V@lionel-hutz.w3.org>
Update of /sources/public/2002/css-validator/org/w3c/css/css
In directory hutz:/tmp/cvs-serv2583/css

Modified Files:
	NewStyleSheet.java 
Log Message:
reformat

Index: NewStyleSheet.java
===================================================================
RCS file: /sources/public/2002/css-validator/org/w3c/css/css/NewStyleSheet.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- NewStyleSheet.java	13 Jul 2007 13:32:19 -0000	1.5
+++ NewStyleSheet.java	14 Feb 2009 09:03:43 -0000	1.6
@@ -16,113 +16,113 @@
 
 public class NewStyleSheet {
 
-	String uri;
-	String title;
-	private Errors errors;
-	private Warnings warnings;
+    String uri;
+    String title;
+    private Errors errors;
+    private Warnings warnings;
 
-	/**
-	 * Add some errors to this style.
-	 * 
-	 * @param errors
-	 *            Some errors.
-	 */
-	public void addErrors(Errors errors) {
-		if (errors.getErrorCount() != 0) {
-			getErrors().addErrors(errors);
-		}
+    /**
+     * Add some errors to this style.
+     * 
+     * @param errors
+     *            Some errors.
+     */
+    public void addErrors(Errors errors) {
+	if (errors.getErrorCount() != 0) {
+	    getErrors().addErrors(errors);
 	}
+    }
 
-	/**
-	 * Add some warnings to this style.
-	 * 
-	 * @param warnings
-	 *            Some warnings.
-	 */
-	public void addWarnings(Warnings warnings) {
-		if (warnings.getWarningCount() != 0)
-			getWarnings().addWarnings(warnings);
-	}
+    /**
+     * Add some warnings to this style.
+     * 
+     * @param warnings
+     *            Some warnings.
+     */
+    public void addWarnings(Warnings warnings) {
+	if (warnings.getWarningCount() != 0)
+	    getWarnings().addWarnings(warnings);
+    }
 
-	/**
-	 * Returns all errors.
-	 */
-	public final Errors getErrors() {
-		return errors;
-	}
+    /**
+     * Returns all errors.
+     */
+    public final Errors getErrors() {
+	return errors;
+    }
 
-	/**
-	 * Returns all warnings.
-	 */
-	public final Warnings getWarnings() {
-		return warnings;
-	}
+    /**
+     * Returns all warnings.
+     */
+    public final Warnings getWarnings() {
+	return warnings;
+    }
 
-	static Vector atRuleList = new Vector(); // contains all @rules
+    static Vector atRuleList = new Vector(); // contains all @rules
 
-	// (CssRuleLists)
+    // (CssRuleLists)
 
-	public void newAtRule(AtRule atRule) {
-		CssRuleList rulelist = new CssRuleList();
-		rulelist.addAtRule(atRule);
-		atRuleList.addElement(rulelist);
-		indent = "   ";
-	}
+    public void newAtRule(AtRule atRule) {
+	CssRuleList rulelist = new CssRuleList();
+	rulelist.addAtRule(atRule);
+	atRuleList.addElement(rulelist);
+	indent = "   ";
+    }
 
-	public void endOfAtRule() {
-		CssRuleList rulelist = new CssRuleList();
-		atRuleList.addElement(rulelist); // for the new set of rules
-		pseudopage = "";
-		important = false;
-		selectortext = "";
-		indent = "";
-	}
+    public void endOfAtRule() {
+	CssRuleList rulelist = new CssRuleList();
+	atRuleList.addElement(rulelist); // for the new set of rules
+	pseudopage = "";
+	important = false;
+	selectortext = "";
+	indent = "";
+    }
 
-	public void setImportant(boolean important) {
-		this.important = important;
-	}
+    public void setImportant(boolean important) {
+	this.important = important;
+    }
 
-	public void setSelectorList(Vector selectors) {
-		String slave = selectors.toString();
-		slave = slave.substring(slave.indexOf("[") + 1, slave.indexOf("]"));
-		selectortext = slave;
-	}
+    public void setSelectorList(Vector selectors) {
+	String slave = selectors.toString();
+	slave = slave.substring(slave.indexOf("[") + 1, slave.indexOf("]"));
+	selectortext = slave;
+    }
 
-	public void setProperty(Vector properties) {
-		this.properties = properties;
-	}
+    public void setProperty(Vector properties) {
+	this.properties = properties;
+    }
 
-	public void endOfRule() {
-		CssStyleRule stylerule = new CssStyleRule(indent, selectortext,
-				properties, important);
-		CssRuleList rulelist;
-		if (!atRuleList.isEmpty()) {
-			rulelist = (CssRuleList) atRuleList.lastElement();
-			useless = atRuleList.removeElement(rulelist);
-		} else {
-			rulelist = new CssRuleList();
-		}
-		rulelist.addStyleRule(stylerule);
-		atRuleList.addElement(rulelist);
+    public void endOfRule() {
+	CssStyleRule stylerule = new CssStyleRule(indent, selectortext,
+						  properties, important);
+	CssRuleList rulelist;
+	if (!atRuleList.isEmpty()) {
+	    rulelist = (CssRuleList) atRuleList.lastElement();
+	    useless = atRuleList.removeElement(rulelist);
+	} else {
+	    rulelist = new CssRuleList();
 	}
+	rulelist.addStyleRule(stylerule);
+	atRuleList.addElement(rulelist);
+    }
 
-	public void pseudoPage(String name) {
-		pseudopage = name;
-	}
+    public void pseudoPage(String name) {
+	pseudopage = name;
+    }
 
-	public Vector getRules() {
-		return atRuleList;
-	}
+    public Vector getRules() {
+	return atRuleList;
+    }
 
-	static String pseudopage;
+    static String pseudopage;
 
-	static String selectortext;
+    static String selectortext;
 
-	static boolean important;
+    static boolean important;
 
-	static Vector properties;
+    static Vector properties;
 
-	boolean useless;
+    boolean useless;
 
-	static String indent = new String();
+    static String indent = new String();
 }
Received on Saturday, 14 February 2009 09:03:53 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 26 April 2012 12:55:08 GMT