diff --git a/org.springframework.oxm/build.xml b/org.springframework.oxm/build.xml index 42b60a49681..93944e8072e 100644 --- a/org.springframework.oxm/build.xml +++ b/org.springframework.oxm/build.xml @@ -4,6 +4,37 @@ + + + + + + + + + + + + + + + + + + + diff --git a/org.springframework.oxm/src/test/java/org/springframework/oxm/xmlbeans/FlightDocument.java b/org.springframework.oxm/src/test/java/org/springframework/oxm/xmlbeans/FlightDocument.java deleted file mode 100644 index 1177566ecda..00000000000 --- a/org.springframework.oxm/src/test/java/org/springframework/oxm/xmlbeans/FlightDocument.java +++ /dev/null @@ -1,180 +0,0 @@ -/* - * Copyright 2002-2009 the original author or authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -/* - * An XML document type. - * Localname: flight - * Namespace: http://samples.springframework.org/flight - * Java type: org.springframework.samples.flight.FlightDocument - * - * Automatically generated - do not modify. - */ -package org.springframework.oxm.xmlbeans; - -/** - * A document containing one flight(@http://samples.springframework.org/flight) element. - * - * This is a complex type. - */ -public interface FlightDocument extends org.apache.xmlbeans.XmlObject { - - public static final org.apache.xmlbeans.SchemaType type = - (org.apache.xmlbeans.SchemaType) org.apache.xmlbeans.XmlBeans - .typeSystemForClassLoader(FlightDocument.class.getClassLoader(), - "schemaorg_apache_xmlbeans.system.s5EF858A5E57B2761C3670716FC0A909C") - .resolveHandle("flightc6b8doctype"); - - /** Gets the "flight" element */ - org.springframework.oxm.xmlbeans.FlightType getFlight(); - - /** Sets the "flight" element */ - void setFlight(org.springframework.oxm.xmlbeans.FlightType flight); - - /** Appends and returns a new empty "flight" element */ - org.springframework.oxm.xmlbeans.FlightType addNewFlight(); - - /** A factory class with static methods for creating instances of this type. */ - - public static final class Factory { - - public static org.springframework.oxm.xmlbeans.FlightDocument newInstance() { - return (org.springframework.oxm.xmlbeans.FlightDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader() - .newInstance(type, null); - } - - public static org.springframework.oxm.xmlbeans.FlightDocument newInstance(org.apache.xmlbeans.XmlOptions options) { - return (org.springframework.oxm.xmlbeans.FlightDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader() - .newInstance(type, options); - } - - /** @param xmlAsString the string value to parse */ - public static org.springframework.oxm.xmlbeans.FlightDocument parse(java.lang.String xmlAsString) - throws org.apache.xmlbeans.XmlException { - return (org.springframework.oxm.xmlbeans.FlightDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader() - .parse(xmlAsString, type, null); - } - - public static org.springframework.oxm.xmlbeans.FlightDocument parse(java.lang.String xmlAsString, - org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException { - return (org.springframework.oxm.xmlbeans.FlightDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader() - .parse(xmlAsString, type, options); - } - - /** @param file the file from which to load an xml document */ - public static org.springframework.oxm.xmlbeans.FlightDocument parse(java.io.File file) - throws org.apache.xmlbeans.XmlException, java.io.IOException { - return (org.springframework.oxm.xmlbeans.FlightDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader() - .parse(file, type, null); - } - - public static org.springframework.oxm.xmlbeans.FlightDocument parse(java.io.File file, - org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException { - return (org.springframework.oxm.xmlbeans.FlightDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader() - .parse(file, type, options); - } - - public static org.springframework.oxm.xmlbeans.FlightDocument parse(java.net.URL u) - throws org.apache.xmlbeans.XmlException, java.io.IOException { - return (org.springframework.oxm.xmlbeans.FlightDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader() - .parse(u, type, null); - } - - public static org.springframework.oxm.xmlbeans.FlightDocument parse(java.net.URL u, - org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException { - return (org.springframework.oxm.xmlbeans.FlightDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader() - .parse(u, type, options); - } - - public static org.springframework.oxm.xmlbeans.FlightDocument parse(java.io.InputStream is) - throws org.apache.xmlbeans.XmlException, java.io.IOException { - return (org.springframework.oxm.xmlbeans.FlightDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader() - .parse(is, type, null); - } - - public static org.springframework.oxm.xmlbeans.FlightDocument parse(java.io.InputStream is, - org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException { - return (org.springframework.oxm.xmlbeans.FlightDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader() - .parse(is, type, options); - } - - public static org.springframework.oxm.xmlbeans.FlightDocument parse(java.io.Reader r) - throws org.apache.xmlbeans.XmlException, java.io.IOException { - return (org.springframework.oxm.xmlbeans.FlightDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader() - .parse(r, type, null); - } - - public static org.springframework.oxm.xmlbeans.FlightDocument parse(java.io.Reader r, - org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException { - return (org.springframework.oxm.xmlbeans.FlightDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader() - .parse(r, type, options); - } - - public static org.springframework.oxm.xmlbeans.FlightDocument parse(javax.xml.stream.XMLStreamReader sr) - throws org.apache.xmlbeans.XmlException { - return (org.springframework.oxm.xmlbeans.FlightDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader() - .parse(sr, type, null); - } - - public static org.springframework.oxm.xmlbeans.FlightDocument parse(javax.xml.stream.XMLStreamReader sr, - org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException { - return (org.springframework.oxm.xmlbeans.FlightDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader() - .parse(sr, type, options); - } - - public static org.springframework.oxm.xmlbeans.FlightDocument parse(org.w3c.dom.Node node) - throws org.apache.xmlbeans.XmlException { - return (org.springframework.oxm.xmlbeans.FlightDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader() - .parse(node, type, null); - } - - public static org.springframework.oxm.xmlbeans.FlightDocument parse(org.w3c.dom.Node node, - org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException { - return (org.springframework.oxm.xmlbeans.FlightDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader() - .parse(node, type, options); - } - - /** @deprecated {@link XMLInputStream} */ - public static org.springframework.oxm.xmlbeans.FlightDocument parse(org.apache.xmlbeans.xml.stream.XMLInputStream xis) - throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException { - return (org.springframework.oxm.xmlbeans.FlightDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader() - .parse(xis, type, null); - } - - /** @deprecated {@link XMLInputStream} */ - public static org.springframework.oxm.xmlbeans.FlightDocument 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.springframework.oxm.xmlbeans.FlightDocument) org.apache.xmlbeans.XmlBeans.getContextTypeLoader() - .parse(xis, type, options); - } - - /** @deprecated {@link 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 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 - } -} diff --git a/org.springframework.oxm/src/test/java/org/springframework/oxm/xmlbeans/FlightType.java b/org.springframework.oxm/src/test/java/org/springframework/oxm/xmlbeans/FlightType.java deleted file mode 100644 index 20c7d678132..00000000000 --- a/org.springframework.oxm/src/test/java/org/springframework/oxm/xmlbeans/FlightType.java +++ /dev/null @@ -1,182 +0,0 @@ -/* - * Copyright 2002-2009 the original author or authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -/* - * XML Type: flightType - * Namespace: http://samples.springframework.org/flight - * Java type: org.springframework.samples.flight.FlightType - * - * Automatically generated - do not modify. - */ -package org.springframework.oxm.xmlbeans; - -/** - * An XML flightType(@http://samples.springframework.org/flight). - * - * This is a complex type. - */ -public interface FlightType extends org.apache.xmlbeans.XmlObject { - - public static final org.apache.xmlbeans.SchemaType type = - (org.apache.xmlbeans.SchemaType) org.apache.xmlbeans.XmlBeans - .typeSystemForClassLoader(FlightType.class.getClassLoader(), - "schemaorg_apache_xmlbeans.system.s5EF858A5E57B2761C3670716FC0A909C") - .resolveHandle("flighttype4702type"); - - /** Gets the "number" element */ - long getNumber(); - - /** Gets (as xml) the "number" element */ - org.apache.xmlbeans.XmlLong xgetNumber(); - - /** Sets the "number" element */ - void setNumber(long number); - - /** Sets (as xml) the "number" element */ - void xsetNumber(org.apache.xmlbeans.XmlLong number); - - /** A factory class with static methods for creating instances of this type. */ - - public static final class Factory { - - public static org.springframework.oxm.xmlbeans.FlightType newInstance() { - return (org.springframework.oxm.xmlbeans.FlightType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader() - .newInstance(type, null); - } - - public static org.springframework.oxm.xmlbeans.FlightType newInstance(org.apache.xmlbeans.XmlOptions options) { - return (org.springframework.oxm.xmlbeans.FlightType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader() - .newInstance(type, options); - } - - /** @param xmlAsString the string value to parse */ - public static org.springframework.oxm.xmlbeans.FlightType parse(java.lang.String xmlAsString) - throws org.apache.xmlbeans.XmlException { - return (org.springframework.oxm.xmlbeans.FlightType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader() - .parse(xmlAsString, type, null); - } - - public static org.springframework.oxm.xmlbeans.FlightType parse(java.lang.String xmlAsString, - org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException { - return (org.springframework.oxm.xmlbeans.FlightType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader() - .parse(xmlAsString, type, options); - } - - /** @param file the file from which to load an xml document */ - public static org.springframework.oxm.xmlbeans.FlightType parse(java.io.File file) - throws org.apache.xmlbeans.XmlException, java.io.IOException { - return (org.springframework.oxm.xmlbeans.FlightType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader() - .parse(file, type, null); - } - - public static org.springframework.oxm.xmlbeans.FlightType parse(java.io.File file, - org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException { - return (org.springframework.oxm.xmlbeans.FlightType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader() - .parse(file, type, options); - } - - public static org.springframework.oxm.xmlbeans.FlightType parse(java.net.URL u) - throws org.apache.xmlbeans.XmlException, java.io.IOException { - return (org.springframework.oxm.xmlbeans.FlightType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader() - .parse(u, type, null); - } - - public static org.springframework.oxm.xmlbeans.FlightType parse(java.net.URL u, - org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException { - return (org.springframework.oxm.xmlbeans.FlightType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader() - .parse(u, type, options); - } - - public static org.springframework.oxm.xmlbeans.FlightType parse(java.io.InputStream is) - throws org.apache.xmlbeans.XmlException, java.io.IOException { - return (org.springframework.oxm.xmlbeans.FlightType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader() - .parse(is, type, null); - } - - public static org.springframework.oxm.xmlbeans.FlightType parse(java.io.InputStream is, - org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException { - return (org.springframework.oxm.xmlbeans.FlightType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader() - .parse(is, type, options); - } - - public static org.springframework.oxm.xmlbeans.FlightType parse(java.io.Reader r) - throws org.apache.xmlbeans.XmlException, java.io.IOException { - return (org.springframework.oxm.xmlbeans.FlightType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader() - .parse(r, type, null); - } - - public static org.springframework.oxm.xmlbeans.FlightType parse(java.io.Reader r, - org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException { - return (org.springframework.oxm.xmlbeans.FlightType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader() - .parse(r, type, options); - } - - public static org.springframework.oxm.xmlbeans.FlightType parse(javax.xml.stream.XMLStreamReader sr) - throws org.apache.xmlbeans.XmlException { - return (org.springframework.oxm.xmlbeans.FlightType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader() - .parse(sr, type, null); - } - - public static org.springframework.oxm.xmlbeans.FlightType parse(javax.xml.stream.XMLStreamReader sr, - org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException { - return (org.springframework.oxm.xmlbeans.FlightType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader() - .parse(sr, type, options); - } - - public static org.springframework.oxm.xmlbeans.FlightType parse(org.w3c.dom.Node node) - throws org.apache.xmlbeans.XmlException { - return (org.springframework.oxm.xmlbeans.FlightType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader() - .parse(node, type, null); - } - - public static org.springframework.oxm.xmlbeans.FlightType parse(org.w3c.dom.Node node, - org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException { - return (org.springframework.oxm.xmlbeans.FlightType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader() - .parse(node, type, options); - } - - /** @deprecated {@link XMLInputStream} */ - public static org.springframework.oxm.xmlbeans.FlightType parse(org.apache.xmlbeans.xml.stream.XMLInputStream xis) - throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException { - return (org.springframework.oxm.xmlbeans.FlightType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader() - .parse(xis, type, null); - } - - /** @deprecated {@link XMLInputStream} */ - public static org.springframework.oxm.xmlbeans.FlightType 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.springframework.oxm.xmlbeans.FlightType) org.apache.xmlbeans.XmlBeans.getContextTypeLoader() - .parse(xis, type, options); - } - - /** @deprecated {@link 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 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 - } -} diff --git a/org.springframework.oxm/src/test/java/org/springframework/oxm/xmlbeans/FlightsDocument.java b/org.springframework.oxm/src/test/java/org/springframework/oxm/xmlbeans/FlightsDocument.java deleted file mode 100644 index 7593f01e468..00000000000 --- a/org.springframework.oxm/src/test/java/org/springframework/oxm/xmlbeans/FlightsDocument.java +++ /dev/null @@ -1,243 +0,0 @@ -/* - * Copyright 2002-2009 the original author or authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -/* - * An XML document type. - * Localname: flights - * Namespace: http://samples.springframework.org/flight - * Java type: org.springframework.samples.flight.FlightsDocument - * - * Automatically generated - do not modify. - */ -package org.springframework.oxm.xmlbeans; - -/** - * A document containing one flights(@http://samples.springframework.org/flight) element. - * - * This is a complex type. - */ -public interface FlightsDocument extends org.apache.xmlbeans.XmlObject { - - public static final org.apache.xmlbeans.SchemaType type = - (org.apache.xmlbeans.SchemaType) org.apache.xmlbeans.XmlBeans - .typeSystemForClassLoader(FlightsDocument.class.getClassLoader(), - "schemaorg_apache_xmlbeans.system.s5EF858A5E57B2761C3670716FC0A909C") - .resolveHandle("flights4eb9doctype"); - - /** Gets the "flights" element */ - org.springframework.oxm.xmlbeans.FlightsDocument.Flights getFlights(); - - /** Sets the "flights" element */ - void setFlights(org.springframework.oxm.xmlbeans.FlightsDocument.Flights flights); - - /** Appends and returns a new empty "flights" element */ - org.springframework.oxm.xmlbeans.FlightsDocument.Flights addNewFlights(); - - /** - * An XML flights(@http://samples.springframework.org/flight). - * - * This is a complex type. - */ - public interface Flights extends org.apache.xmlbeans.XmlObject { - - public static final org.apache.xmlbeans.SchemaType type = - (org.apache.xmlbeans.SchemaType) org.apache.xmlbeans.XmlBeans - .typeSystemForClassLoader(Flights.class.getClassLoader(), - "schemaorg_apache_xmlbeans.system.s5EF858A5E57B2761C3670716FC0A909C") - .resolveHandle("flightseba8elemtype"); - - /** Gets a List of "flight" elements */ - java.util.List getFlightList(); - - /** - * Gets array of all "flight" elements - * - * @deprecated - */ - org.springframework.oxm.xmlbeans.FlightType[] getFlightArray(); - - /** Gets ith "flight" element */ - org.springframework.oxm.xmlbeans.FlightType getFlightArray(int i); - - /** Returns number of "flight" element */ - int sizeOfFlightArray(); - - /** Sets array of all "flight" element */ - void setFlightArray(org.springframework.oxm.xmlbeans.FlightType[] flightArray); - - /** Sets ith "flight" element */ - void setFlightArray(int i, org.springframework.oxm.xmlbeans.FlightType flight); - - /** Inserts and returns a new empty value (as xml) as the ith "flight" element */ - org.springframework.oxm.xmlbeans.FlightType insertNewFlight(int i); - - /** Appends and returns a new empty value (as xml) as the last "flight" element */ - org.springframework.oxm.xmlbeans.FlightType addNewFlight(); - - /** Removes the ith "flight" element */ - void removeFlight(int i); - - /** A factory class with static methods for creating instances of this type. */ - - public static final class Factory { - - public static org.springframework.oxm.xmlbeans.FlightsDocument.Flights newInstance() { - return (org.springframework.oxm.xmlbeans.FlightsDocument.Flights) org.apache.xmlbeans.XmlBeans - .getContextTypeLoader().newInstance(type, null); - } - - public static org.springframework.oxm.xmlbeans.FlightsDocument.Flights newInstance(org.apache.xmlbeans.XmlOptions options) { - return (org.springframework.oxm.xmlbeans.FlightsDocument.Flights) 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.springframework.oxm.xmlbeans.FlightsDocument newInstance() { - return (org.springframework.oxm.xmlbeans.FlightsDocument) org.apache.xmlbeans.XmlBeans - .getContextTypeLoader().newInstance(type, null); - } - - public static org.springframework.oxm.xmlbeans.FlightsDocument newInstance(org.apache.xmlbeans.XmlOptions options) { - return (org.springframework.oxm.xmlbeans.FlightsDocument) org.apache.xmlbeans.XmlBeans - .getContextTypeLoader().newInstance(type, options); - } - - /** @param xmlAsString the string value to parse */ - public static org.springframework.oxm.xmlbeans.FlightsDocument parse(java.lang.String xmlAsString) - throws org.apache.xmlbeans.XmlException { - return (org.springframework.oxm.xmlbeans.FlightsDocument) org.apache.xmlbeans.XmlBeans - .getContextTypeLoader().parse(xmlAsString, type, null); - } - - public static org.springframework.oxm.xmlbeans.FlightsDocument parse(java.lang.String xmlAsString, - org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException { - return (org.springframework.oxm.xmlbeans.FlightsDocument) org.apache.xmlbeans.XmlBeans - .getContextTypeLoader().parse(xmlAsString, type, options); - } - - /** @param file the file from which to load an xml document */ - public static org.springframework.oxm.xmlbeans.FlightsDocument parse(java.io.File file) - throws org.apache.xmlbeans.XmlException, java.io.IOException { - return (org.springframework.oxm.xmlbeans.FlightsDocument) org.apache.xmlbeans.XmlBeans - .getContextTypeLoader().parse(file, type, null); - } - - public static org.springframework.oxm.xmlbeans.FlightsDocument parse(java.io.File file, - org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException { - return (org.springframework.oxm.xmlbeans.FlightsDocument) org.apache.xmlbeans.XmlBeans - .getContextTypeLoader().parse(file, type, options); - } - - public static org.springframework.oxm.xmlbeans.FlightsDocument parse(java.net.URL u) - throws org.apache.xmlbeans.XmlException, java.io.IOException { - return (org.springframework.oxm.xmlbeans.FlightsDocument) org.apache.xmlbeans.XmlBeans - .getContextTypeLoader().parse(u, type, null); - } - - public static org.springframework.oxm.xmlbeans.FlightsDocument parse(java.net.URL u, - org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException { - return (org.springframework.oxm.xmlbeans.FlightsDocument) org.apache.xmlbeans.XmlBeans - .getContextTypeLoader().parse(u, type, options); - } - - public static org.springframework.oxm.xmlbeans.FlightsDocument parse(java.io.InputStream is) - throws org.apache.xmlbeans.XmlException, java.io.IOException { - return (org.springframework.oxm.xmlbeans.FlightsDocument) org.apache.xmlbeans.XmlBeans - .getContextTypeLoader().parse(is, type, null); - } - - public static org.springframework.oxm.xmlbeans.FlightsDocument parse(java.io.InputStream is, - org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException { - return (org.springframework.oxm.xmlbeans.FlightsDocument) org.apache.xmlbeans.XmlBeans - .getContextTypeLoader().parse(is, type, options); - } - - public static org.springframework.oxm.xmlbeans.FlightsDocument parse(java.io.Reader r) - throws org.apache.xmlbeans.XmlException, java.io.IOException { - return (org.springframework.oxm.xmlbeans.FlightsDocument) org.apache.xmlbeans.XmlBeans - .getContextTypeLoader().parse(r, type, null); - } - - public static org.springframework.oxm.xmlbeans.FlightsDocument parse(java.io.Reader r, - org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException { - return (org.springframework.oxm.xmlbeans.FlightsDocument) org.apache.xmlbeans.XmlBeans - .getContextTypeLoader().parse(r, type, options); - } - - public static org.springframework.oxm.xmlbeans.FlightsDocument parse(javax.xml.stream.XMLStreamReader sr) - throws org.apache.xmlbeans.XmlException { - return (org.springframework.oxm.xmlbeans.FlightsDocument) org.apache.xmlbeans.XmlBeans - .getContextTypeLoader().parse(sr, type, null); - } - - public static org.springframework.oxm.xmlbeans.FlightsDocument parse(javax.xml.stream.XMLStreamReader sr, - org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException { - return (org.springframework.oxm.xmlbeans.FlightsDocument) org.apache.xmlbeans.XmlBeans - .getContextTypeLoader().parse(sr, type, options); - } - - public static org.springframework.oxm.xmlbeans.FlightsDocument parse(org.w3c.dom.Node node) - throws org.apache.xmlbeans.XmlException { - return (org.springframework.oxm.xmlbeans.FlightsDocument) org.apache.xmlbeans.XmlBeans - .getContextTypeLoader().parse(node, type, null); - } - - public static org.springframework.oxm.xmlbeans.FlightsDocument parse(org.w3c.dom.Node node, - org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException { - return (org.springframework.oxm.xmlbeans.FlightsDocument) org.apache.xmlbeans.XmlBeans - .getContextTypeLoader().parse(node, type, options); - } - - /** @deprecated {@link XMLInputStream} */ - public static org.springframework.oxm.xmlbeans.FlightsDocument parse(org.apache.xmlbeans.xml.stream.XMLInputStream xis) - throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException { - return (org.springframework.oxm.xmlbeans.FlightsDocument) org.apache.xmlbeans.XmlBeans - .getContextTypeLoader().parse(xis, type, null); - } - - /** @deprecated {@link XMLInputStream} */ - public static org.springframework.oxm.xmlbeans.FlightsDocument 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.springframework.oxm.xmlbeans.FlightsDocument) org.apache.xmlbeans.XmlBeans - .getContextTypeLoader().parse(xis, type, options); - } - - /** @deprecated {@link 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 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 - } -} diff --git a/org.springframework.oxm/src/test/java/org/springframework/oxm/xmlbeans/XmlBeansMarshallerTest.java b/org.springframework.oxm/src/test/java/org/springframework/oxm/xmlbeans/XmlBeansMarshallerTest.java index bf9a35b7a4b..32d714dc14b 100644 --- a/org.springframework.oxm/src/test/java/org/springframework/oxm/xmlbeans/XmlBeansMarshallerTest.java +++ b/org.springframework.oxm/src/test/java/org/springframework/oxm/xmlbeans/XmlBeansMarshallerTest.java @@ -21,13 +21,13 @@ import javax.xml.transform.stream.StreamResult; import org.apache.xmlbeans.XmlObject; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertTrue; -import org.junit.Ignore; import org.junit.Test; import org.springframework.oxm.AbstractMarshallerTestCase; import org.springframework.oxm.Marshaller; +import org.springframework.samples.flight.FlightType; +import org.springframework.samples.flight.FlightsDocument; -@Ignore("Code generation not yet support by Spring Build") public class XmlBeansMarshallerTest extends AbstractMarshallerTestCase { @Override diff --git a/org.springframework.oxm/src/test/java/org/springframework/oxm/xmlbeans/XmlBeansUnmarshallerTest.java b/org.springframework.oxm/src/test/java/org/springframework/oxm/xmlbeans/XmlBeansUnmarshallerTest.java index 44077be3c77..b50ff9a9de8 100644 --- a/org.springframework.oxm/src/test/java/org/springframework/oxm/xmlbeans/XmlBeansUnmarshallerTest.java +++ b/org.springframework.oxm/src/test/java/org/springframework/oxm/xmlbeans/XmlBeansUnmarshallerTest.java @@ -24,14 +24,15 @@ import javax.xml.transform.stream.StreamSource; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNotNull; -import org.junit.Ignore; import org.junit.Test; import org.springframework.oxm.AbstractUnmarshallerTestCase; import org.springframework.oxm.Unmarshaller; +import org.springframework.samples.flight.FlightDocument; +import org.springframework.samples.flight.FlightType; +import org.springframework.samples.flight.FlightsDocument; import org.springframework.util.xml.StaxUtils; -@Ignore("Code generation not yet support by Spring Build") public class XmlBeansUnmarshallerTest extends AbstractUnmarshallerTestCase { @Override diff --git a/org.springframework.oxm/src/test/java/org/springframework/oxm/xmlbeans/impl/FlightDocumentImpl.java b/org.springframework.oxm/src/test/java/org/springframework/oxm/xmlbeans/impl/FlightDocumentImpl.java deleted file mode 100644 index b9ac485d1a1..00000000000 --- a/org.springframework.oxm/src/test/java/org/springframework/oxm/xmlbeans/impl/FlightDocumentImpl.java +++ /dev/null @@ -1,61 +0,0 @@ -/* - * An XML document type. - * Localname: flight - * Namespace: http://samples.springframework.org/flight - * Java type: org.springframework.oxm.xmlbeans.FlightDocument - * - * Automatically generated - do not modify. - */ -package org.springframework.oxm.xmlbeans.impl; - -/** - * A document containing one flight(@http://samples.springframework.org/flight) element. - * - * This is a complex type. - */ -public class FlightDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl - implements org.springframework.oxm.xmlbeans.FlightDocument { - - public FlightDocumentImpl(org.apache.xmlbeans.SchemaType sType) { - super(sType); - } - - private static final javax.xml.namespace.QName FLIGHT$0 = - new javax.xml.namespace.QName("http://samples.springframework.org/flight", "flight"); - - /** Gets the "flight" element */ - public org.springframework.oxm.xmlbeans.FlightType getFlight() { - synchronized (monitor()) { - check_orphaned(); - org.springframework.oxm.xmlbeans.FlightType target = null; - target = (org.springframework.oxm.xmlbeans.FlightType) get_store().find_element_user(FLIGHT$0, 0); - if (target == null) { - return null; - } - return target; - } - } - - /** Sets the "flight" element */ - public void setFlight(org.springframework.oxm.xmlbeans.FlightType flight) { - synchronized (monitor()) { - check_orphaned(); - org.springframework.oxm.xmlbeans.FlightType target = null; - target = (org.springframework.oxm.xmlbeans.FlightType) get_store().find_element_user(FLIGHT$0, 0); - if (target == null) { - target = (org.springframework.oxm.xmlbeans.FlightType) get_store().add_element_user(FLIGHT$0); - } - target.set(flight); - } - } - - /** Appends and returns a new empty "flight" element */ - public org.springframework.oxm.xmlbeans.FlightType addNewFlight() { - synchronized (monitor()) { - check_orphaned(); - org.springframework.oxm.xmlbeans.FlightType target = null; - target = (org.springframework.oxm.xmlbeans.FlightType) get_store().add_element_user(FLIGHT$0); - return target; - } - } -} diff --git a/org.springframework.oxm/src/test/java/org/springframework/oxm/xmlbeans/impl/FlightTypeImpl.java b/org.springframework.oxm/src/test/java/org/springframework/oxm/xmlbeans/impl/FlightTypeImpl.java deleted file mode 100644 index b01cf2a33aa..00000000000 --- a/org.springframework.oxm/src/test/java/org/springframework/oxm/xmlbeans/impl/FlightTypeImpl.java +++ /dev/null @@ -1,73 +0,0 @@ -/* - * XML Type: flightType - * Namespace: http://samples.springframework.org/flight - * Java type: org.springframework.samples.flight.FlightType - * - * Automatically generated - do not modify. - */ -package org.springframework.oxm.xmlbeans.impl; - -/** - * An XML flightType(@http://samples.springframework.org/flight). - * - * This is a complex type. - */ -public class FlightTypeImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl - implements org.springframework.oxm.xmlbeans.FlightType { - - public FlightTypeImpl(org.apache.xmlbeans.SchemaType sType) { - super(sType); - } - - private static final javax.xml.namespace.QName NUMBER$0 = - new javax.xml.namespace.QName("http://samples.springframework.org/flight", "number"); - - /** Gets the "number" element */ - public long getNumber() { - synchronized (monitor()) { - check_orphaned(); - org.apache.xmlbeans.SimpleValue target = null; - target = (org.apache.xmlbeans.SimpleValue) get_store().find_element_user(NUMBER$0, 0); - if (target == null) { - return 0L; - } - return target.getLongValue(); - } - } - - /** Gets (as xml) the "number" element */ - public org.apache.xmlbeans.XmlLong xgetNumber() { - synchronized (monitor()) { - check_orphaned(); - org.apache.xmlbeans.XmlLong target = null; - target = (org.apache.xmlbeans.XmlLong) get_store().find_element_user(NUMBER$0, 0); - return target; - } - } - - /** Sets the "number" element */ - public void setNumber(long number) { - synchronized (monitor()) { - check_orphaned(); - org.apache.xmlbeans.SimpleValue target = null; - target = (org.apache.xmlbeans.SimpleValue) get_store().find_element_user(NUMBER$0, 0); - if (target == null) { - target = (org.apache.xmlbeans.SimpleValue) get_store().add_element_user(NUMBER$0); - } - target.setLongValue(number); - } - } - - /** Sets (as xml) the "number" element */ - public void xsetNumber(org.apache.xmlbeans.XmlLong number) { - synchronized (monitor()) { - check_orphaned(); - org.apache.xmlbeans.XmlLong target = null; - target = (org.apache.xmlbeans.XmlLong) get_store().find_element_user(NUMBER$0, 0); - if (target == null) { - target = (org.apache.xmlbeans.XmlLong) get_store().add_element_user(NUMBER$0); - } - target.set(number); - } - } -} diff --git a/org.springframework.oxm/src/test/java/org/springframework/oxm/xmlbeans/impl/FlightsDocumentImpl.java b/org.springframework.oxm/src/test/java/org/springframework/oxm/xmlbeans/impl/FlightsDocumentImpl.java deleted file mode 100644 index 93b1391a9ad..00000000000 --- a/org.springframework.oxm/src/test/java/org/springframework/oxm/xmlbeans/impl/FlightsDocumentImpl.java +++ /dev/null @@ -1,200 +0,0 @@ -/* - * An XML document type. - * Localname: flights - * Namespace: http://samples.springframework.org/flight - * Java type: org.springframework.samples.flight.FlightsDocument - * - * Automatically generated - do not modify. - */ -package org.springframework.oxm.xmlbeans.impl; - -/** - * A document containing one flights(@http://samples.springframework.org/flight) element. - * - * This is a complex type. - */ -public class FlightsDocumentImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl - implements org.springframework.oxm.xmlbeans.FlightsDocument { - - public FlightsDocumentImpl(org.apache.xmlbeans.SchemaType sType) { - super(sType); - } - - private static final javax.xml.namespace.QName FLIGHTS$0 = - new javax.xml.namespace.QName("http://samples.springframework.org/flight", "flights"); - - /** Gets the "flights" element */ - public org.springframework.oxm.xmlbeans.FlightsDocument.Flights getFlights() { - synchronized (monitor()) { - check_orphaned(); - org.springframework.oxm.xmlbeans.FlightsDocument.Flights target = null; - target = (org.springframework.oxm.xmlbeans.FlightsDocument.Flights) get_store() - .find_element_user(FLIGHTS$0, 0); - if (target == null) { - return null; - } - return target; - } - } - - /** Sets the "flights" element */ - public void setFlights(org.springframework.oxm.xmlbeans.FlightsDocument.Flights flights) { - synchronized (monitor()) { - check_orphaned(); - org.springframework.oxm.xmlbeans.FlightsDocument.Flights target = null; - target = (org.springframework.oxm.xmlbeans.FlightsDocument.Flights) get_store() - .find_element_user(FLIGHTS$0, 0); - if (target == null) { - target = (org.springframework.oxm.xmlbeans.FlightsDocument.Flights) get_store() - .add_element_user(FLIGHTS$0); - } - target.set(flights); - } - } - - /** Appends and returns a new empty "flights" element */ - public org.springframework.oxm.xmlbeans.FlightsDocument.Flights addNewFlights() { - synchronized (monitor()) { - check_orphaned(); - org.springframework.oxm.xmlbeans.FlightsDocument.Flights target = null; - target = (org.springframework.oxm.xmlbeans.FlightsDocument.Flights) get_store().add_element_user(FLIGHTS$0); - return target; - } - } - - /** - * An XML flights(@http://samples.springframework.org/flight). - * - * This is a complex type. - */ - public static class FlightsImpl extends org.apache.xmlbeans.impl.values.XmlComplexContentImpl - implements org.springframework.oxm.xmlbeans.FlightsDocument.Flights { - - public FlightsImpl(org.apache.xmlbeans.SchemaType sType) { - super(sType); - } - - private static final javax.xml.namespace.QName FLIGHT$0 = - new javax.xml.namespace.QName("http://samples.springframework.org/flight", "flight"); - - /** Gets a List of "flight" elements */ - public java.util.List getFlightList() { - final class FlightList extends java.util.AbstractList { - - public org.springframework.oxm.xmlbeans.FlightType get(int i) { - return FlightsImpl.this.getFlightArray(i); - } - - public org.springframework.oxm.xmlbeans.FlightType set(int i, - org.springframework.oxm.xmlbeans.FlightType o) { - org.springframework.oxm.xmlbeans.FlightType old = FlightsImpl.this.getFlightArray(i); - FlightsImpl.this.setFlightArray(i, o); - return old; - } - - public void add(int i, org.springframework.oxm.xmlbeans.FlightType o) { - FlightsImpl.this.insertNewFlight(i).set(o); - } - - public org.springframework.oxm.xmlbeans.FlightType remove(int i) { - org.springframework.oxm.xmlbeans.FlightType old = FlightsImpl.this.getFlightArray(i); - FlightsImpl.this.removeFlight(i); - return old; - } - - public int size() { - return FlightsImpl.this.sizeOfFlightArray(); - } - - } - - synchronized (monitor()) { - check_orphaned(); - return new FlightList(); - } - } - - /** Gets array of all "flight" elements */ - public org.springframework.oxm.xmlbeans.FlightType[] getFlightArray() { - synchronized (monitor()) { - check_orphaned(); - java.util.List targetList = new java.util.ArrayList(); - get_store().find_all_element_users(FLIGHT$0, targetList); - org.springframework.oxm.xmlbeans.FlightType[] result = - new org.springframework.oxm.xmlbeans.FlightType[targetList.size()]; - targetList.toArray(result); - return result; - } - } - - /** Gets ith "flight" element */ - public org.springframework.oxm.xmlbeans.FlightType getFlightArray(int i) { - synchronized (monitor()) { - check_orphaned(); - org.springframework.oxm.xmlbeans.FlightType target = null; - target = (org.springframework.oxm.xmlbeans.FlightType) get_store().find_element_user(FLIGHT$0, i); - if (target == null) { - throw new IndexOutOfBoundsException(); - } - return target; - } - } - - /** Returns number of "flight" element */ - public int sizeOfFlightArray() { - synchronized (monitor()) { - check_orphaned(); - return get_store().count_elements(FLIGHT$0); - } - } - - /** Sets array of all "flight" element */ - public void setFlightArray(org.springframework.oxm.xmlbeans.FlightType[] flightArray) { - synchronized (monitor()) { - check_orphaned(); - arraySetterHelper(flightArray, FLIGHT$0); - } - } - - /** Sets ith "flight" element */ - public void setFlightArray(int i, org.springframework.oxm.xmlbeans.FlightType flight) { - synchronized (monitor()) { - check_orphaned(); - org.springframework.oxm.xmlbeans.FlightType target = null; - target = (org.springframework.oxm.xmlbeans.FlightType) get_store().find_element_user(FLIGHT$0, i); - if (target == null) { - throw new IndexOutOfBoundsException(); - } - target.set(flight); - } - } - - /** Inserts and returns a new empty value (as xml) as the ith "flight" element */ - public org.springframework.oxm.xmlbeans.FlightType insertNewFlight(int i) { - synchronized (monitor()) { - check_orphaned(); - org.springframework.oxm.xmlbeans.FlightType target = null; - target = (org.springframework.oxm.xmlbeans.FlightType) get_store().insert_element_user(FLIGHT$0, i); - return target; - } - } - - /** Appends and returns a new empty value (as xml) as the last "flight" element */ - public org.springframework.oxm.xmlbeans.FlightType addNewFlight() { - synchronized (monitor()) { - check_orphaned(); - org.springframework.oxm.xmlbeans.FlightType target = null; - target = (org.springframework.oxm.xmlbeans.FlightType) get_store().add_element_user(FLIGHT$0); - return target; - } - } - - /** Removes the ith "flight" element */ - public void removeFlight(int i) { - synchronized (monitor()) { - check_orphaned(); - get_store().remove_element(FLIGHT$0, i); - } - } - } -}