- From: Thomas Gambet via cvs-syncmail <cvsmail@w3.org>
- Date: Thu, 06 Aug 2009 10:13:29 +0000
- To: www-validator-cvs@w3.org
Update of /sources/public/2006/unicorn/src/org/w3/unicorn/route/impl
In directory hutz:/tmp/cvs-serv23605/src/org/w3/unicorn/route/impl
Modified Files:
Tag: dev2
RouteImpl.java RoutesDocumentImpl.java
Log Message:
generated routes with xbean
Index: RoutesDocumentImpl.java
===================================================================
RCS file: /sources/public/2006/unicorn/src/org/w3/unicorn/route/impl/Attic/RoutesDocumentImpl.java,v
retrieving revision 1.1.2.1
retrieving revision 1.1.2.2
diff -u -d -r1.1.2.1 -r1.1.2.2
--- RoutesDocumentImpl.java 5 Aug 2009 17:21:40 -0000 1.1.2.1
+++ RoutesDocumentImpl.java 6 Aug 2009 10:13:27 -0000 1.1.2.2
@@ -90,10 +90,6 @@
private static final javax.xml.namespace.QName ROUTE$0 =
new javax.xml.namespace.QName("http://www.w3.org/unicorn/route", "route");
- private static final javax.xml.namespace.QName INDEX$2 =
- new javax.xml.namespace.QName("http://www.w3.org/unicorn/route", "index");
- private static final javax.xml.namespace.QName ERROR404$4 =
- new javax.xml.namespace.QName("http://www.w3.org/unicorn/route", "error404");
/**
@@ -251,105 +247,5 @@
get_store().remove_element(ROUTE$0, i);
}
}
-
- /**
- * Gets the "index" element
- */
- public org.w3.unicorn.route.Index getIndex()
- {
- synchronized (monitor())
- {
- check_orphaned();
- org.w3.unicorn.route.Index target = null;
- target = (org.w3.unicorn.route.Index)get_store().find_element_user(INDEX$2, 0);
- if (target == null)
- {
- return null;
- }
- return target;
- }
- }
-
- /**
- * Sets the "index" element
- */
- public void setIndex(org.w3.unicorn.route.Index index)
- {
- synchronized (monitor())
- {
- check_orphaned();
- org.w3.unicorn.route.Index target = null;
- target = (org.w3.unicorn.route.Index)get_store().find_element_user(INDEX$2, 0);
- if (target == null)
- {
- target = (org.w3.unicorn.route.Index)get_store().add_element_user(INDEX$2);
- }
- target.set(index);
- }
- }
-
- /**
- * Appends and returns a new empty "index" element
- */
- public org.w3.unicorn.route.Index addNewIndex()
- {
- synchronized (monitor())
- {
- check_orphaned();
- org.w3.unicorn.route.Index target = null;
- target = (org.w3.unicorn.route.Index)get_store().add_element_user(INDEX$2);
- return target;
- }
- }
-
- /**
- * Gets the "error404" element
- */
- public org.w3.unicorn.route.Error404 getError404()
- {
- synchronized (monitor())
- {
- check_orphaned();
- org.w3.unicorn.route.Error404 target = null;
- target = (org.w3.unicorn.route.Error404)get_store().find_element_user(ERROR404$4, 0);
- if (target == null)
- {
- return null;
- }
- return target;
- }
- }
-
- /**
- * Sets the "error404" element
- */
- public void setError404(org.w3.unicorn.route.Error404 error404)
- {
- synchronized (monitor())
- {
- check_orphaned();
- org.w3.unicorn.route.Error404 target = null;
- target = (org.w3.unicorn.route.Error404)get_store().find_element_user(ERROR404$4, 0);
- if (target == null)
- {
- target = (org.w3.unicorn.route.Error404)get_store().add_element_user(ERROR404$4);
- }
- target.set(error404);
- }
- }
-
- /**
- * Appends and returns a new empty "error404" element
- */
- public org.w3.unicorn.route.Error404 addNewError404()
- {
- synchronized (monitor())
- {
- check_orphaned();
- org.w3.unicorn.route.Error404 target = null;
- target = (org.w3.unicorn.route.Error404)get_store().add_element_user(ERROR404$4);
- return target;
- }
- }
}
}
Index: RouteImpl.java
===================================================================
RCS file: /sources/public/2006/unicorn/src/org/w3/unicorn/route/impl/Attic/RouteImpl.java,v
retrieving revision 1.1.2.1
retrieving revision 1.1.2.2
diff -u -d -r1.1.2.1 -r1.1.2.2
--- RouteImpl.java 5 Aug 2009 17:21:40 -0000 1.1.2.1
+++ RouteImpl.java 6 Aug 2009 10:13:27 -0000 1.1.2.2
@@ -26,6 +26,8 @@
new javax.xml.namespace.QName("http://www.w3.org/unicorn/route", "action");
private static final javax.xml.namespace.QName URL$4 =
new javax.xml.namespace.QName("http://www.w3.org/unicorn/route", "url");
+ private static final javax.xml.namespace.QName TYPE$6 =
+ new javax.xml.namespace.QName("", "type");
/**
@@ -338,13 +340,13 @@
/**
* Gets (as xml) the "action" element
*/
- public org.w3.unicorn.route.ClassString xgetAction()
+ public org.apache.xmlbeans.XmlToken xgetAction()
{
synchronized (monitor())
{
check_orphaned();
- org.w3.unicorn.route.ClassString target = null;
- target = (org.w3.unicorn.route.ClassString)get_store().find_element_user(ACTION$2, 0);
+ org.apache.xmlbeans.XmlToken target = null;
+ target = (org.apache.xmlbeans.XmlToken)get_store().find_element_user(ACTION$2, 0);
return target;
}
}
@@ -382,16 +384,16 @@
/**
* Sets (as xml) the "action" element
*/
- public void xsetAction(org.w3.unicorn.route.ClassString action)
+ public void xsetAction(org.apache.xmlbeans.XmlToken action)
{
synchronized (monitor())
{
check_orphaned();
- org.w3.unicorn.route.ClassString target = null;
- target = (org.w3.unicorn.route.ClassString)get_store().find_element_user(ACTION$2, 0);
+ org.apache.xmlbeans.XmlToken target = null;
+ target = (org.apache.xmlbeans.XmlToken)get_store().find_element_user(ACTION$2, 0);
if (target == null)
{
- target = (org.w3.unicorn.route.ClassString)get_store().add_element_user(ACTION$2);
+ target = (org.apache.xmlbeans.XmlToken)get_store().add_element_user(ACTION$2);
}
target.set(action);
}
@@ -500,4 +502,96 @@
get_store().remove_element(URL$4, 0);
}
}
+
+ /**
+ * Gets the "type" attribute
+ */
+ public java.lang.String getType()
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ org.apache.xmlbeans.SimpleValue target = null;
+ target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(TYPE$6);
+ if (target == null)
+ {
+ return null;
+ }
+ return target.getStringValue();
+ }
+ }
+
+ /**
+ * Gets (as xml) the "type" attribute
+ */
+ public org.apache.xmlbeans.XmlToken xgetType()
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ org.apache.xmlbeans.XmlToken target = null;
+ target = (org.apache.xmlbeans.XmlToken)get_store().find_attribute_user(TYPE$6);
+ return target;
+ }
+ }
+
+ /**
+ * True if has "type" attribute
+ */
+ public boolean isSetType()
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ return get_store().find_attribute_user(TYPE$6) != null;
+ }
+ }
+
+ /**
+ * Sets the "type" attribute
+ */
+ public void setType(java.lang.String type)
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ org.apache.xmlbeans.SimpleValue target = null;
+ target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(TYPE$6);
+ if (target == null)
+ {
+ target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(TYPE$6);
+ }
+ target.setStringValue(type);
+ }
+ }
+
+ /**
+ * Sets (as xml) the "type" attribute
+ */
+ public void xsetType(org.apache.xmlbeans.XmlToken type)
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ org.apache.xmlbeans.XmlToken target = null;
+ target = (org.apache.xmlbeans.XmlToken)get_store().find_attribute_user(TYPE$6);
+ if (target == null)
+ {
+ target = (org.apache.xmlbeans.XmlToken)get_store().add_attribute_user(TYPE$6);
+ }
+ target.set(type);
+ }
+ }
+
+ /**
+ * Unsets the "type" attribute
+ */
+ public void unsetType()
+ {
+ synchronized (monitor())
+ {
+ check_orphaned();
+ get_store().remove_attribute(TYPE$6);
+ }
+ }
}
Received on Thursday, 6 August 2009 10:13:43 UTC