W3C home > Mailing lists > Public > www-validator-cvs@w3.org > September 2008

2006/unicorn/org/w3/unicorn/tasklist/impl IfTypeImpl.java,1.2,1.3

From: Florent Batard via cvs-syncmail <cvsmail@w3.org>
Date: Wed, 03 Sep 2008 14:33:58 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1KatQk-0000tq-9G@lionel-hutz.w3.org>

Update of /sources/public/2006/unicorn/org/w3/unicorn/tasklist/impl
In directory hutz:/tmp/cvs-serv3426/org/w3/unicorn/tasklist/impl

Modified Files:
	IfTypeImpl.java 
Log Message:
A new schema again

Index: IfTypeImpl.java
===================================================================
RCS file: /sources/public/2006/unicorn/org/w3/unicorn/tasklist/impl/IfTypeImpl.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- IfTypeImpl.java	24 Jul 2008 11:44:28 -0000	1.2
+++ IfTypeImpl.java	3 Sep 2008 14:33:56 -0000	1.3
@@ -96,6 +96,18 @@
     }
     
     /**
+     * True if has "else" element
+     */
+    public boolean isSetElse()
+    {
+        synchronized (monitor())
+        {
+            check_orphaned();
+            return get_store().count_elements(ELSE$2) != 0;
+        }
+    }
+    
+    /**
      * Sets the "else" element
      */
     public void setElse(org.w3.unicorn.tasklist.ThenType xelse)
@@ -128,6 +140,18 @@
     }
     
     /**
+     * Unsets the "else" element
+     */
+    public void unsetElse()
+    {
+        synchronized (monitor())
+        {
+            check_orphaned();
+            get_store().remove_element(ELSE$2, 0);
+        }
+    }
+    
+    /**
      * Gets the "test" attribute
      */
     public java.lang.String getTest()
Received on Wednesday, 3 September 2008 14:34:31 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:02:30 UTC