- From: Thomas Gambet via cvs-syncmail <cvsmail@w3.org>
- Date: Wed, 05 Aug 2009 17:21:41 +0000
- To: www-validator-cvs@w3.org
Update of /sources/public/2006/unicorn/src/org/w3/unicorn/route In directory hutz:/tmp/cvs-serv13417/src/org/w3/unicorn/route Added Files: Tag: dev2 Route.java RoutesDocument.java Error404.java ClassString.java Index.java RouteParser.java Log Message: modified xmlbean ant task +changed package name from w3c to w3 --- NEW FILE: Index.java --- /* * XML Type: index * Namespace: http://www.w3.org/unicorn/route * Java type: org.w3.unicorn.route.Index * * Automatically generated - do not modify. */ package org.w3.unicorn.route; /** * An XML index(@http://www.w3.org/unicorn/route). * * This is a complex type. */ public interface Index extends org.apache.xmlbeans.XmlObject { public static final org.apache.xmlbeans.SchemaType type = (org.apache.xmlbeans.SchemaType) org.apache.xmlbeans.XmlBeans.typeSystemForClassLoader(Index.class.getClassLoader(), "schemaorg_apache_xmlbeans.system.s69AE826127FB706696DECA7E095DD405").resolveHandle("index1b27type"); /** * Gets the "action" element */ java.lang.String getAction(); /** * Gets (as xml) the "action" element */ org.w3.unicorn.route.ClassString xgetAction(); /** * Sets the "action" element */ void setAction(java.lang.String action); /** * Sets (as xml) the "action" element */ void xsetAction(org.w3.unicorn.route.ClassString action); /** * A factory class with static methods for creating instances * of this type. */ public static final class Factory { public static org.w3.unicorn.route.Index newInstance() { return (org.w3.unicorn.route.Index) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newInstance( type, null ); } public static org.w3.unicorn.route.Index newInstance(org.apache.xmlbeans.XmlOptions options) { return (org.w3.unicorn.route.Index) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newInstance( type, options ); } /** @param xmlAsString the string value to parse */ public static org.w3.unicorn.route.Index parse(java.lang.String xmlAsString) throws org.apache.xmlbeans.XmlException { return (org.w3.unicorn.route.Index) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xmlAsString, type, null ); } public static org.w3.unicorn.route.Index parse(java.lang.String xmlAsString, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException { return (org.w3.unicorn.route.Index) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xmlAsString, type, options ); } /** @param file the file from which to load an xml document */ public static org.w3.unicorn.route.Index parse(java.io.File file) throws org.apache.xmlbeans.XmlException, java.io.IOException { return (org.w3.unicorn.route.Index) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( file, type, null ); } public static org.w3.unicorn.route.Index parse(java.io.File file, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException { return (org.w3.unicorn.route.Index) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( file, type, options ); } public static org.w3.unicorn.route.Index parse(java.net.URL u) throws org.apache.xmlbeans.XmlException, java.io.IOException { return (org.w3.unicorn.route.Index) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( u, type, null ); } public static org.w3.unicorn.route.Index parse(java.net.URL u, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException { return (org.w3.unicorn.route.Index) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( u, type, options ); } public static org.w3.unicorn.route.Index parse(java.io.InputStream is) throws org.apache.xmlbeans.XmlException, java.io.IOException { return (org.w3.unicorn.route.Index) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( is, type, null ); } public static org.w3.unicorn.route.Index parse(java.io.InputStream is, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException { return (org.w3.unicorn.route.Index) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( is, type, options ); } public static org.w3.unicorn.route.Index parse(java.io.Reader r) throws org.apache.xmlbeans.XmlException, java.io.IOException { return (org.w3.unicorn.route.Index) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( r, type, null ); } public static org.w3.unicorn.route.Index parse(java.io.Reader r, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException { return (org.w3.unicorn.route.Index) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( r, type, options ); } public static org.w3.unicorn.route.Index parse(javax.xml.stream.XMLStreamReader sr) throws org.apache.xmlbeans.XmlException { return (org.w3.unicorn.route.Index) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( sr, type, null ); } public static org.w3.unicorn.route.Index parse(javax.xml.stream.XMLStreamReader sr, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException { return (org.w3.unicorn.route.Index) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( sr, type, options ); } public static org.w3.unicorn.route.Index parse(org.w3c.dom.Node node) throws org.apache.xmlbeans.XmlException { return (org.w3.unicorn.route.Index) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( node, type, null ); } public static org.w3.unicorn.route.Index parse(org.w3c.dom.Node node, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException { return (org.w3.unicorn.route.Index) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( node, type, options ); } /** @deprecated {@link org.apache.xmlbeans.xml.stream.XMLInputStream} */ public static org.w3.unicorn.route.Index parse(org.apache.xmlbeans.xml.stream.XMLInputStream xis) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException { return (org.w3.unicorn.route.Index) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xis, type, null ); } /** @deprecated {@link org.apache.xmlbeans.xml.stream.XMLInputStream} */ public static org.w3.unicorn.route.Index parse(org.apache.xmlbeans.xml.stream.XMLInputStream xis, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException { return (org.w3.unicorn.route.Index) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xis, type, options ); } /** @deprecated {@link org.apache.xmlbeans.xml.stream.XMLInputStream} */ public static org.apache.xmlbeans.xml.stream.XMLInputStream newValidatingXMLInputStream(org.apache.xmlbeans.xml.stream.XMLInputStream xis) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException { return org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newValidatingXMLInputStream( xis, type, null ); } /** @deprecated {@link org.apache.xmlbeans.xml.stream.XMLInputStream} */ public static org.apache.xmlbeans.xml.stream.XMLInputStream newValidatingXMLInputStream(org.apache.xmlbeans.xml.stream.XMLInputStream xis, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException { return org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newValidatingXMLInputStream( xis, type, options ); } private Factory() { } // No instance of this class allowed } } --- NEW FILE: Route.java --- /* * XML Type: route * Namespace: http://www.w3.org/unicorn/route * Java type: org.w3.unicorn.route.Route * * Automatically generated - do not modify. */ package org.w3.unicorn.route; /** * An XML route(@http://www.w3.org/unicorn/route). * * This is a complex type. */ public interface Route extends org.apache.xmlbeans.XmlObject { public static final org.apache.xmlbeans.SchemaType type = (org.apache.xmlbeans.SchemaType) org.apache.xmlbeans.XmlBeans.typeSystemForClassLoader(Route.class.getClassLoader(), "schemaorg_apache_xmlbeans.system.s69AE826127FB706696DECA7E095DD405").resolveHandle("route089etype"); /** * Gets a List of "pattern" elements */ java.util.List<java.lang.String> getPatternList(); /** * Gets array of all "pattern" elements * @deprecated */ java.lang.String[] getPatternArray(); /** * Gets ith "pattern" element */ java.lang.String getPatternArray(int i); /** * Gets (as xml) a List of "pattern" elements */ java.util.List<org.apache.xmlbeans.XmlToken> xgetPatternList(); /** * Gets (as xml) array of all "pattern" elements * @deprecated */ org.apache.xmlbeans.XmlToken[] xgetPatternArray(); /** * Gets (as xml) ith "pattern" element */ org.apache.xmlbeans.XmlToken xgetPatternArray(int i); /** * Returns number of "pattern" element */ int sizeOfPatternArray(); /** * Sets array of all "pattern" element */ void setPatternArray(java.lang.String[] patternArray); /** * Sets ith "pattern" element */ void setPatternArray(int i, java.lang.String pattern); /** * Sets (as xml) array of all "pattern" element */ void xsetPatternArray(org.apache.xmlbeans.XmlToken[] patternArray); /** * Sets (as xml) ith "pattern" element */ void xsetPatternArray(int i, org.apache.xmlbeans.XmlToken pattern); /** * Inserts the value as the ith "pattern" element */ void insertPattern(int i, java.lang.String pattern); /** * Appends the value as the last "pattern" element */ void addPattern(java.lang.String pattern); /** * Inserts and returns a new empty value (as xml) as the ith "pattern" element */ org.apache.xmlbeans.XmlToken insertNewPattern(int i); /** * Appends and returns a new empty value (as xml) as the last "pattern" element */ org.apache.xmlbeans.XmlToken addNewPattern(); /** * Removes the ith "pattern" element */ void removePattern(int i); /** * Gets the "action" element */ java.lang.String getAction(); /** * Gets (as xml) the "action" element */ org.w3.unicorn.route.ClassString xgetAction(); /** * True if has "action" element */ boolean isSetAction(); /** * Sets the "action" element */ void setAction(java.lang.String action); /** * Sets (as xml) the "action" element */ void xsetAction(org.w3.unicorn.route.ClassString action); /** * Unsets the "action" element */ void unsetAction(); /** * Gets the "url" element */ java.lang.String getUrl(); /** * Gets (as xml) the "url" element */ org.apache.xmlbeans.XmlAnyURI xgetUrl(); /** * True if has "url" element */ boolean isSetUrl(); /** * Sets the "url" element */ void setUrl(java.lang.String url); /** * Sets (as xml) the "url" element */ void xsetUrl(org.apache.xmlbeans.XmlAnyURI url); /** * Unsets the "url" element */ void unsetUrl(); /** * A factory class with static methods for creating instances * of this type. */ public static final class Factory { public static org.w3.unicorn.route.Route newInstance() { return (org.w3.unicorn.route.Route) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newInstance( type, null ); } public static org.w3.unicorn.route.Route newInstance(org.apache.xmlbeans.XmlOptions options) { return (org.w3.unicorn.route.Route) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newInstance( type, options ); } /** @param xmlAsString the string value to parse */ public static org.w3.unicorn.route.Route parse(java.lang.String xmlAsString) throws org.apache.xmlbeans.XmlException { return (org.w3.unicorn.route.Route) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xmlAsString, type, null ); } public static org.w3.unicorn.route.Route parse(java.lang.String xmlAsString, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException { return (org.w3.unicorn.route.Route) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xmlAsString, type, options ); } /** @param file the file from which to load an xml document */ public static org.w3.unicorn.route.Route parse(java.io.File file) throws org.apache.xmlbeans.XmlException, java.io.IOException { return (org.w3.unicorn.route.Route) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( file, type, null ); } public static org.w3.unicorn.route.Route parse(java.io.File file, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException { return (org.w3.unicorn.route.Route) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( file, type, options ); } public static org.w3.unicorn.route.Route parse(java.net.URL u) throws org.apache.xmlbeans.XmlException, java.io.IOException { return (org.w3.unicorn.route.Route) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( u, type, null ); } public static org.w3.unicorn.route.Route parse(java.net.URL u, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException { return (org.w3.unicorn.route.Route) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( u, type, options ); } public static org.w3.unicorn.route.Route parse(java.io.InputStream is) throws org.apache.xmlbeans.XmlException, java.io.IOException { return (org.w3.unicorn.route.Route) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( is, type, null ); } public static org.w3.unicorn.route.Route parse(java.io.InputStream is, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException { return (org.w3.unicorn.route.Route) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( is, type, options ); } public static org.w3.unicorn.route.Route parse(java.io.Reader r) throws org.apache.xmlbeans.XmlException, java.io.IOException { return (org.w3.unicorn.route.Route) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( r, type, null ); } public static org.w3.unicorn.route.Route parse(java.io.Reader r, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException { return (org.w3.unicorn.route.Route) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( r, type, options ); } public static org.w3.unicorn.route.Route parse(javax.xml.stream.XMLStreamReader sr) throws org.apache.xmlbeans.XmlException { return (org.w3.unicorn.route.Route) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( sr, type, null ); } public static org.w3.unicorn.route.Route parse(javax.xml.stream.XMLStreamReader sr, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException { return (org.w3.unicorn.route.Route) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( sr, type, options ); } public static org.w3.unicorn.route.Route parse(org.w3c.dom.Node node) throws org.apache.xmlbeans.XmlException { return (org.w3.unicorn.route.Route) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( node, type, null ); } public static org.w3.unicorn.route.Route parse(org.w3c.dom.Node node, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException { return (org.w3.unicorn.route.Route) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( node, type, options ); } /** @deprecated {@link org.apache.xmlbeans.xml.stream.XMLInputStream} */ public static org.w3.unicorn.route.Route parse(org.apache.xmlbeans.xml.stream.XMLInputStream xis) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException { return (org.w3.unicorn.route.Route) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xis, type, null ); } /** @deprecated {@link org.apache.xmlbeans.xml.stream.XMLInputStream} */ public static org.w3.unicorn.route.Route parse(org.apache.xmlbeans.xml.stream.XMLInputStream xis, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException { return (org.w3.unicorn.route.Route) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xis, type, options ); } /** @deprecated {@link org.apache.xmlbeans.xml.stream.XMLInputStream} */ public static org.apache.xmlbeans.xml.stream.XMLInputStream newValidatingXMLInputStream(org.apache.xmlbeans.xml.stream.XMLInputStream xis) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException { return org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newValidatingXMLInputStream( xis, type, null ); } /** @deprecated {@link org.apache.xmlbeans.xml.stream.XMLInputStream} */ public static org.apache.xmlbeans.xml.stream.XMLInputStream newValidatingXMLInputStream(org.apache.xmlbeans.xml.stream.XMLInputStream xis, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException { return org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newValidatingXMLInputStream( xis, type, options ); } private Factory() { } // No instance of this class allowed } } --- NEW FILE: RoutesDocument.java --- /* * An XML document type. * Localname: routes * Namespace: http://www.w3.org/unicorn/route * Java type: org.w3.unicorn.route.RoutesDocument * * Automatically generated - do not modify. */ package org.w3.unicorn.route; /** * A document containing one routes(@http://www.w3.org/unicorn/route) element. * * This is a complex type. */ public interface RoutesDocument extends org.apache.xmlbeans.XmlObject { public static final org.apache.xmlbeans.SchemaType type = (org.apache.xmlbeans.SchemaType) org.apache.xmlbeans.XmlBeans.typeSystemForClassLoader(RoutesDocument.class.getClassLoader(), "schemaorg_apache_xmlbeans.system.s69AE826127FB706696DECA7E095DD405").resolveHandle("routes1c21doctype"); /** * Gets the "routes" element */ org.w3.unicorn.route.RoutesDocument.Routes getRoutes(); /** * Sets the "routes" element */ void setRoutes(org.w3.unicorn.route.RoutesDocument.Routes routes); /** * Appends and returns a new empty "routes" element */ org.w3.unicorn.route.RoutesDocument.Routes addNewRoutes(); /** * An XML routes(@http://www.w3.org/unicorn/route). * * This is a complex type. */ public interface Routes extends org.apache.xmlbeans.XmlObject { public static final org.apache.xmlbeans.SchemaType type = (org.apache.xmlbeans.SchemaType) org.apache.xmlbeans.XmlBeans.typeSystemForClassLoader(Routes.class.getClassLoader(), "schemaorg_apache_xmlbeans.system.s69AE826127FB706696DECA7E095DD405").resolveHandle("routesa8fbelemtype"); /** * Gets a List of "route" elements */ java.util.List<org.w3.unicorn.route.Route> getRouteList(); /** * Gets array of all "route" elements * @deprecated */ org.w3.unicorn.route.Route[] getRouteArray(); /** * Gets ith "route" element */ org.w3.unicorn.route.Route getRouteArray(int i); /** * Returns number of "route" element */ int sizeOfRouteArray(); /** * Sets array of all "route" element */ void setRouteArray(org.w3.unicorn.route.Route[] routeArray); /** * Sets ith "route" element */ void setRouteArray(int i, org.w3.unicorn.route.Route route); /** * Inserts and returns a new empty value (as xml) as the ith "route" element */ org.w3.unicorn.route.Route insertNewRoute(int i); /** * Appends and returns a new empty value (as xml) as the last "route" element */ org.w3.unicorn.route.Route addNewRoute(); /** * Removes the ith "route" element */ void removeRoute(int i); /** * Gets the "index" element */ org.w3.unicorn.route.Index getIndex(); /** * Sets the "index" element */ void setIndex(org.w3.unicorn.route.Index index); /** * Appends and returns a new empty "index" element */ org.w3.unicorn.route.Index addNewIndex(); /** * Gets the "error404" element */ org.w3.unicorn.route.Error404 getError404(); /** * Sets the "error404" element */ void setError404(org.w3.unicorn.route.Error404 error404); /** * Appends and returns a new empty "error404" element */ org.w3.unicorn.route.Error404 addNewError404(); /** * A factory class with static methods for creating instances * of this type. */ public static final class Factory { public static org.w3.unicorn.route.RoutesDocument.Routes newInstance() { return (org.w3.unicorn.route.RoutesDocument.Routes) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newInstance( type, null ); } public static org.w3.unicorn.route.RoutesDocument.Routes newInstance(org.apache.xmlbeans.XmlOptions options) { return (org.w3.unicorn.route.RoutesDocument.Routes) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newInstance( type, options ); } private Factory() { } // No instance of this class allowed } } /** * A factory class with static methods for creating instances * of this type. */ public static final class Factory { public static org.w3.unicorn.route.RoutesDocument newInstance() { return (org.w3.unicorn.route.RoutesDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newInstance( type, null ); } public static org.w3.unicorn.route.RoutesDocument newInstance(org.apache.xmlbeans.XmlOptions options) { return (org.w3.unicorn.route.RoutesDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newInstance( type, options ); } /** @param xmlAsString the string value to parse */ public static org.w3.unicorn.route.RoutesDocument parse(java.lang.String xmlAsString) throws org.apache.xmlbeans.XmlException { return (org.w3.unicorn.route.RoutesDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xmlAsString, type, null ); } public static org.w3.unicorn.route.RoutesDocument parse(java.lang.String xmlAsString, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException { return (org.w3.unicorn.route.RoutesDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xmlAsString, type, options ); } /** @param file the file from which to load an xml document */ public static org.w3.unicorn.route.RoutesDocument parse(java.io.File file) throws org.apache.xmlbeans.XmlException, java.io.IOException { return (org.w3.unicorn.route.RoutesDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( file, type, null ); } public static org.w3.unicorn.route.RoutesDocument parse(java.io.File file, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException { return (org.w3.unicorn.route.RoutesDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( file, type, options ); } public static org.w3.unicorn.route.RoutesDocument parse(java.net.URL u) throws org.apache.xmlbeans.XmlException, java.io.IOException { return (org.w3.unicorn.route.RoutesDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( u, type, null ); } public static org.w3.unicorn.route.RoutesDocument parse(java.net.URL u, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException { return (org.w3.unicorn.route.RoutesDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( u, type, options ); } public static org.w3.unicorn.route.RoutesDocument parse(java.io.InputStream is) throws org.apache.xmlbeans.XmlException, java.io.IOException { return (org.w3.unicorn.route.RoutesDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( is, type, null ); } public static org.w3.unicorn.route.RoutesDocument parse(java.io.InputStream is, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException { return (org.w3.unicorn.route.RoutesDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( is, type, options ); } public static org.w3.unicorn.route.RoutesDocument parse(java.io.Reader r) throws org.apache.xmlbeans.XmlException, java.io.IOException { return (org.w3.unicorn.route.RoutesDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( r, type, null ); } public static org.w3.unicorn.route.RoutesDocument parse(java.io.Reader r, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException { return (org.w3.unicorn.route.RoutesDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( r, type, options ); } public static org.w3.unicorn.route.RoutesDocument parse(javax.xml.stream.XMLStreamReader sr) throws org.apache.xmlbeans.XmlException { return (org.w3.unicorn.route.RoutesDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( sr, type, null ); } public static org.w3.unicorn.route.RoutesDocument parse(javax.xml.stream.XMLStreamReader sr, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException { return (org.w3.unicorn.route.RoutesDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( sr, type, options ); } public static org.w3.unicorn.route.RoutesDocument parse(org.w3c.dom.Node node) throws org.apache.xmlbeans.XmlException { return (org.w3.unicorn.route.RoutesDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( node, type, null ); } public static org.w3.unicorn.route.RoutesDocument parse(org.w3c.dom.Node node, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException { return (org.w3.unicorn.route.RoutesDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( node, type, options ); } /** @deprecated {@link org.apache.xmlbeans.xml.stream.XMLInputStream} */ public static org.w3.unicorn.route.RoutesDocument parse(org.apache.xmlbeans.xml.stream.XMLInputStream xis) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException { return (org.w3.unicorn.route.RoutesDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xis, type, null ); } /** @deprecated {@link org.apache.xmlbeans.xml.stream.XMLInputStream} */ public static org.w3.unicorn.route.RoutesDocument parse(org.apache.xmlbeans.xml.stream.XMLInputStream xis, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException { return (org.w3.unicorn.route.RoutesDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xis, type, options ); } /** @deprecated {@link org.apache.xmlbeans.xml.stream.XMLInputStream} */ public static org.apache.xmlbeans.xml.stream.XMLInputStream newValidatingXMLInputStream(org.apache.xmlbeans.xml.stream.XMLInputStream xis) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException { return org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newValidatingXMLInputStream( xis, type, null ); } /** @deprecated {@link org.apache.xmlbeans.xml.stream.XMLInputStream} */ public static org.apache.xmlbeans.xml.stream.XMLInputStream newValidatingXMLInputStream(org.apache.xmlbeans.xml.stream.XMLInputStream xis, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException { return org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newValidatingXMLInputStream( xis, type, options ); } private Factory() { } // No instance of this class allowed } } --- NEW FILE: Error404.java --- /* * XML Type: error404 * Namespace: http://www.w3.org/unicorn/route * Java type: org.w3.unicorn.route.Error404 * * Automatically generated - do not modify. */ package org.w3.unicorn.route; /** * An XML error404(@http://www.w3.org/unicorn/route). * * This is a complex type. */ public interface Error404 extends org.apache.xmlbeans.XmlObject { public static final org.apache.xmlbeans.SchemaType type = (org.apache.xmlbeans.SchemaType) org.apache.xmlbeans.XmlBeans.typeSystemForClassLoader(Error404.class.getClassLoader(), "schemaorg_apache_xmlbeans.system.s69AE826127FB706696DECA7E095DD405").resolveHandle("error4048eb7type"); /** * Gets the "action" element */ java.lang.String getAction(); /** * Gets (as xml) the "action" element */ org.w3.unicorn.route.ClassString xgetAction(); /** * Sets the "action" element */ void setAction(java.lang.String action); /** * Sets (as xml) the "action" element */ void xsetAction(org.w3.unicorn.route.ClassString action); /** * A factory class with static methods for creating instances * of this type. */ public static final class Factory { public static org.w3.unicorn.route.Error404 newInstance() { return (org.w3.unicorn.route.Error404) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newInstance( type, null ); } public static org.w3.unicorn.route.Error404 newInstance(org.apache.xmlbeans.XmlOptions options) { return (org.w3.unicorn.route.Error404) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newInstance( type, options ); } /** @param xmlAsString the string value to parse */ public static org.w3.unicorn.route.Error404 parse(java.lang.String xmlAsString) throws org.apache.xmlbeans.XmlException { return (org.w3.unicorn.route.Error404) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xmlAsString, type, null ); } public static org.w3.unicorn.route.Error404 parse(java.lang.String xmlAsString, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException { return (org.w3.unicorn.route.Error404) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xmlAsString, type, options ); } /** @param file the file from which to load an xml document */ public static org.w3.unicorn.route.Error404 parse(java.io.File file) throws org.apache.xmlbeans.XmlException, java.io.IOException { return (org.w3.unicorn.route.Error404) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( file, type, null ); } public static org.w3.unicorn.route.Error404 parse(java.io.File file, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException { return (org.w3.unicorn.route.Error404) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( file, type, options ); } public static org.w3.unicorn.route.Error404 parse(java.net.URL u) throws org.apache.xmlbeans.XmlException, java.io.IOException { return (org.w3.unicorn.route.Error404) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( u, type, null ); } public static org.w3.unicorn.route.Error404 parse(java.net.URL u, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException { return (org.w3.unicorn.route.Error404) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( u, type, options ); } public static org.w3.unicorn.route.Error404 parse(java.io.InputStream is) throws org.apache.xmlbeans.XmlException, java.io.IOException { return (org.w3.unicorn.route.Error404) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( is, type, null ); } public static org.w3.unicorn.route.Error404 parse(java.io.InputStream is, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException { return (org.w3.unicorn.route.Error404) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( is, type, options ); } public static org.w3.unicorn.route.Error404 parse(java.io.Reader r) throws org.apache.xmlbeans.XmlException, java.io.IOException { return (org.w3.unicorn.route.Error404) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( r, type, null ); } public static org.w3.unicorn.route.Error404 parse(java.io.Reader r, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException { return (org.w3.unicorn.route.Error404) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( r, type, options ); } public static org.w3.unicorn.route.Error404 parse(javax.xml.stream.XMLStreamReader sr) throws org.apache.xmlbeans.XmlException { return (org.w3.unicorn.route.Error404) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( sr, type, null ); } public static org.w3.unicorn.route.Error404 parse(javax.xml.stream.XMLStreamReader sr, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException { return (org.w3.unicorn.route.Error404) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( sr, type, options ); } public static org.w3.unicorn.route.Error404 parse(org.w3c.dom.Node node) throws org.apache.xmlbeans.XmlException { return (org.w3.unicorn.route.Error404) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( node, type, null ); } public static org.w3.unicorn.route.Error404 parse(org.w3c.dom.Node node, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException { return (org.w3.unicorn.route.Error404) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( node, type, options ); } /** @deprecated {@link org.apache.xmlbeans.xml.stream.XMLInputStream} */ public static org.w3.unicorn.route.Error404 parse(org.apache.xmlbeans.xml.stream.XMLInputStream xis) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException { return (org.w3.unicorn.route.Error404) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xis, type, null ); } /** @deprecated {@link org.apache.xmlbeans.xml.stream.XMLInputStream} */ public static org.w3.unicorn.route.Error404 parse(org.apache.xmlbeans.xml.stream.XMLInputStream xis, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException { return (org.w3.unicorn.route.Error404) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xis, type, options ); } /** @deprecated {@link org.apache.xmlbeans.xml.stream.XMLInputStream} */ public static org.apache.xmlbeans.xml.stream.XMLInputStream newValidatingXMLInputStream(org.apache.xmlbeans.xml.stream.XMLInputStream xis) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException { return org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newValidatingXMLInputStream( xis, type, null ); } /** @deprecated {@link org.apache.xmlbeans.xml.stream.XMLInputStream} */ public static org.apache.xmlbeans.xml.stream.XMLInputStream newValidatingXMLInputStream(org.apache.xmlbeans.xml.stream.XMLInputStream xis, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException { return org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newValidatingXMLInputStream( xis, type, options ); } private Factory() { } // No instance of this class allowed } } --- NEW FILE: RouteParser.java --- package org.w3.unicorn.route; import java.net.MalformedURLException; import java.net.URL; import java.util.regex.Pattern; import javax.servlet.http.HttpServletRequest; import org.apache.log4j.Logger; //import org.w3c.unicorn.route.Route; import org.w3.unicorn.action.Error404Action; import org.w3.unicorn.action.IndexAction; import org.w3.unicorn.action.ObserveAction; public class RouteParser { private static Logger logger = Logger.getLogger("RouteParser"); private static Pattern indexPattern = Pattern.compile("/"); private static Pattern observePattern = Pattern.compile("/observe"); private static Pattern dlPattern = Pattern.compile("/download"); /*public static Route getRoute(HttpServletRequest request) throws MalformedURLException { logger.debug("PathInfo: "+request.getPathInfo()); Route route = new Route(); String pathInfo = request.getPathInfo(); if (indexPattern.matcher(pathInfo).matches()) { route.setActionClass(IndexAction.class); return route; } else if (observePattern.matcher(pathInfo).matches()) { route.setActionClass(ObserveAction.class); return route; } else if (dlPattern.matcher(pathInfo).matches()) { route.setRedirect(true); route.setUrl(new URL("http://google.com")); return route; }else { route.setActionClass(Error404Action.class); return route; } }*/ } --- NEW FILE: ClassString.java --- /* * XML Type: classString * Namespace: http://www.w3.org/unicorn/route * Java type: org.w3.unicorn.route.ClassString * * Automatically generated - do not modify. */ package org.w3.unicorn.route; /** * An XML classString(@http://www.w3.org/unicorn/route). * * This is an atomic type that is a restriction of org.w3.unicorn.route.ClassString. */ public interface ClassString extends org.apache.xmlbeans.XmlToken { public static final org.apache.xmlbeans.SchemaType type = (org.apache.xmlbeans.SchemaType) org.apache.xmlbeans.XmlBeans.typeSystemForClassLoader(ClassString.class.getClassLoader(), "schemaorg_apache_xmlbeans.system.s69AE826127FB706696DECA7E095DD405").resolveHandle("classstring4cbetype"); /** * A factory class with static methods for creating instances * of this type. */ public static final class Factory { public static org.w3.unicorn.route.ClassString newValue(java.lang.Object obj) { return (org.w3.unicorn.route.ClassString) type.newValue( obj ); } public static org.w3.unicorn.route.ClassString newInstance() { return (org.w3.unicorn.route.ClassString) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newInstance( type, null ); } public static org.w3.unicorn.route.ClassString newInstance(org.apache.xmlbeans.XmlOptions options) { return (org.w3.unicorn.route.ClassString) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newInstance( type, options ); } /** @param xmlAsString the string value to parse */ public static org.w3.unicorn.route.ClassString parse(java.lang.String xmlAsString) throws org.apache.xmlbeans.XmlException { return (org.w3.unicorn.route.ClassString) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xmlAsString, type, null ); } public static org.w3.unicorn.route.ClassString parse(java.lang.String xmlAsString, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException { return (org.w3.unicorn.route.ClassString) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xmlAsString, type, options ); } /** @param file the file from which to load an xml document */ public static org.w3.unicorn.route.ClassString parse(java.io.File file) throws org.apache.xmlbeans.XmlException, java.io.IOException { return (org.w3.unicorn.route.ClassString) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( file, type, null ); } public static org.w3.unicorn.route.ClassString parse(java.io.File file, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException { return (org.w3.unicorn.route.ClassString) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( file, type, options ); } public static org.w3.unicorn.route.ClassString parse(java.net.URL u) throws org.apache.xmlbeans.XmlException, java.io.IOException { return (org.w3.unicorn.route.ClassString) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( u, type, null ); } public static org.w3.unicorn.route.ClassString parse(java.net.URL u, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException { return (org.w3.unicorn.route.ClassString) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( u, type, options ); } public static org.w3.unicorn.route.ClassString parse(java.io.InputStream is) throws org.apache.xmlbeans.XmlException, java.io.IOException { return (org.w3.unicorn.route.ClassString) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( is, type, null ); } public static org.w3.unicorn.route.ClassString parse(java.io.InputStream is, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException { return (org.w3.unicorn.route.ClassString) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( is, type, options ); } public static org.w3.unicorn.route.ClassString parse(java.io.Reader r) throws org.apache.xmlbeans.XmlException, java.io.IOException { return (org.w3.unicorn.route.ClassString) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( r, type, null ); } public static org.w3.unicorn.route.ClassString parse(java.io.Reader r, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException { return (org.w3.unicorn.route.ClassString) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( r, type, options ); } public static org.w3.unicorn.route.ClassString parse(javax.xml.stream.XMLStreamReader sr) throws org.apache.xmlbeans.XmlException { return (org.w3.unicorn.route.ClassString) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( sr, type, null ); } public static org.w3.unicorn.route.ClassString parse(javax.xml.stream.XMLStreamReader sr, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException { return (org.w3.unicorn.route.ClassString) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( sr, type, options ); } public static org.w3.unicorn.route.ClassString parse(org.w3c.dom.Node node) throws org.apache.xmlbeans.XmlException { return (org.w3.unicorn.route.ClassString) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( node, type, null ); } public static org.w3.unicorn.route.ClassString parse(org.w3c.dom.Node node, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException { return (org.w3.unicorn.route.ClassString) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( node, type, options ); } /** @deprecated {@link org.apache.xmlbeans.xml.stream.XMLInputStream} */ public static org.w3.unicorn.route.ClassString parse(org.apache.xmlbeans.xml.stream.XMLInputStream xis) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException { return (org.w3.unicorn.route.ClassString) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xis, type, null ); } /** @deprecated {@link org.apache.xmlbeans.xml.stream.XMLInputStream} */ public static org.w3.unicorn.route.ClassString parse(org.apache.xmlbeans.xml.stream.XMLInputStream xis, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException { return (org.w3.unicorn.route.ClassString) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xis, type, options ); } /** @deprecated {@link org.apache.xmlbeans.xml.stream.XMLInputStream} */ public static org.apache.xmlbeans.xml.stream.XMLInputStream newValidatingXMLInputStream(org.apache.xmlbeans.xml.stream.XMLInputStream xis) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException { return org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newValidatingXMLInputStream( xis, type, null ); } /** @deprecated {@link org.apache.xmlbeans.xml.stream.XMLInputStream} */ public static org.apache.xmlbeans.xml.stream.XMLInputStream newValidatingXMLInputStream(org.apache.xmlbeans.xml.stream.XMLInputStream xis, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException { return org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newValidatingXMLInputStream( xis, type, options ); } private Factory() { } // No instance of this class allowed } }
Received on Wednesday, 5 August 2009 17:21:52 UTC