You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jaxme-dev@ws.apache.org by jo...@apache.org on 2006/11/24 13:15:06 UTC

svn commit: r478855 [12/21] - in /webservices/jaxme/branches/MAVEN/jaxme-xs: ./ src/ src/main/ src/main/java/ src/main/java/org/ src/main/java/org/apache/ src/main/java/org/apache/ws/ src/main/java/org/apache/ws/jaxme/ src/main/java/org/apache/ws/jaxme...

Added: webservices/jaxme/branches/MAVEN/jaxme-xs/src/main/java/org/apache/ws/jaxme/xs/xml/XsTFacet.java
URL: http://svn.apache.org/viewvc/webservices/jaxme/branches/MAVEN/jaxme-xs/src/main/java/org/apache/ws/jaxme/xs/xml/XsTFacet.java?view=auto&rev=478855
==============================================================================
--- webservices/jaxme/branches/MAVEN/jaxme-xs/src/main/java/org/apache/ws/jaxme/xs/xml/XsTFacet.java (added)
+++ webservices/jaxme/branches/MAVEN/jaxme-xs/src/main/java/org/apache/ws/jaxme/xs/xml/XsTFacet.java Fri Nov 24 04:14:48 2006
@@ -0,0 +1,38 @@
+/*
+ * Copyright 2003, 2004  The Apache Software Foundation
+ * 
+ * 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.
+
+ */
+package org.apache.ws.jaxme.xs.xml;
+
+
+/** <p>Interface of a facet, following this specification:
+ * <pre>
+ *  &lt;xs:complexType name="facet"&gt;
+ *    &lt;xs:complexContent&gt;
+ *      &lt;xs:extension base="xs:annotated"&gt;
+ *        &lt;xs:attribute name="value" use="required"/&gt;
+ *        &lt;xs:attribute name="fixed" type="xs:boolean" use="optional"
+ *                    default="false"/&gt;
+ *      &lt;/xs:extension&gt;
+ *    &lt;/xs:complexContent&gt;
+ *  &lt;/xs:complexType&gt;
+ * </pre></p>
+ *
+ * @author <a href="mailto:joe@ispsoft.de">Jochen Wiedmann</a>
+ */
+public interface XsTFacet extends XsTFixedFacet {
+  public void setValue(String pValue);
+  public String getValue();
+}

Added: webservices/jaxme/branches/MAVEN/jaxme-xs/src/main/java/org/apache/ws/jaxme/xs/xml/XsTFacetBase.java
URL: http://svn.apache.org/viewvc/webservices/jaxme/branches/MAVEN/jaxme-xs/src/main/java/org/apache/ws/jaxme/xs/xml/XsTFacetBase.java?view=auto&rev=478855
==============================================================================
--- webservices/jaxme/branches/MAVEN/jaxme-xs/src/main/java/org/apache/ws/jaxme/xs/xml/XsTFacetBase.java (added)
+++ webservices/jaxme/branches/MAVEN/jaxme-xs/src/main/java/org/apache/ws/jaxme/xs/xml/XsTFacetBase.java Fri Nov 24 04:14:48 2006
@@ -0,0 +1,25 @@
+/*
+ * Copyright 2003, 2004  The Apache Software Foundation
+ * 
+ * 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.
+
+ */
+package org.apache.ws.jaxme.xs.xml;
+
+
+/**
+ * @author <a href="mailto:joe@ispsoft.de">Jochen Wiedmann</a>
+ */
+public interface XsTFacetBase extends XsTAnnotated {
+  public String getFacetName();
+}

Added: webservices/jaxme/branches/MAVEN/jaxme-xs/src/main/java/org/apache/ws/jaxme/xs/xml/XsTFixedFacet.java
URL: http://svn.apache.org/viewvc/webservices/jaxme/branches/MAVEN/jaxme-xs/src/main/java/org/apache/ws/jaxme/xs/xml/XsTFixedFacet.java?view=auto&rev=478855
==============================================================================
--- webservices/jaxme/branches/MAVEN/jaxme-xs/src/main/java/org/apache/ws/jaxme/xs/xml/XsTFixedFacet.java (added)
+++ webservices/jaxme/branches/MAVEN/jaxme-xs/src/main/java/org/apache/ws/jaxme/xs/xml/XsTFixedFacet.java Fri Nov 24 04:14:48 2006
@@ -0,0 +1,28 @@
+/*
+ * Copyright 2003, 2004  The Apache Software Foundation
+ * 
+ * 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.
+
+ */
+package org.apache.ws.jaxme.xs.xml;
+
+
+/** <p>A common base interface for {@link org.apache.ws.jaxme.xs.xml.XsTFacet} and
+ * {@link org.apache.ws.jaxme.xs.xml.XsTNumFacet}.</p>
+ *
+ * @author <a href="mailto:joe@ispsoft.de">Jochen Wiedmann</a>
+ */
+public interface XsTFixedFacet extends XsTFacetBase {
+  public void setFixed(boolean pFixed);
+  public boolean isFixed();
+}

Added: webservices/jaxme/branches/MAVEN/jaxme-xs/src/main/java/org/apache/ws/jaxme/xs/xml/XsTGroup.java
URL: http://svn.apache.org/viewvc/webservices/jaxme/branches/MAVEN/jaxme-xs/src/main/java/org/apache/ws/jaxme/xs/xml/XsTGroup.java?view=auto&rev=478855
==============================================================================
--- webservices/jaxme/branches/MAVEN/jaxme-xs/src/main/java/org/apache/ws/jaxme/xs/xml/XsTGroup.java (added)
+++ webservices/jaxme/branches/MAVEN/jaxme-xs/src/main/java/org/apache/ws/jaxme/xs/xml/XsTGroup.java Fri Nov 24 04:14:48 2006
@@ -0,0 +1,42 @@
+/*
+ * Copyright 2003, 2004  The Apache Software Foundation
+ * 
+ * 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.
+
+ */
+package org.apache.ws.jaxme.xs.xml;
+
+/** <p>Interface of the <code>xs:group</code>, type, with the
+ * following specification:
+ * <pre>
+ *  &lt;xs:complexType name="group" abstract="true"&gt;
+ *    &lt;xs:annotation&gt;
+ *      &lt;xs:documentation&gt;
+ *        group type for explicit groups, named top-level groups and
+ *        group references
+ *      &lt;/xs:documentation&gt;
+ *    &lt;/xs:annotation&gt;
+ *    &lt;xs:complexContent&gt;
+ *      &lt;xs:extension base="xs:annotated"&gt;
+ *        &lt;xs:group ref="xs:particle" minOccurs="0" maxOccurs="unbounded"/&gt;
+ *        &lt;xs:attributeGroup ref="xs:defRef"/&gt;
+ *        &lt;xs:attributeGroup ref="xs:occurs"/&gt;
+ *      &lt;/xs:extension&gt;
+ *    &lt;/xs:complexContent&gt;
+ *  &lt;/xs:complexType&gt;
+ * </pre>
+ *
+ * @author <a href="mailto:joe@ispsoft.de">Jochen Wiedmann</a>
+ */
+public interface XsTGroup extends XsTAnnotated, XsAGDefRef, XsAGOccurs, XsGParticle {
+}

Added: webservices/jaxme/branches/MAVEN/jaxme-xs/src/main/java/org/apache/ws/jaxme/xs/xml/XsTGroupRef.java
URL: http://svn.apache.org/viewvc/webservices/jaxme/branches/MAVEN/jaxme-xs/src/main/java/org/apache/ws/jaxme/xs/xml/XsTGroupRef.java?view=auto&rev=478855
==============================================================================
--- webservices/jaxme/branches/MAVEN/jaxme-xs/src/main/java/org/apache/ws/jaxme/xs/xml/XsTGroupRef.java (added)
+++ webservices/jaxme/branches/MAVEN/jaxme-xs/src/main/java/org/apache/ws/jaxme/xs/xml/XsTGroupRef.java Fri Nov 24 04:14:48 2006
@@ -0,0 +1,43 @@
+/*
+ * Copyright 2003, 2004  The Apache Software Foundation
+ * 
+ * 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.
+
+ */
+package org.apache.ws.jaxme.xs.xml;
+
+
+/** <p>Implementation of the <code>xs:groupRef</code> type,
+ * with the following specification:
+ * <pre>
+ *  <xs:complexType name="groupRef">
+ *    <xs:complexContent>
+ *      <xs:restriction base="xs:realGroup">
+ *        <xs:sequence>
+ *          <xs:element ref="xs:annotation" minOccurs="0"/>
+ *        </xs:sequence>
+ *        <xs:attribute name="ref" use="required" type="xs:QName"/>
+ *        <xs:attribute name="name" use="prohibited"/>
+ *      </xs:restriction>
+ *   </xs:complexContent>
+ * </xs:complexType>
+ * <pre></p>
+ * <p><em>Implementation note:</em> This interface does not define
+ * any additional methods. However, the <code>validate()</code>
+ * method must ensure that the 'ref' attribute is set and the
+ * 'name' attribute is not set.</p>
+ *
+ * @author <a href="mailto:joe@ispsoft.de">Jochen Wiedmann</a>
+ */
+public interface XsTGroupRef extends XsTRealGroup, XsTTypeDefParticle, XsTNestedParticle {
+}

Added: webservices/jaxme/branches/MAVEN/jaxme-xs/src/main/java/org/apache/ws/jaxme/xs/xml/XsTIdentityConstraint.java
URL: http://svn.apache.org/viewvc/webservices/jaxme/branches/MAVEN/jaxme-xs/src/main/java/org/apache/ws/jaxme/xs/xml/XsTIdentityConstraint.java?view=auto&rev=478855
==============================================================================
--- webservices/jaxme/branches/MAVEN/jaxme-xs/src/main/java/org/apache/ws/jaxme/xs/xml/XsTIdentityConstraint.java (added)
+++ webservices/jaxme/branches/MAVEN/jaxme-xs/src/main/java/org/apache/ws/jaxme/xs/xml/XsTIdentityConstraint.java Fri Nov 24 04:14:48 2006
@@ -0,0 +1,26 @@
+/*
+ * Copyright 2003, 2004  The Apache Software Foundation
+ * 
+ * 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.
+
+ */
+package org.apache.ws.jaxme.xs.xml;
+
+/** <p>A common base interface for the elements which are part of an
+ * <code>xs:identityConstraint</code> group.</p>
+ *
+ * @author <a href="mailto:joe@ispsoft.de">Jochen Wiedmann</a>
+ */
+public interface XsTIdentityConstraint {
+
+}

Added: webservices/jaxme/branches/MAVEN/jaxme-xs/src/main/java/org/apache/ws/jaxme/xs/xml/XsTKeybase.java
URL: http://svn.apache.org/viewvc/webservices/jaxme/branches/MAVEN/jaxme-xs/src/main/java/org/apache/ws/jaxme/xs/xml/XsTKeybase.java?view=auto&rev=478855
==============================================================================
--- webservices/jaxme/branches/MAVEN/jaxme-xs/src/main/java/org/apache/ws/jaxme/xs/xml/XsTKeybase.java (added)
+++ webservices/jaxme/branches/MAVEN/jaxme-xs/src/main/java/org/apache/ws/jaxme/xs/xml/XsTKeybase.java Fri Nov 24 04:14:48 2006
@@ -0,0 +1,46 @@
+/*
+ * Copyright 2003, 2004  The Apache Software Foundation
+ * 
+ * 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.
+
+ */
+package org.apache.ws.jaxme.xs.xml;
+
+/** <p>Interface of the <code>xs:keybase</code> type, with the
+ * following specification:
+ * <pre>
+ *  &lt;xs:complexType name="keybase"&gt;
+ *    &lt;xs:complexContent&gt;
+ *      &lt;xs:extension base="xs:annotated"&gt;
+ *        &lt;xs:sequence&gt;
+ *          &lt;xs:element ref="xs:selector"/&gt;
+ *          &lt;xs:element ref="xs:field" minOccurs="1" maxOccurs="unbounded"/&gt;
+ *        &lt;/xs:sequence&gt;
+ *        &lt;xs:attribute name="name" type="xs:NCName" use="required"/&gt;
+ *      &lt;/xs:extension&gt;
+ *    &lt;/xs:complexContent&gt;
+ *  &lt;/xs:complexType&gt;
+ * </pre></p>
+ *
+ * @author <a href="mailto:joe@ispsoft.de">Jochen Wiedmann</a>
+ */
+public interface XsTKeybase extends XsTAnnotated {
+  public XsESelector createSelector();
+  public XsESelector getSelector();
+
+  public XsEField createField();
+  public XsEField[] getFields();
+
+  public void setName(XsNCName pName);
+  public XsNCName getName();
+}

Added: webservices/jaxme/branches/MAVEN/jaxme-xs/src/main/java/org/apache/ws/jaxme/xs/xml/XsTLocalComplexType.java
URL: http://svn.apache.org/viewvc/webservices/jaxme/branches/MAVEN/jaxme-xs/src/main/java/org/apache/ws/jaxme/xs/xml/XsTLocalComplexType.java?view=auto&rev=478855
==============================================================================
--- webservices/jaxme/branches/MAVEN/jaxme-xs/src/main/java/org/apache/ws/jaxme/xs/xml/XsTLocalComplexType.java (added)
+++ webservices/jaxme/branches/MAVEN/jaxme-xs/src/main/java/org/apache/ws/jaxme/xs/xml/XsTLocalComplexType.java Fri Nov 24 04:14:48 2006
@@ -0,0 +1,41 @@
+/*
+ * Copyright 2003, 2004  The Apache Software Foundation
+ * 
+ * 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.
+
+ */
+package org.apache.ws.jaxme.xs.xml;
+
+/** <p>Interface of a local <code>xs:complexType</code>,
+ * following the specification below:
+ * <pre>
+ *  &lt;xs:complexType name="localComplexType"&gt;
+ *    &lt;xs:complexContent&gt;
+ *      &lt;xs:restriction base="xs:complexType"&gt;
+ *        &lt;xs:sequence&gt;
+ *          &lt;xs:element ref="xs:annotation" minOccurs="0"/&gt;
+ *          &lt;xs:group ref="xs:complexTypeModel"/&gt;
+ *        &lt;/xs:sequence&gt;
+ *        &lt;xs:attribute name="name" use="prohibited"/&gt;
+ *        &lt;xs:attribute name="abstract" use="prohibited"/&gt;
+ *        &lt;xs:attribute name="final" use="prohibited"/&gt;
+ *        &lt;xs:attribute name="block" use="prohibited"/&gt;
+ *      &lt;/xs:restriction&gt;
+ *    &lt;/xs:complexContent&gt;
+ *  &lt;/xs:complexType&gt;
+ * </pre></p>
+ *
+ * @author <a href="mailto:joe@ispsoft.de">Jochen Wiedmann</a>
+ */
+public interface XsTLocalComplexType  extends XsTComplexType {
+}

Added: webservices/jaxme/branches/MAVEN/jaxme-xs/src/main/java/org/apache/ws/jaxme/xs/xml/XsTLocalElement.java
URL: http://svn.apache.org/viewvc/webservices/jaxme/branches/MAVEN/jaxme-xs/src/main/java/org/apache/ws/jaxme/xs/xml/XsTLocalElement.java?view=auto&rev=478855
==============================================================================
--- webservices/jaxme/branches/MAVEN/jaxme-xs/src/main/java/org/apache/ws/jaxme/xs/xml/XsTLocalElement.java (added)
+++ webservices/jaxme/branches/MAVEN/jaxme-xs/src/main/java/org/apache/ws/jaxme/xs/xml/XsTLocalElement.java Fri Nov 24 04:14:48 2006
@@ -0,0 +1,44 @@
+/*
+ * Copyright 2003, 2004  The Apache Software Foundation
+ * 
+ * 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.
+
+ */
+package org.apache.ws.jaxme.xs.xml;
+
+/** <p>Interface of the <code>xs:localElement</code> type, as
+ * specified by:
+ * <pre>
+ *  <xs:complexType name="localElement">
+ *    <xs:complexContent>
+ *      <xs:restriction base="xs:element">
+ *        <xs:sequence>
+ *          <xs:element ref="xs:annotation" minOccurs="0"/>
+ *          <xs:choice minOccurs="0">
+ *            <xs:element name="simpleType" type="xs:localSimpleType"/>
+ *            <xs:element name="complexType" type="xs:localComplexType"/>
+ *          </xs:choice>
+ *          <xs:group ref="xs:identityConstraint" minOccurs="0" maxOccurs="unbounded"/>
+ *        </xs:sequence>
+ *        <xs:attribute name="substitutionGroup" use="prohibited"/>
+ *        <xs:attribute name="final" use="prohibited"/>
+ *        <xs:attribute name="abstract" use="prohibited"/>
+ *      </xs:restriction>
+ *    </xs:complexContent>
+ *  </xs:complexType>
+ * </pre></p>
+ *
+ * @author <a href="mailto:joe@ispsoft.de">Jochen Wiedmann</a>
+ */
+public interface XsTLocalElement extends XsTElement, XsTNestedParticle {
+}

Added: webservices/jaxme/branches/MAVEN/jaxme-xs/src/main/java/org/apache/ws/jaxme/xs/xml/XsTLocalSimpleType.java
URL: http://svn.apache.org/viewvc/webservices/jaxme/branches/MAVEN/jaxme-xs/src/main/java/org/apache/ws/jaxme/xs/xml/XsTLocalSimpleType.java?view=auto&rev=478855
==============================================================================
--- webservices/jaxme/branches/MAVEN/jaxme-xs/src/main/java/org/apache/ws/jaxme/xs/xml/XsTLocalSimpleType.java (added)
+++ webservices/jaxme/branches/MAVEN/jaxme-xs/src/main/java/org/apache/ws/jaxme/xs/xml/XsTLocalSimpleType.java Fri Nov 24 04:14:48 2006
@@ -0,0 +1,48 @@
+/*
+ * Copyright 2003, 2004  The Apache Software Foundation
+ * 
+ * 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.
+
+ */
+package org.apache.ws.jaxme.xs.xml;
+
+
+/** <p>Interface of the <code>xs:localSimpleType</code> type,
+ * as specified by the following:
+ * <pre>
+ *  &lt;xs:complexType name="localSimpleType"&gt;
+ *    &lt;xs:complexContent&gt;
+ *      &lt;xs:restriction base="xs:simpleType"&gt;
+ *        &lt;xs:sequence&gt;
+ *          &lt;xs:element ref="xs:annotation" minOccurs="0"/&gt;
+ *          &lt;xs:group ref="xs:simpleDerivation"/&gt;
+ *        &lt;/xs:sequence&gt;
+ *        &lt;xs:attribute name="name" use="prohibited"&gt;
+ *          &lt;xs:annotation&gt;
+ *            &lt;xs:documentation&gt;
+ *              Forbidden when nested
+ *            &lt;/xs:documentation&gt;
+ *          &lt;/xs:annotation&gt;
+ *        &lt;/xs:attribute&gt;
+ *        &lt;xs:attribute name="final" use="prohibited"/&gt;
+ *      &lt;/xs:restriction&gt;
+ *    &lt;/xs:complexContent&gt;
+ *  &lt;/xs:complexType&gt;
+ * </pre></p>
+ * <p><em>Implementation note:</em> The implementation must ensure,
+ * that the 'final' and 'name' attributes aren't set.</p>
+ *
+ * @author <a href="mailto:joe@ispsoft.de">Jochen Wiedmann</a>
+ */
+public interface XsTLocalSimpleType extends XsTSimpleType {
+}

Added: webservices/jaxme/branches/MAVEN/jaxme-xs/src/main/java/org/apache/ws/jaxme/xs/xml/XsTNamedGroup.java
URL: http://svn.apache.org/viewvc/webservices/jaxme/branches/MAVEN/jaxme-xs/src/main/java/org/apache/ws/jaxme/xs/xml/XsTNamedGroup.java?view=auto&rev=478855
==============================================================================
--- webservices/jaxme/branches/MAVEN/jaxme-xs/src/main/java/org/apache/ws/jaxme/xs/xml/XsTNamedGroup.java (added)
+++ webservices/jaxme/branches/MAVEN/jaxme-xs/src/main/java/org/apache/ws/jaxme/xs/xml/XsTNamedGroup.java Fri Nov 24 04:14:48 2006
@@ -0,0 +1,64 @@
+/*
+ * Copyright 2003, 2004  The Apache Software Foundation
+ * 
+ * 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.
+
+ */
+package org.apache.ws.jaxme.xs.xml;
+
+/** <p>Interface of a named top-level group, with the following
+ * specification:
+ * <pre>
+ *  &lt;xs:complexType name="namedGroup"&gt;
+ *    &lt;xs:annotation&gt;
+ *      &lt;xs:documentation&gt;
+ *        Should derive this from realGroup, but too complicated for now
+ *      &lt;/xs:documentation&gt;
+ *    &lt;/xs:annotation&gt;
+ *    &lt;xs:sequence&gt;
+ *      &lt;xs:element ref="xs:annotation" minOccurs="0"/&gt;
+ *      &lt;xs:choice minOccurs="1" maxOccurs="1"&gt;
+ *        &lt;xs:element name="all"&gt;
+ *          &lt;xs:complexType&gt;
+ *            &lt;xs:complexContent&gt;
+ *              &lt;xs:restriction base="xs:all"&gt;
+ *                &lt;xs:group ref="xs:allModel"/&gt;
+ *                &lt;xs:attribute name="minOccurs" use="prohibited"/&gt;
+ *                &lt;xs:attribute name="maxOccurs" use="prohibited"/&gt;
+ *              &lt;/xs:restriction&gt;
+ *            &lt;/xs:complexContent&gt;
+ *          &lt;/xs:complexType&gt;
+ *        &lt;/xs:element&gt;
+ *        &lt;xs:element name="choice" type="xs:simpleExplicitGroup"/&gt;
+ *        &lt;xs:element name="sequence" type="xs:simpleExplicitGroup"/&gt;
+ *      &lt;/xs:choice&gt;
+ *    &lt;/xs:sequence&gt;
+ *    &lt;xs:attribute name="name" use="required" type="xs:NCName"/&gt;
+ *    &lt;xs:attribute name="ref" use="prohibited"/&gt;
+ *    &lt;xs:attribute name="minOccurs" use="prohibited"/&gt;
+ *    &lt;xs:attribute name="maxOccurs" use="prohibited"/&gt;
+ *  &lt;/xs:complexType&gt;
+ * &lt;/pre>&lt;/p>
+ *
+ * @author <a href="mailto:joe@ispsoft.de">Jochen Wiedmann</a>
+ */
+public interface XsTNamedGroup extends XsTAnnotated, XsRedefinable {
+  public void setName(XsNCName pName);
+  public XsNCName getName();
+  public XsGAllModel createAll();
+  public XsGAllModel getAll();
+  public XsTSimpleExplicitGroup createSequence();
+  public XsTSimpleExplicitGroup getSequence();
+  public XsTSimpleExplicitGroup createChoice();
+  public XsTSimpleExplicitGroup getChoice();
+}

Added: webservices/jaxme/branches/MAVEN/jaxme-xs/src/main/java/org/apache/ws/jaxme/xs/xml/XsTNestedParticle.java
URL: http://svn.apache.org/viewvc/webservices/jaxme/branches/MAVEN/jaxme-xs/src/main/java/org/apache/ws/jaxme/xs/xml/XsTNestedParticle.java?view=auto&rev=478855
==============================================================================
--- webservices/jaxme/branches/MAVEN/jaxme-xs/src/main/java/org/apache/ws/jaxme/xs/xml/XsTNestedParticle.java (added)
+++ webservices/jaxme/branches/MAVEN/jaxme-xs/src/main/java/org/apache/ws/jaxme/xs/xml/XsTNestedParticle.java Fri Nov 24 04:14:48 2006
@@ -0,0 +1,24 @@
+/*
+ * Copyright 2003, 2004  The Apache Software Foundation
+ * 
+ * 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.
+
+ */
+package org.apache.ws.jaxme.xs.xml;
+
+/**
+ * @author <a href="mailto:joe@ispsoft.de">Jochen Wiedmann</a>
+ */
+public interface XsTNestedParticle extends XsTParticle {
+
+}

Added: webservices/jaxme/branches/MAVEN/jaxme-xs/src/main/java/org/apache/ws/jaxme/xs/xml/XsTNumFacet.java
URL: http://svn.apache.org/viewvc/webservices/jaxme/branches/MAVEN/jaxme-xs/src/main/java/org/apache/ws/jaxme/xs/xml/XsTNumFacet.java?view=auto&rev=478855
==============================================================================
--- webservices/jaxme/branches/MAVEN/jaxme-xs/src/main/java/org/apache/ws/jaxme/xs/xml/XsTNumFacet.java (added)
+++ webservices/jaxme/branches/MAVEN/jaxme-xs/src/main/java/org/apache/ws/jaxme/xs/xml/XsTNumFacet.java Fri Nov 24 04:14:48 2006
@@ -0,0 +1,42 @@
+/*
+ * Copyright 2003, 2004  The Apache Software Foundation
+ * 
+ * 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.
+
+ */
+package org.apache.ws.jaxme.xs.xml;
+
+import org.xml.sax.SAXException;
+
+
+/** <p>Interface of <code>xs:numFacet</code>, following
+ * this specification:
+ * <pre>
+ *  &lt;xs:complexType name="numFacet"&gt;
+ *    &lt;xs:complexContent&gt;
+ *      &lt;xs:restriction base="xs:facet"&gt;
+ *        &lt;xs:sequence&gt;
+ *          &lt;xs:element ref="xs:annotation" minOccurs="0"/&gt;
+ *        &lt;/xs:sequence&gt;
+ *        &lt;xs:attribute name="value" type="xs:nonNegativeInteger" use="required"/&gt;
+ *      &lt;/xs:restriction&gt;
+ *    &lt;/xs:complexContent&gt;
+ *  &lt;/xs:complexType&gt;
+ * </pre></p>
+ *
+ * @author <a href="mailto:joe@ispsoft.de">Jochen Wiedmann</a>
+ */
+public interface XsTNumFacet extends XsTFixedFacet {
+  public void setValue(long pValue) throws SAXException;
+  public long getValue();
+}

Added: webservices/jaxme/branches/MAVEN/jaxme-xs/src/main/java/org/apache/ws/jaxme/xs/xml/XsTOpenAttrs.java
URL: http://svn.apache.org/viewvc/webservices/jaxme/branches/MAVEN/jaxme-xs/src/main/java/org/apache/ws/jaxme/xs/xml/XsTOpenAttrs.java?view=auto&rev=478855
==============================================================================
--- webservices/jaxme/branches/MAVEN/jaxme-xs/src/main/java/org/apache/ws/jaxme/xs/xml/XsTOpenAttrs.java (added)
+++ webservices/jaxme/branches/MAVEN/jaxme-xs/src/main/java/org/apache/ws/jaxme/xs/xml/XsTOpenAttrs.java Fri Nov 24 04:14:48 2006
@@ -0,0 +1,47 @@
+/*
+ * Copyright 2003, 2004  The Apache Software Foundation
+ * 
+ * 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.
+
+ */
+package org.apache.ws.jaxme.xs.xml;
+
+import org.xml.sax.Attributes;
+
+
+/** <p>A common base type for most of the schema elements.
+ * Implements the following specification:
+ * <pre>
+ *  &lt;xs:complexType name="openAttrs">
+ *    &lt;xs:annotation>
+ *      &lt;xs:documentation>
+ *        This type is extended by almost all schema types
+ *        to allow attributes from other namespaces to be
+ *        added to user schemas.
+ *      &lt;/xs:documentation>
+ *    &lt;/xs:annotation>
+ *    &lt;xs:complexContent>
+ *      &lt;xs:restriction base="xs:anyType">
+ *        &lt;xs:anyAttribute namespace="##other" processContents="lax"/>
+ *      &lt;/xs:restriction>
+ *    &lt;/xs:complexContent>
+ *  &lt;/xs:complexType&gt;
+ * </pre>
+ * 
+ * @author <a href="mailto:joe@ispsoft.de">Jochen Wiedmann</a>
+ */
+public interface XsTOpenAttrs extends XsObject {
+  /** <p>Returns the attributes having other namespaces.</p>
+   */
+  public Attributes getOpenAttributes();
+}

Added: webservices/jaxme/branches/MAVEN/jaxme-xs/src/main/java/org/apache/ws/jaxme/xs/xml/XsTParticle.java
URL: http://svn.apache.org/viewvc/webservices/jaxme/branches/MAVEN/jaxme-xs/src/main/java/org/apache/ws/jaxme/xs/xml/XsTParticle.java?view=auto&rev=478855
==============================================================================
--- webservices/jaxme/branches/MAVEN/jaxme-xs/src/main/java/org/apache/ws/jaxme/xs/xml/XsTParticle.java (added)
+++ webservices/jaxme/branches/MAVEN/jaxme-xs/src/main/java/org/apache/ws/jaxme/xs/xml/XsTParticle.java Fri Nov 24 04:14:48 2006
@@ -0,0 +1,26 @@
+/*
+ * Copyright 2003, 2004  The Apache Software Foundation
+ * 
+ * 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.
+
+ */
+package org.apache.ws.jaxme.xs.xml;
+
+/** <p>Interface of a particle. A particle is defined as either
+ * of the elements in the particle group.</p>
+ *
+ * @author <a href="mailto:joe@ispsoft.de">Jochen Wiedmann</a>
+ */
+public interface XsTParticle {
+
+}

Added: webservices/jaxme/branches/MAVEN/jaxme-xs/src/main/java/org/apache/ws/jaxme/xs/xml/XsTRealGroup.java
URL: http://svn.apache.org/viewvc/webservices/jaxme/branches/MAVEN/jaxme-xs/src/main/java/org/apache/ws/jaxme/xs/xml/XsTRealGroup.java?view=auto&rev=478855
==============================================================================
--- webservices/jaxme/branches/MAVEN/jaxme-xs/src/main/java/org/apache/ws/jaxme/xs/xml/XsTRealGroup.java (added)
+++ webservices/jaxme/branches/MAVEN/jaxme-xs/src/main/java/org/apache/ws/jaxme/xs/xml/XsTRealGroup.java Fri Nov 24 04:14:48 2006
@@ -0,0 +1,46 @@
+/*
+ * Copyright 2003, 2004  The Apache Software Foundation
+ * 
+ * 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.
+
+ */
+package org.apache.ws.jaxme.xs.xml;
+
+/** <p>Interface of the <code>xs:realGroup</code> type, as specified
+ * by the following:
+ * <pre>
+ *  &lt;xs:complexType name="realGroup"&gt;
+ *    &lt;xs:complexContent&gt;
+ *      &lt;xs:restriction base="xs:group"&gt;
+ *        &lt;xs:sequence&gt;
+ *          &lt;xs:element ref="xs:annotation" minOccurs="0"/&gt;
+ *          &lt;xs:choice minOccurs="0" maxOccurs="1"&gt;
+ *            &lt;xs:element ref="xs:all"/&gt;
+ *            &lt;xs:element ref="xs:choice"/&gt;
+ *            &lt;xs:element ref="xs:sequence"/&gt;
+ *          &lt;/xs:choice&gt;
+ *        &lt;/xs:sequence&gt;
+ *      &lt;/xs:restriction&gt;
+ *    &lt;/xs:complexContent&gt;
+ *  &lt;/xs:complexType&gt;
+ * </pre></p>
+ * <p><em>Implementation note:</em> This interface does not define
+ * any additional methods. However, the <code>validate()</code>
+ * method must ensure, that either of <code>xs:all</code>,
+ * <code>xs:choice</code>, or <code>xs:sequence</code> is set.</p>
+ *
+ * @author <a href="mailto:joe@ispsoft.de">Jochen Wiedmann</a>
+ */
+public interface XsTRealGroup extends XsTGroup {
+
+}

Added: webservices/jaxme/branches/MAVEN/jaxme-xs/src/main/java/org/apache/ws/jaxme/xs/xml/XsTRestrictionType.java
URL: http://svn.apache.org/viewvc/webservices/jaxme/branches/MAVEN/jaxme-xs/src/main/java/org/apache/ws/jaxme/xs/xml/XsTRestrictionType.java?view=auto&rev=478855
==============================================================================
--- webservices/jaxme/branches/MAVEN/jaxme-xs/src/main/java/org/apache/ws/jaxme/xs/xml/XsTRestrictionType.java (added)
+++ webservices/jaxme/branches/MAVEN/jaxme-xs/src/main/java/org/apache/ws/jaxme/xs/xml/XsTRestrictionType.java Fri Nov 24 04:14:48 2006
@@ -0,0 +1,43 @@
+/*
+ * Copyright 2003, 2004  The Apache Software Foundation
+ * 
+ * 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.
+
+ */
+package org.apache.ws.jaxme.xs.xml;
+
+
+/** <p>Implementation of <code>xs:restrictionType</code>,
+ * as specified by the following:
+ * <pre>
+ *  &lt;xs:complexType name="restrictionType"&gt;
+ *    &lt;xs:complexContent&gt;
+ *      &lt;xs:extension base="xs:annotated"&gt;
+ *        &lt;xs:sequence&gt;
+ *          &lt;xs:choice&gt;
+ *            &lt;xs:group ref="xs:typeDefParticle" minOccurs="0"/&gt;
+ *            &lt;xs:group ref="xs:simpleRestrictionModel" minOccurs="0"/&gt;
+ *          &lt;/xs:choice&gt;
+ *          &lt;xs:group ref="xs:attrDecls"/&gt;
+ *        &lt;/xs:sequence&gt;
+ *        &lt;xs:attribute name="base" type="xs:QName" use="required"/&gt;
+ *      &lt;/xs:extension&gt;
+ *    &lt;/xs:complexContent&gt;
+ *  &lt;/xs:complexType&gt;
+ * </pre></p>
+ * @author <a href="mailto:joe@ispsoft.de">Jochen Wiedmann</a>
+ */
+public interface XsTRestrictionType extends XsTAnnotated, XsGTypeDefParticle, XsGSimpleRestrictionModel, XsGAttrDecls {
+  public void setBase(XsQName pBase);
+  public XsQName getBase();
+}

Added: webservices/jaxme/branches/MAVEN/jaxme-xs/src/main/java/org/apache/ws/jaxme/xs/xml/XsTSimpleExplicitGroup.java
URL: http://svn.apache.org/viewvc/webservices/jaxme/branches/MAVEN/jaxme-xs/src/main/java/org/apache/ws/jaxme/xs/xml/XsTSimpleExplicitGroup.java?view=auto&rev=478855
==============================================================================
--- webservices/jaxme/branches/MAVEN/jaxme-xs/src/main/java/org/apache/ws/jaxme/xs/xml/XsTSimpleExplicitGroup.java (added)
+++ webservices/jaxme/branches/MAVEN/jaxme-xs/src/main/java/org/apache/ws/jaxme/xs/xml/XsTSimpleExplicitGroup.java Fri Nov 24 04:14:48 2006
@@ -0,0 +1,46 @@
+/*
+ * Copyright 2003, 2004  The Apache Software Foundation
+ * 
+ * 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.
+
+ */
+package org.apache.ws.jaxme.xs.xml;
+
+
+/** <p>Interface of the xs:simpleExplicitGroup type, with the
+ * following specification:
+ * <pre>
+ *  &lt;xs:complexType name="simpleExplicitGroup"&gt;
+ *    &lt;xs:complexContent&gt;
+ *      &lt;xs:restriction base="xs:explicitGroup"&gt;
+ *        &lt;xs:sequence&gt;
+ *          &lt;xs:element ref="xs:annotation" minOccurs="0"/&gt;
+ *          &lt;xs:group ref="xs:nestedParticle" minOccurs="0" maxOccurs="unbounded"/&gt;
+ *        &lt;/xs:sequence&gt;
+ *        &lt;xs:attribute name="minOccurs" use="prohibited"/&gt;
+ *        &lt;xs:attribute name="maxOccurs" use="prohibited"/&gt;
+ *      &lt;/xs:restriction&gt;
+ *    &lt;/xs:complexContent&gt;
+ *  &lt;/xs:complexType&gt;
+ * </pre></p>
+ *
+ * @author <a href="mailto:joe@ispsoft.de">Jochen Wiedmann</a>
+ */
+public interface XsTSimpleExplicitGroup extends XsTAnnotated {
+  public XsTLocalElement createElement();
+  public XsTGroupRef createGroup();
+  public XsEChoice createChoice();
+  public XsESequence createSequence();
+  public XsEAny createAny();
+  public XsTNestedParticle[] getParticles();
+}

Added: webservices/jaxme/branches/MAVEN/jaxme-xs/src/main/java/org/apache/ws/jaxme/xs/xml/XsTSimpleExtensionType.java
URL: http://svn.apache.org/viewvc/webservices/jaxme/branches/MAVEN/jaxme-xs/src/main/java/org/apache/ws/jaxme/xs/xml/XsTSimpleExtensionType.java?view=auto&rev=478855
==============================================================================
--- webservices/jaxme/branches/MAVEN/jaxme-xs/src/main/java/org/apache/ws/jaxme/xs/xml/XsTSimpleExtensionType.java (added)
+++ webservices/jaxme/branches/MAVEN/jaxme-xs/src/main/java/org/apache/ws/jaxme/xs/xml/XsTSimpleExtensionType.java Fri Nov 24 04:14:48 2006
@@ -0,0 +1,46 @@
+/*
+ * Copyright 2003, 2004  The Apache Software Foundation
+ * 
+ * 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.
+
+ */
+package org.apache.ws.jaxme.xs.xml;
+
+
+/** <p>Interface of the <code>xs:simpleExtensionType</code>, as
+ * specified by:
+ * <pre>
+ *  <xs:complexType name="simpleExtensionType">
+ *    <xs:complexContent>
+ *      <xs:restriction base="xs:extensionType">
+ *        <xs:sequence>
+ *          <xs:annotation>
+ *            <xs:documentation>
+ *              No typeDefParticle group reference
+ *            </xs:documentation>
+ *          </xs:annotation>
+ *          <xs:element ref="xs:annotation" minOccurs="0"/>
+ *          <xs:group ref="xs:attrDecls"/>
+ *        </xs:sequence>
+ *      </xs:restriction>
+ *    </xs:complexContent>
+ *  </xs:complexType>
+ * </pre></p>
+ *
+ * @author <a href="mailto:joe@ispsoft.de">Jochen Wiedmann</a>
+ */
+public interface XsTSimpleExtensionType extends XsTAnnotated, XsGAttrDecls {
+  public void setBase(XsQName pBase);
+
+  public XsQName getBase();
+}

Added: webservices/jaxme/branches/MAVEN/jaxme-xs/src/main/java/org/apache/ws/jaxme/xs/xml/XsTSimpleRestrictionType.java
URL: http://svn.apache.org/viewvc/webservices/jaxme/branches/MAVEN/jaxme-xs/src/main/java/org/apache/ws/jaxme/xs/xml/XsTSimpleRestrictionType.java?view=auto&rev=478855
==============================================================================
--- webservices/jaxme/branches/MAVEN/jaxme-xs/src/main/java/org/apache/ws/jaxme/xs/xml/XsTSimpleRestrictionType.java (added)
+++ webservices/jaxme/branches/MAVEN/jaxme-xs/src/main/java/org/apache/ws/jaxme/xs/xml/XsTSimpleRestrictionType.java Fri Nov 24 04:14:48 2006
@@ -0,0 +1,39 @@
+/*
+ * Copyright 2003, 2004  The Apache Software Foundation
+ * 
+ * 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.
+
+ */
+package org.apache.ws.jaxme.xs.xml;
+
+
+/** <p>Implementation of <code>xs:simpleRestrictionType</code>,
+ * as specified by the following:
+ * <pre>
+ *  &lt;xs:complexType name="simpleRestrictionType"&gt;
+ *    &lt;xs:complexContent&gt;
+ *      &lt;xs:restriction base="xs:restrictionType"&gt;
+ *        &lt;xs:sequence&gt;
+ *          &lt;xs:element ref="xs:annotation" minOccurs="0"/&gt;
+ *          &lt;xs:group ref="xs:simpleRestrictionModel" minOccurs="0"/&gt;
+ *          &lt;xs:group ref="xs:attrDecls"/&gt;
+ *        &lt;/xs:sequence&gt;
+ *      &lt;/xs:restriction&gt;
+ *    &lt;/xs:complexContent&gt;
+ *  &lt;/xs:complexType&gt;
+ * </pre></p>
+ *
+ * @author <a href="mailto:joe@ispsoft.de">Jochen Wiedmann</a>
+ */
+public interface XsTSimpleRestrictionType extends XsTRestrictionType, XsGSimpleRestrictionModel, XsGAttrDecls {
+}

Added: webservices/jaxme/branches/MAVEN/jaxme-xs/src/main/java/org/apache/ws/jaxme/xs/xml/XsTSimpleType.java
URL: http://svn.apache.org/viewvc/webservices/jaxme/branches/MAVEN/jaxme-xs/src/main/java/org/apache/ws/jaxme/xs/xml/XsTSimpleType.java?view=auto&rev=478855
==============================================================================
--- webservices/jaxme/branches/MAVEN/jaxme-xs/src/main/java/org/apache/ws/jaxme/xs/xml/XsTSimpleType.java (added)
+++ webservices/jaxme/branches/MAVEN/jaxme-xs/src/main/java/org/apache/ws/jaxme/xs/xml/XsTSimpleType.java Fri Nov 24 04:14:48 2006
@@ -0,0 +1,67 @@
+/*
+ * Copyright 2003, 2004  The Apache Software Foundation
+ * 
+ * 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.
+
+ */
+package org.apache.ws.jaxme.xs.xml;
+
+import org.xml.sax.SAXException;
+
+
+/** <p>Interface of the following specification for
+ * <code>xs:simpleType</code>:
+ * <pre>
+ *  &lt;xs:complexType name="simpleType" abstract="true"&gt;
+ *    &lt;xs:complexContent&gt;
+ *      &lt;xs:extension base="xs:annotated"&gt;
+ *        &lt;xs:group ref="xs:simpleDerivation"/&gt;
+ *        &lt;xs:attribute name="final" type="xs:simpleDerivationSet"/&gt;
+ *        &lt;xs:attribute name="name" type="xs:NCName"&gt;
+ *          &lt;xs:annotation&gt;
+ *            &lt;xs:documentation&gt;
+ *              Can be restricted to required or forbidden
+ *            &lt;/xs:documentation&gt;
+ *          &lt;/xs:annotation&gt;
+ *        &lt;/xs:attribute&gt;
+ *      &lt;/xs:extension&gt;
+ *    &lt;/xs:complexContent&gt;
+ *  &lt;/xs:complexType&gt;
+ *
+ *  &lt;xs:group name="simpleDerivation"&gt;
+ *    &lt;xs:choice&gt;
+ *      &lt;xs:element ref="xs:restriction"/&gt;
+ *      &lt;xs:element ref="xs:list"/&gt;
+ *      &lt;xs:element ref="xs:union"/&gt;
+ *    &lt;/xs:choice&gt;
+ *  &lt;/xs:group&gt;
+ * </pre></p>
+ *
+ * @author <a href="mailto:joe@ispsoft.de">Jochen Wiedmann</a>
+ */
+public interface XsTSimpleType extends XsTAnnotated {
+  public XsERestriction createRestriction() throws SAXException;
+  public XsERestriction getRestriction();
+
+  public XsEList createList() throws SAXException;
+  public XsEList getList();
+
+  public XsEUnion createUnion() throws SAXException;
+  public XsEUnion getUnion();
+
+  public void setFinal(XsSimpleDerivationSet pSet) throws SAXException;
+  public XsSimpleDerivationSet getFinal();
+
+  public void setName(XsNCName pName) throws SAXException;
+  public XsNCName getName();
+}

Added: webservices/jaxme/branches/MAVEN/jaxme-xs/src/main/java/org/apache/ws/jaxme/xs/xml/XsTTopLevelComplexType.java
URL: http://svn.apache.org/viewvc/webservices/jaxme/branches/MAVEN/jaxme-xs/src/main/java/org/apache/ws/jaxme/xs/xml/XsTTopLevelComplexType.java?view=auto&rev=478855
==============================================================================
--- webservices/jaxme/branches/MAVEN/jaxme-xs/src/main/java/org/apache/ws/jaxme/xs/xml/XsTTopLevelComplexType.java (added)
+++ webservices/jaxme/branches/MAVEN/jaxme-xs/src/main/java/org/apache/ws/jaxme/xs/xml/XsTTopLevelComplexType.java Fri Nov 24 04:14:48 2006
@@ -0,0 +1,38 @@
+/*
+ * Copyright 2003, 2004  The Apache Software Foundation
+ * 
+ * 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.
+
+ */
+package org.apache.ws.jaxme.xs.xml;
+
+
+/** <p>Implementation of a top level <code>xs:complexType</code>,
+ * following the specification below:
+ * <pre>
+ *  &lt;xs:complexType name="topLevelComplexType"&gt;
+ *    &lt;xs:complexContent&gt;
+ *      &lt;xs:restriction base="xs:complexType"&gt;
+ *        &lt;xs:sequence&gt;
+ *          &lt;xs:element ref="xs:annotation" minOccurs="0"/&gt;
+ *          &lt;xs:group ref="xs:complexTypeModel"/&gt;
+ *        &lt;/xs:sequence&gt;
+ *        &lt;xs:attribute name="name" type="xs:NCName" use="required"/&gt;
+ *      &lt;/xs:restriction&gt;
+ *    &lt;/xs:complexContent&gt;
+ *  &lt;/xs:complexType&gt;
+ * </pre></p>
+ * @author <a href="mailto:joe@ispsoft.de">Jochen Wiedmann</a>
+ */
+public interface XsTTopLevelComplexType extends XsTComplexType {
+}

Added: webservices/jaxme/branches/MAVEN/jaxme-xs/src/main/java/org/apache/ws/jaxme/xs/xml/XsTTopLevelElement.java
URL: http://svn.apache.org/viewvc/webservices/jaxme/branches/MAVEN/jaxme-xs/src/main/java/org/apache/ws/jaxme/xs/xml/XsTTopLevelElement.java?view=auto&rev=478855
==============================================================================
--- webservices/jaxme/branches/MAVEN/jaxme-xs/src/main/java/org/apache/ws/jaxme/xs/xml/XsTTopLevelElement.java (added)
+++ webservices/jaxme/branches/MAVEN/jaxme-xs/src/main/java/org/apache/ws/jaxme/xs/xml/XsTTopLevelElement.java Fri Nov 24 04:14:48 2006
@@ -0,0 +1,46 @@
+/*
+ * Copyright 2003, 2004  The Apache Software Foundation
+ * 
+ * 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.
+
+ */
+package org.apache.ws.jaxme.xs.xml;
+
+/** <p>Interface of the <code>xs:topLevelElement</code> type, with
+ * the following specification:
+ * <pre>
+ *  <xs:complexType name="topLevelElement">
+ *    <xs:complexContent>
+ *      <xs:restriction base="xs:element">
+ *        <xs:sequence>
+ *          <xs:element ref="xs:annotation" minOccurs="0"/>
+ *          <xs:choice minOccurs="0">
+ *            <xs:element name="simpleType" type="xs:localSimpleType"/>
+ *            <xs:element name="complexType" type="xs:localComplexType"/>
+ *          </xs:choice>
+ *          <xs:group ref="xs:identityConstraint" minOccurs="0" maxOccurs="unbounded"/>
+ *        </xs:sequence>
+ *        <xs:attribute name="ref" use="prohibited"/>
+ *        <xs:attribute name="form" use="prohibited"/>
+ *        <xs:attribute name="minOccurs" use="prohibited"/>
+ *        <xs:attribute name="maxOccurs" use="prohibited"/>
+ *        <xs:attribute name="name" use="required" type="xs:NCName"/>
+ *      </xs:restriction>
+ *    </xs:complexContent>
+ * </xs:complexType>
+ *</pre></p>
+ *
+ * @author <a href="mailto:joe@ispsoft.de">Jochen Wiedmann</a>
+ */
+public interface XsTTopLevelElement extends XsTElement {
+}

Added: webservices/jaxme/branches/MAVEN/jaxme-xs/src/main/java/org/apache/ws/jaxme/xs/xml/XsTTypeDefParticle.java
URL: http://svn.apache.org/viewvc/webservices/jaxme/branches/MAVEN/jaxme-xs/src/main/java/org/apache/ws/jaxme/xs/xml/XsTTypeDefParticle.java?view=auto&rev=478855
==============================================================================
--- webservices/jaxme/branches/MAVEN/jaxme-xs/src/main/java/org/apache/ws/jaxme/xs/xml/XsTTypeDefParticle.java (added)
+++ webservices/jaxme/branches/MAVEN/jaxme-xs/src/main/java/org/apache/ws/jaxme/xs/xml/XsTTypeDefParticle.java Fri Nov 24 04:14:48 2006
@@ -0,0 +1,26 @@
+/*
+ * Copyright 2003, 2004  The Apache Software Foundation
+ * 
+ * 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.
+
+ */
+package org.apache.ws.jaxme.xs.xml;
+
+/** <p>A common interface for the types used in the
+ * <code>xs:typeDefParticle</code> group.</p>
+ *
+ * @author <a href="mailto:joe@ispsoft.de">Jochen Wiedmann</a>
+ */
+public interface XsTTypeDefParticle extends XsTParticle {
+
+}

Added: webservices/jaxme/branches/MAVEN/jaxme-xs/src/main/java/org/apache/ws/jaxme/xs/xml/XsTWildcard.java
URL: http://svn.apache.org/viewvc/webservices/jaxme/branches/MAVEN/jaxme-xs/src/main/java/org/apache/ws/jaxme/xs/xml/XsTWildcard.java?view=auto&rev=478855
==============================================================================
--- webservices/jaxme/branches/MAVEN/jaxme-xs/src/main/java/org/apache/ws/jaxme/xs/xml/XsTWildcard.java (added)
+++ webservices/jaxme/branches/MAVEN/jaxme-xs/src/main/java/org/apache/ws/jaxme/xs/xml/XsTWildcard.java Fri Nov 24 04:14:48 2006
@@ -0,0 +1,73 @@
+/*
+ * Copyright 2003, 2004  The Apache Software Foundation
+ * 
+ * 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.
+
+ */
+package org.apache.ws.jaxme.xs.xml;
+
+
+/** <p>Interface of <code>xs:wildcard</code>, with the
+ * following specification:
+ * <pre>
+ *  &lt;xs:complexType name="wildcard"&gt;
+ *    &lt;xs:complexContent&gt;
+ *      &lt;xs:extension base="xs:annotated"&gt;
+ *        &lt;xs:attribute name="namespace" type="xs:namespaceList" use="optional" default="##any"/&gt;
+ *        &lt;xs:attribute name="processContents" use="optional" default="strict"
+ *          &lt;xs:simpleType&gt;
+ *            &lt;xs:restriction base="xs:NMTOKEN"&gt;
+ *              &lt;xs:enumeration value="skip"/&gt;
+ *              &lt;xs:enumeration value="lax"/&gt;
+ *              &lt;xs:enumeration value="strict"/&gt;
+ *            &lt;/xs:restriction&gt;
+ *          &lt;/xs:simpleType&gt;
+ *        &lt;/xs:attribute&gt;
+ *      &lt;/xs:extension&gt;
+ *    &lt;/xs:complexContent&gt;
+ *  &lt;/xs:complexType&gt;
+ * </pre></p>
+ *
+ * @author <a href="mailto:joe@ispsoft.de">Jochen Wiedmann</a>
+ */
+public interface XsTWildcard extends XsTAnnotated {
+  public static class ProcessContents {
+    final private String value;
+    ProcessContents(String pValue) {
+      value = pValue;
+    }
+    public String toString() { return value; }
+    public String getValue() { return value; }
+    public static ProcessContents valueOf(String pValue) {
+      if ("skip".equals(pValue)) {
+        return SKIP;
+      } else if ("lax".equals(pValue)) {
+        return LAX;
+      } else if ("strict".equals(pValue)) {
+        return STRICT;
+      } else {
+        throw new IllegalArgumentException("Invalid value for ProcessContents: " + pValue + "; expected either of 'skip', 'lax', or 'strict'");
+      }
+    }
+  }
+
+  public static final ProcessContents SKIP = new ProcessContents("skip");
+  public static final ProcessContents LAX = new ProcessContents("lax");
+  public static final ProcessContents STRICT = new ProcessContents("strict");
+
+  public void setNamespace(String pList);
+  public XsNamespaceList getNamespace();
+
+  public void setProcessContents(ProcessContents pProcessContents);
+  public ProcessContents getProcessContents();
+}

Added: webservices/jaxme/branches/MAVEN/jaxme-xs/src/main/java/org/apache/ws/jaxme/xs/xml/XsToken.java
URL: http://svn.apache.org/viewvc/webservices/jaxme/branches/MAVEN/jaxme-xs/src/main/java/org/apache/ws/jaxme/xs/xml/XsToken.java?view=auto&rev=478855
==============================================================================
--- webservices/jaxme/branches/MAVEN/jaxme-xs/src/main/java/org/apache/ws/jaxme/xs/xml/XsToken.java (added)
+++ webservices/jaxme/branches/MAVEN/jaxme-xs/src/main/java/org/apache/ws/jaxme/xs/xml/XsToken.java Fri Nov 24 04:14:48 2006
@@ -0,0 +1,43 @@
+/*
+ * Copyright 2003, 2004  The Apache Software Foundation
+ * 
+ * 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.
+
+ */
+package org.apache.ws.jaxme.xs.xml;
+
+/** <p>Implementation of xs:token</p>
+ *
+ * @author <a href="mailto:joe@ispsoft.de">Jochen Wiedmann</a>
+ */
+public class XsToken {
+  private String token;
+
+  public XsToken(String pToken) {
+    if (pToken == null) {
+      throw new NullPointerException("A Token must not be null");
+    }
+    token = pToken;
+  }
+
+  public String getToken() {
+    return token;
+  }
+
+  public boolean equals(Object o) {
+    return o != null  &&  o instanceof XsToken  &&  token.equals(((XsToken) o).token);
+  }
+  public int hashCode() {
+    return token.hashCode();
+  }
+}

Added: webservices/jaxme/branches/MAVEN/jaxme-xs/src/main/java/org/apache/ws/jaxme/xs/xml/impl/XsAGDefRefImpl.java
URL: http://svn.apache.org/viewvc/webservices/jaxme/branches/MAVEN/jaxme-xs/src/main/java/org/apache/ws/jaxme/xs/xml/impl/XsAGDefRefImpl.java?view=auto&rev=478855
==============================================================================
--- webservices/jaxme/branches/MAVEN/jaxme-xs/src/main/java/org/apache/ws/jaxme/xs/xml/impl/XsAGDefRefImpl.java (added)
+++ webservices/jaxme/branches/MAVEN/jaxme-xs/src/main/java/org/apache/ws/jaxme/xs/xml/impl/XsAGDefRefImpl.java Fri Nov 24 04:14:48 2006
@@ -0,0 +1,88 @@
+/*
+ * Copyright 2003, 2004  The Apache Software Foundation
+ * 
+ * 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.
+
+ */
+package org.apache.ws.jaxme.xs.xml.impl;
+
+import org.apache.ws.jaxme.xs.parser.impl.LocSAXException;
+import org.apache.ws.jaxme.xs.xml.XsAGDefRef;
+import org.apache.ws.jaxme.xs.xml.XsNCName;
+import org.apache.ws.jaxme.xs.xml.XsObject;
+import org.apache.ws.jaxme.xs.xml.XsQName;
+import org.xml.sax.SAXException;
+
+
+/** <p>Implementation of the attribute group <code>xs:defRef</code>,
+ * as specified by the following:
+ * <pre>
+ *  &lt;xs:attributeGroup name="defRef"&gt;
+ *    &lt;xs:annotation&gt;
+ *      &lt;xs:documentation&gt;
+ *        for element, group and attributeGroup,
+ *        which both define and reference
+ *      &lt;/xs:documentation&gt;
+ *    &lt;/xs:annotation&gt;
+ *    &lt;xs:attribute name="name" type="xs:NCName"/&gt;
+ *    &lt;xs:attribute name="ref" type="xs:QName"/&gt;
+ *  &lt;/xs:attributeGroup&gt;
+ * </pre></p>
+ * <p><em>Implementation note:</em> The 'name' and 'ref' attributes
+ * are mutually exclusive.</p>
+ *
+ * @author <a href="mailto:joe@ispsoft.de">Jochen Wiedmann</a>
+ */
+public class XsAGDefRefImpl implements XsAGDefRef {
+    private final XsObject owner;
+    private XsNCName name;
+    private XsQName ref;
+
+  	/** <p>Creates a new instance with the given parent object.</p>
+  	 */
+  	public XsAGDefRefImpl(XsObject pOwner) {
+  	    owner = pOwner;
+  	}
+
+  	public void setName(XsNCName pName) {
+  	    if (ref != null) {
+  	        throw new IllegalStateException("The 'name' and 'ref' attributes are mutually exclusive.");
+  	    }
+  	    name = pName;
+  	}
+  	
+  	public XsNCName getName() {
+  	    return name;
+  	}
+  	
+  	public void setRef(XsQName pRef) {
+  	    if (name != null) {
+  	        throw new IllegalStateException("The 'name' and 'ref' attributes are mutually exclusive.");
+  	    }
+  	    ref = pRef;
+  	}
+
+  	public void setRef(String pRef) throws SAXException {
+  	    setRef(((XsObjectImpl) owner).asXsQName(pRef));
+  	}
+  	
+  	public XsQName getRef() {
+  	    return ref;
+  	}
+  	
+  	public void validate() throws SAXException {
+  	    if (name == null  &&  ref == null) {
+  	        throw new LocSAXException("You must set either of the attributes 'name' or 'ref'.", owner.getLocator());
+  	    }
+  	}
+}

Added: webservices/jaxme/branches/MAVEN/jaxme-xs/src/main/java/org/apache/ws/jaxme/xs/xml/impl/XsAGOccursImpl.java
URL: http://svn.apache.org/viewvc/webservices/jaxme/branches/MAVEN/jaxme-xs/src/main/java/org/apache/ws/jaxme/xs/xml/impl/XsAGOccursImpl.java?view=auto&rev=478855
==============================================================================
--- webservices/jaxme/branches/MAVEN/jaxme-xs/src/main/java/org/apache/ws/jaxme/xs/xml/impl/XsAGOccursImpl.java (added)
+++ webservices/jaxme/branches/MAVEN/jaxme-xs/src/main/java/org/apache/ws/jaxme/xs/xml/impl/XsAGOccursImpl.java Fri Nov 24 04:14:48 2006
@@ -0,0 +1,95 @@
+/*
+ * Copyright 2003, 2004  The Apache Software Foundation
+ * 
+ * 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.
+
+ */
+package org.apache.ws.jaxme.xs.xml.impl;
+
+import org.apache.ws.jaxme.xs.parser.impl.LocSAXException;
+import org.apache.ws.jaxme.xs.xml.XsAGOccurs;
+import org.apache.ws.jaxme.xs.xml.XsObject;
+import org.xml.sax.SAXException;
+
+
+/** <p>Implementation of the attribute group <code>xs:occurs</code>,
+ * as specified by the following:
+ * <pre>
+ *  &lt;xs:attributeGroup name="occurs"&gt;
+ *    &lt;xs:annotation&gt;
+ *      &lt;xs:documentation&gt;
+ *        for all particles
+ *      &lt;/xs:documentation&gt;
+ *    &lt;/xs:annotation&gt;
+ *    &lt;xs:attribute name="minOccurs" type="xs:nonNegativeInteger"
+ *      use="optional" default="1"/&gt;
+ *    &lt;xs:attribute name="maxOccurs" type="xs:allNNI"
+ *      use="optional" default="1"/&gt;
+ *  &lt;/xs:attributeGroup&gt;
+ * </pre></p>
+ * <p><em>Implementation note:</em> The implementation must ensure
+ * that either 'maxOccurs' is unbounded or 'minOccurs' <= 'maxOccurs'.</p>
+ *
+ * @author <a href="mailto:joe@ispsoft.de">Jochen Wiedmann</a>
+ */
+public class XsAGOccursImpl implements XsAGOccurs {
+  private final XsObject owner;
+  private int minOccurs = 1, maxOccurs = 1;
+
+  public XsAGOccursImpl(XsObject pOwner) {
+    owner = pOwner;
+  }
+
+  public void setMaxOccurs(String pMaxOccurs) {
+    if ("unbounded".equals(pMaxOccurs)) {
+      maxOccurs = -1;
+    } else {
+      try {
+        maxOccurs = Integer.parseInt(pMaxOccurs);
+        if (maxOccurs < 0) {
+          throw new IllegalArgumentException();
+        }
+      } catch (Exception e) {
+        throw new IllegalArgumentException("Invalid value for maxOccurs: " +
+                                            pMaxOccurs +
+                                            "; expected 'unbounded' or a nonnegative integer value.");
+      }
+    }
+  }
+
+  public int getMaxOccurs() {
+    return maxOccurs;
+  }
+
+  public void setMinOccurs(int pMinOccurs) {
+    if (pMinOccurs < 0) {
+      throw new IllegalArgumentException("Invalid value for minOccurs: " +
+                                          pMinOccurs +
+                                          "; expected a nonnegative integer value.");      
+    }
+    minOccurs = pMinOccurs;
+  }
+
+  public int getMinOccurs() {
+    return minOccurs;
+  }
+
+  public void validate() throws SAXException {
+    if (maxOccurs != -1  &&  minOccurs > maxOccurs) {
+      throw new LocSAXException("The 'minOccurs' attribute value (" +
+                                 minOccurs +
+                                 ") is greater than the 'maxOccurs' attribute value (" +
+                                 maxOccurs + ")", owner.getLocator());
+    }
+  }
+}

Added: webservices/jaxme/branches/MAVEN/jaxme-xs/src/main/java/org/apache/ws/jaxme/xs/xml/impl/XsEAnnotationImpl.java
URL: http://svn.apache.org/viewvc/webservices/jaxme/branches/MAVEN/jaxme-xs/src/main/java/org/apache/ws/jaxme/xs/xml/impl/XsEAnnotationImpl.java?view=auto&rev=478855
==============================================================================
--- webservices/jaxme/branches/MAVEN/jaxme-xs/src/main/java/org/apache/ws/jaxme/xs/xml/impl/XsEAnnotationImpl.java (added)
+++ webservices/jaxme/branches/MAVEN/jaxme-xs/src/main/java/org/apache/ws/jaxme/xs/xml/impl/XsEAnnotationImpl.java Fri Nov 24 04:14:48 2006
@@ -0,0 +1,142 @@
+/*
+ * Copyright 2003, 2004  The Apache Software Foundation
+ * 
+ * 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.
+
+ */
+package org.apache.ws.jaxme.xs.xml.impl;
+
+import java.util.ArrayList;
+import java.util.Iterator;
+import java.util.List;
+
+import javax.xml.parsers.ParserConfigurationException;
+
+import org.apache.ws.jaxme.xs.XSParser;
+import org.apache.ws.jaxme.xs.parser.DOMBuilder;
+import org.apache.ws.jaxme.xs.xml.*;
+import org.xml.sax.ContentHandler;
+import org.xml.sax.SAXException;
+
+
+/** <p>Implementation of <code>xs:annotation</code>, as specified
+ * by the following:
+ * <pre>
+ *  &lt;xs:element name="annotation" id="annotation"&gt;
+ *    &lt;xs:annotation&gt;
+ *      &lt;xs:documentation source="http://www.w3.org/TR/xmlschema-1/#element-annotation"/&gt;
+ *    &lt;/xs:annotation&gt;
+ *    &lt;xs:complexType&gt;
+ *      &lt;xs:complexContent&gt;
+ *        &lt;xs:extension base="xs:openAttrs"&gt;
+ *          &lt;xs:choice minOccurs="0" maxOccurs="unbounded"&gt;
+ *            &lt;xs:element ref="xs:appinfo"/&gt;
+ *            &lt;xs:element ref="xs:documentation"/&gt;
+ *          &lt;/xs:choice&gt;
+ *          &lt;xs:attribute name="id" type="xs:ID"/&gt;
+ *        &lt;/xs:extension&gt;
+ *      &lt;/xs:complexContent&gt;
+ *    &lt;/xs:complexType&gt;
+ *  &lt;/xs:element&gt;
+ * </pre></p>
+ *
+ * @author <a href="mailto:joe@ispsoft.de">Jochen Wiedmann</a>
+ */
+public class XsEAnnotationImpl extends XsTOpenAttrsImpl implements XsEAnnotation {
+  private XsID id;
+  private List childs;
+
+  protected XsEAnnotationImpl(XsObject pParent) {
+    super(pParent);
+  }
+
+  public void setId(XsID pId) {
+    id = pId;
+  }
+
+  public XsID getId() {
+    return id;
+  }
+
+  protected void addChild(Object pChild) {
+    if (childs == null) {
+      childs = new ArrayList();
+    }
+    childs.add(pChild);
+  }
+
+  public XsEAppinfo createAppinfo() {
+    XsEAppinfo appinfo = getObjectFactory().newXsEAppinfo(this);
+    addChild(appinfo);
+    return appinfo;
+  }
+
+  public XsEDocumentation createDocumentation() {
+    XsEDocumentation documentation = getObjectFactory().newXsEDocumentation(this);
+    addChild(documentation);
+    return documentation;
+  }
+
+  public XsEAppinfo[] getAppinfos() {
+    if (childs == null) {
+      return new XsEAppinfo[0];
+    } else {
+      List result = new ArrayList();
+      for (Iterator iter = childs.iterator();  iter.hasNext();  ) {
+        Object o = iter.next();
+        if (o instanceof XsEAppinfo) {
+          result.add(o);
+        }
+      }
+      return (XsEAppinfo[]) result.toArray(new XsEAppinfo[result.size()]);
+    }
+  }
+
+  public XsEDocumentation[] getDocumentations() {
+    if (childs == null) {
+      return new XsEDocumentation[0];
+    } else {
+      List result = new ArrayList();
+      for (Iterator iter = childs.iterator();  iter.hasNext();  ) {
+        Object o = iter.next();
+        if (o instanceof XsEDocumentation) {
+          result.add(o);
+        }
+      }
+      return (XsEDocumentation[]) result.toArray(new XsEDocumentation[result.size()]);
+    }
+  }
+
+  public Object[] getChilds() {
+    if (childs == null) {
+      return new Object[0];
+    } else {
+      return childs.toArray();
+    }
+  }
+
+  public ContentHandler getChildHandler(String pQName,
+                                         String pNamespaceURI, String pLocalName) throws SAXException {
+    if (XSParser.XML_SCHEMA_URI.equals(pNamespaceURI)) {
+      return null;  // Let the parser handle this element
+    }
+
+    try {
+      DOMBuilder db = new DOMBuilder();
+      addChild(db.getDocument());
+      return db;
+    } catch (ParserConfigurationException e) {
+      throw new SAXException(e);
+    }
+  }
+}

Added: webservices/jaxme/branches/MAVEN/jaxme-xs/src/main/java/org/apache/ws/jaxme/xs/xml/impl/XsEAnyImpl.java
URL: http://svn.apache.org/viewvc/webservices/jaxme/branches/MAVEN/jaxme-xs/src/main/java/org/apache/ws/jaxme/xs/xml/impl/XsEAnyImpl.java?view=auto&rev=478855
==============================================================================
--- webservices/jaxme/branches/MAVEN/jaxme-xs/src/main/java/org/apache/ws/jaxme/xs/xml/impl/XsEAnyImpl.java (added)
+++ webservices/jaxme/branches/MAVEN/jaxme-xs/src/main/java/org/apache/ws/jaxme/xs/xml/impl/XsEAnyImpl.java Fri Nov 24 04:14:48 2006
@@ -0,0 +1,64 @@
+/*
+ * Copyright 2003, 2004  The Apache Software Foundation
+ * 
+ * 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.
+
+ */
+package org.apache.ws.jaxme.xs.xml.impl;
+
+import org.apache.ws.jaxme.xs.xml.XsAGOccurs;
+import org.apache.ws.jaxme.xs.xml.XsEAny;
+import org.apache.ws.jaxme.xs.xml.XsObject;
+
+
+/** <p>Implementation of the <code>xs:any</code> element, as
+ * specified by the following:
+ * <pre>
+ *  &lt;xs:element name="any" id="any"&gt;
+ *    &lt;xs:annotation&gt;
+ *      &lt;xs:documentation source="http://www.w3.org/TR/xmlschema-1/#element-any"/&gt;
+ *    &lt;/xs:annotation&gt;
+ *    &lt;xs:complexType&gt;
+ *      &lt;xs:complexContent&gt;
+ *        &lt;xs:extension base="xs:wildcard"&gt;
+ *          &lt;xs:attributeGroup ref="xs:occurs"/&gt;
+ *        &lt;/xs:extension&gt;
+ *      &lt;/xs:complexContent&gt;
+ *    &lt;/xs:complexType&gt;
+ *  &lt;/xs:element&gt;
+ * </pre></p>
+ * @author <a href="mailto:joe@ispsoft.de">Jochen Wiedmann</a>
+ */
+public class XsEAnyImpl extends XsTWildcardImpl implements XsEAny {
+  private XsAGOccurs occurs = getObjectFactory().newXsAGOccurs(this);
+
+  protected XsEAnyImpl(XsObject pParent) {
+    super(pParent);
+  }
+
+  public void setMaxOccurs(String pMaxOccurs) {
+    occurs.setMaxOccurs(pMaxOccurs);
+  }
+
+  public int getMaxOccurs() {
+    return occurs.getMaxOccurs();
+  }
+
+  public void setMinOccurs(int pMinOccurs) {
+    occurs.setMinOccurs(pMinOccurs);
+  }
+
+  public int getMinOccurs() {
+    return occurs.getMinOccurs();
+  }
+}

Added: webservices/jaxme/branches/MAVEN/jaxme-xs/src/main/java/org/apache/ws/jaxme/xs/xml/impl/XsEAppinfoImpl.java
URL: http://svn.apache.org/viewvc/webservices/jaxme/branches/MAVEN/jaxme-xs/src/main/java/org/apache/ws/jaxme/xs/xml/impl/XsEAppinfoImpl.java?view=auto&rev=478855
==============================================================================
--- webservices/jaxme/branches/MAVEN/jaxme-xs/src/main/java/org/apache/ws/jaxme/xs/xml/impl/XsEAppinfoImpl.java (added)
+++ webservices/jaxme/branches/MAVEN/jaxme-xs/src/main/java/org/apache/ws/jaxme/xs/xml/impl/XsEAppinfoImpl.java Fri Nov 24 04:14:48 2006
@@ -0,0 +1,118 @@
+/*
+ * Copyright 2003, 2004  The Apache Software Foundation
+ * 
+ * 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.
+
+ */
+package org.apache.ws.jaxme.xs.xml.impl;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import javax.xml.parsers.ParserConfigurationException;
+
+import org.apache.ws.jaxme.xs.XSParser;
+import org.apache.ws.jaxme.xs.parser.DOMBuilder;
+import org.apache.ws.jaxme.xs.parser.XsObjectCreator;
+import org.apache.ws.jaxme.xs.xml.*;
+import org.apache.ws.jaxme.xs.xml.XsAnyURI;
+import org.apache.ws.jaxme.xs.xml.XsEAppinfo;
+import org.xml.sax.ContentHandler;
+import org.xml.sax.SAXException;
+
+
+/** <p>Implementation of <code>xs:appinfo</code>, as specified by the
+ * following:
+ * <pre>
+ *  &lt;xs:element name="appinfo" id="appinfo"&gt;
+ *    &lt;xs:annotation&gt;
+ *      &lt;xs:documentation source="http://www.w3.org/TR/xmlschema-1/#element-appinfo"/&gt;
+ *    &lt;/xs:annotation&gt;
+ *    &lt;xs:complexType mixed="true"&gt;
+ *      &lt;xs:sequence minOccurs="0" maxOccurs="unbounded"&gt;
+ *        &lt;xs:any processContents="lax"/&gt;
+ *      &lt;/xs:sequence&gt;
+ *      &lt;xs:attribute name="source" type="xs:anyURI"/&gt;
+ *    &lt;/xs:complexType&gt;
+ *  &lt;/xs:element&gt;
+ * </pre></p>
+ *
+ * @author <a href="mailto:joe@ispsoft.de">Jochen Wiedmann</a>
+ */
+public class XsEAppinfoImpl extends XsObjectImpl implements XsEAppinfo {
+  private List childs;
+  private XsAnyURI source;
+
+  protected XsEAppinfoImpl(XsObject pParent) {
+    super(pParent);
+  }
+
+  protected void addChild(Object pChild) {
+    if (childs == null) {
+      childs = new ArrayList();
+    }
+    childs.add(pChild);
+  }
+
+  protected XsObjectCreator[] getXsObjectCreators() {
+    return null;
+  }
+
+  public Object[] getChilds() {
+    if (childs == null) {
+      return new Object[0];
+    } else {
+      return childs.toArray();
+    }
+  }
+
+  public void setSource(XsAnyURI pSource) {
+    source = pSource;
+  }
+
+  public XsAnyURI getSource() {
+    return source;
+  }
+
+  public ContentHandler getChildHandler(String pQName, String pNamespaceURI, String pLocalName) throws SAXException {
+    XsObjectCreator[] objectCreators = getXsObjectCreators();
+    if (objectCreators != null) {
+      XsQName qName = new XsQName(pNamespaceURI, pLocalName, XsQName.prefixOf(pQName));
+      for (int i = 0;  i < objectCreators.length;  i++) {
+        XsObject result = objectCreators[i].newBean(this, getObjectFactory().getLocator(), qName);
+        if (result != null) {
+          addChild(result);
+          return getObjectFactory().newXsSAXParser(result);
+        }
+      }
+    }
+
+    if (XSParser.XML_SCHEMA_URI.equals(pNamespaceURI)) {
+      return null;  // Let the parser handle this element
+    }
+
+    try {
+      DOMBuilder db = new DOMBuilder();
+      addChild(db.getDocument());
+      return db;
+    } catch (ParserConfigurationException e) {
+      throw new SAXException(e);
+    }
+  }
+
+  /** <p>Adds text to the appinfo contents.</p>
+   */
+  public void addText(String pText) {
+      addChild(pText);
+  }
+}

Added: webservices/jaxme/branches/MAVEN/jaxme-xs/src/main/java/org/apache/ws/jaxme/xs/xml/impl/XsEChoiceImpl.java
URL: http://svn.apache.org/viewvc/webservices/jaxme/branches/MAVEN/jaxme-xs/src/main/java/org/apache/ws/jaxme/xs/xml/impl/XsEChoiceImpl.java?view=auto&rev=478855
==============================================================================
--- webservices/jaxme/branches/MAVEN/jaxme-xs/src/main/java/org/apache/ws/jaxme/xs/xml/impl/XsEChoiceImpl.java (added)
+++ webservices/jaxme/branches/MAVEN/jaxme-xs/src/main/java/org/apache/ws/jaxme/xs/xml/impl/XsEChoiceImpl.java Fri Nov 24 04:14:48 2006
@@ -0,0 +1,38 @@
+/*
+ * Copyright 2003, 2004  The Apache Software Foundation
+ * 
+ * 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.
+
+ */
+package org.apache.ws.jaxme.xs.xml.impl;
+
+import org.apache.ws.jaxme.xs.xml.*;
+
+
+/** <p>Implementation of the <code>xs:choice</code> element, with the following
+ * specification:
+ * <pre>
+ *  &lt;xs:element name="choice" type="xs:explicitGroup" id="choice"&gt;
+ *    &lt;xs:annotation&gt;
+ *      &lt;xs:documentation source="http://www.w3.org/TR/xmlschema-1/#element-choice"/&gt;
+ *    &lt;/xs:annotation&gt;
+ *  &lt;/xs:element&gt;
+ * </pre></p>
+ *
+ * @author <a href="mailto:joe@ispsoft.de">Jochen Wiedmann</a>
+ */
+public class XsEChoiceImpl extends XsTExplicitGroupImpl implements XsEChoice {
+  protected XsEChoiceImpl(XsObject pParent) {
+    super(pParent);
+  }
+}

Added: webservices/jaxme/branches/MAVEN/jaxme-xs/src/main/java/org/apache/ws/jaxme/xs/xml/impl/XsEComplexContentImpl.java
URL: http://svn.apache.org/viewvc/webservices/jaxme/branches/MAVEN/jaxme-xs/src/main/java/org/apache/ws/jaxme/xs/xml/impl/XsEComplexContentImpl.java?view=auto&rev=478855
==============================================================================
--- webservices/jaxme/branches/MAVEN/jaxme-xs/src/main/java/org/apache/ws/jaxme/xs/xml/impl/XsEComplexContentImpl.java (added)
+++ webservices/jaxme/branches/MAVEN/jaxme-xs/src/main/java/org/apache/ws/jaxme/xs/xml/impl/XsEComplexContentImpl.java Fri Nov 24 04:14:48 2006
@@ -0,0 +1,93 @@
+/*
+ * Copyright 2003, 2004  The Apache Software Foundation
+ * 
+ * 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.
+
+ */
+package org.apache.ws.jaxme.xs.xml.impl;
+
+import org.apache.ws.jaxme.xs.xml.*;
+
+
+/** <p>Implementation of the element <code>xs:complexContent</code>,
+ * as specified by:
+ * <pre>
+ *  &lt;xs:element name="complexContent" id="complexContent"&gt;
+ *    &lt;xs:annotation&gt;
+ *      &lt;xs:documentation
+ *          source="http://www.w3.org/TR/xmlschema-1/#element-complexContent"/&gt;
+ *    &lt;/xs:annotation&gt;
+ *    &lt;xs:complexType&gt;
+ *      &lt;xs:complexContent&gt;
+ *        &lt;xs:extension base="xs:annotated"&gt;
+ *          &lt;xs:choice&gt;
+ *            &lt;xs:element name="restriction" type="xs:complexRestrictionType"/&gt;
+ *            &lt;xs:element name="extension" type="xs:extensionType"/&gt;
+ *          &lt;/xs:choice&gt;
+ *          &lt;xs:attribute name="mixed" type="xs:boolean"&gt;
+ *            &lt;xs:annotation&gt;
+ *              &lt;xs:documentation&gt;
+ *                Overrides any setting on complexType parent.
+ *              &lt;/xs:documentation&gt;
+ *            &lt;/xs:annotation&gt;
+ *          &lt;/xs:attribute&gt;
+ *        &lt;/xs:extension&gt;
+ *      &lt;/xs:complexContent&gt;
+ *    &lt;/xs:complexType&gt;
+ *  &lt;/xs:element&gt;
+ * </pre></p>
+ * @author <a href="mailto:joe@ispsoft.de">Jochen Wiedmann</a>
+ */
+public class XsEComplexContentImpl extends XsTAnnotatedImpl implements XsEComplexContent {
+  private XsTComplexRestrictionType restriction;
+  private XsTExtensionType extension;
+  private Boolean isMixed;
+
+  protected XsEComplexContentImpl(XsObject pParent) {
+    super(pParent);
+  }
+
+  public XsTComplexRestrictionType createRestriction() {
+    if (restriction != null) {
+      throw new IllegalStateException("Multiple 'restriction' child elements are forbidden.");
+    }
+    if (extension != null) {
+      throw new IllegalStateException("The 'extension' and 'restriction' child elements are mutually exclusive.");
+    }
+    return restriction = getObjectFactory().newXsTComplexRestrictionType(this);
+  }
+
+  public XsTComplexRestrictionType getRestriction() {
+    return restriction;
+  }
+
+  public XsTExtensionType createExtension() {
+    if (extension != null) {
+      throw new IllegalStateException("Multiple 'extension' child elements are forbidden.");
+    }
+    if (restriction != null) {
+      throw new IllegalStateException("The 'extension' and 'restriction' child elements are mutually exclusive.");
+    }
+    return extension = getObjectFactory().newXsTExtensionType(this);
+  }
+
+  public XsTExtensionType getExtension() {
+    return extension;
+  }
+
+  public void setMixed(boolean pMixed) {
+    isMixed = pMixed ? Boolean.TRUE : Boolean.FALSE;
+  }
+
+  public Boolean isMixed() { return isMixed; }
+}

Added: webservices/jaxme/branches/MAVEN/jaxme-xs/src/main/java/org/apache/ws/jaxme/xs/xml/impl/XsEDocumentationImpl.java
URL: http://svn.apache.org/viewvc/webservices/jaxme/branches/MAVEN/jaxme-xs/src/main/java/org/apache/ws/jaxme/xs/xml/impl/XsEDocumentationImpl.java?view=auto&rev=478855
==============================================================================
--- webservices/jaxme/branches/MAVEN/jaxme-xs/src/main/java/org/apache/ws/jaxme/xs/xml/impl/XsEDocumentationImpl.java (added)
+++ webservices/jaxme/branches/MAVEN/jaxme-xs/src/main/java/org/apache/ws/jaxme/xs/xml/impl/XsEDocumentationImpl.java Fri Nov 24 04:14:48 2006
@@ -0,0 +1,129 @@
+/*
+ * Copyright 2003, 2004  The Apache Software Foundation
+ * 
+ * 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.
+ 
+ */
+package org.apache.ws.jaxme.xs.xml.impl;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import javax.xml.XMLConstants;
+import javax.xml.parsers.ParserConfigurationException;
+
+import org.apache.ws.jaxme.xs.XSParser;
+import org.apache.ws.jaxme.xs.parser.DOMBuilder;
+import org.apache.ws.jaxme.xs.xml.*;
+import org.xml.sax.ContentHandler;
+import org.xml.sax.SAXException;
+
+
+/** <p>Implementation of <code>xs:documentation</code>, as specified
+ * by the following:
+ * <pre>
+ *  &lt;xs:element name="documentation" id="documentation"&gt;
+ *    &lt;xs:annotation&gt;
+ *      &lt;xs:documentation source="http://www.w3.org/TR/xmlschema-1/#element-documentation"/&gt;
+ *    &lt;/xs:annotation&gt;
+ *    &lt;xs:complexType mixed="true"&gt;
+ *      &lt;xs:sequence minOccurs="0" maxOccurs="unbounded"&gt;
+ *        &lt;xs:any processContents="lax"/&gt;
+ *      &lt;/xs:sequence&gt;
+ *      &lt;xs:attribute name="source" type="xs:anyURI"/&gt;
+ *      &lt;xs:attribute ref="xml:lang"/&gt;
+ *    &lt;/xs:complexType&gt;
+ *  &lt;/xs:element&gt;
+ * </pre></p>
+ *
+ * @author <a href="mailto:joe@ispsoft.de">Jochen Wiedmann</a>
+ */
+public class XsEDocumentationImpl extends XsObjectImpl implements XsEDocumentation {
+	private XmlLang lang;
+	private XsAnyURI source;
+	private List childs = new ArrayList();
+    private boolean isSimple;
+
+    protected XsEDocumentationImpl(XsObject pParent) {
+		super(pParent);
+	}
+
+    protected void addChild(Object pObject) {
+        childs.add(pObject);
+    }
+
+	public void setLang(XmlLang pLang) {
+		lang = pLang;
+	}
+	
+	public XmlLang getLang() {
+		return lang;
+	}
+	
+	public void setSource(XsAnyURI pSource) {
+		source = pSource;
+	}
+	
+	public XsAnyURI getSource() {
+		return source;
+	}
+	
+	public void addText(String pText) {
+		childs.add(pText);
+	}
+	
+	public String getText() {
+        StringBuffer sb = new StringBuffer();
+        for (int i = 0;  i < childs.size();  i++) {
+        	Object o = childs.get(i);
+            if (o instanceof String) {
+            	sb.append(o);
+            }
+        }
+		return sb.toString();
+	}
+
+    public boolean isTextOnly() {
+    	for (int i = 0;  i < childs.size();  i++) {
+    		if (!(childs.get(i) instanceof String)) {
+    			return false;
+            }
+        }
+        return true;
+    }
+
+    public Object[] getChilds() {
+    	return childs.toArray();
+    }
+
+	public boolean setAttribute(String pQName, String pNamespaceURI, String pLocalName, String pValue) {
+		if (XMLConstants.XML_NS_URI.equals(pNamespaceURI)  &&  "lang".equals(pLocalName)) {
+			setLang(new XmlLang(pValue));
+			return true;
+		} else {
+			return false;
+		}
+	}
+	
+	public ContentHandler getChildHandler(String pQName, String pNamespaceURI, String pLocalName)
+            throws SAXException {
+		isSimple = false;
+        try {
+			DOMBuilder db = new DOMBuilder();
+			addChild(db.getDocument());
+			return db;
+		} catch (ParserConfigurationException e) {
+			throw new SAXException(e);
+		}
+	}
+}

Added: webservices/jaxme/branches/MAVEN/jaxme-xs/src/main/java/org/apache/ws/jaxme/xs/xml/impl/XsEEnumerationImpl.java
URL: http://svn.apache.org/viewvc/webservices/jaxme/branches/MAVEN/jaxme-xs/src/main/java/org/apache/ws/jaxme/xs/xml/impl/XsEEnumerationImpl.java?view=auto&rev=478855
==============================================================================
--- webservices/jaxme/branches/MAVEN/jaxme-xs/src/main/java/org/apache/ws/jaxme/xs/xml/impl/XsEEnumerationImpl.java (added)
+++ webservices/jaxme/branches/MAVEN/jaxme-xs/src/main/java/org/apache/ws/jaxme/xs/xml/impl/XsEEnumerationImpl.java Fri Nov 24 04:14:48 2006
@@ -0,0 +1,54 @@
+/*
+ * Copyright 2003, 2004  The Apache Software Foundation
+ * 
+ * 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.
+
+ */
+package org.apache.ws.jaxme.xs.xml.impl;
+
+import org.apache.ws.jaxme.xs.xml.XsEEnumeration;
+import org.apache.ws.jaxme.xs.xml.XsObject;
+
+
+/** <p>Implementation of <code>xs:enumeration</code>,
+ * following this specification:
+ * <pre>
+ *  &lt;xs:element name="enumeration" id="enumeration" type="xs:noFixedFacet"&gt;
+ *    &lt;xs:annotation&gt;
+ *      &lt;xs:documentation
+ *        source="http://www.w3.org/TR/xmlschema-2/#element-enumeration"/&gt;
+ *    &lt;/xs:annotation&gt;
+ *  &lt;/xs:element&gt;
+ * </pre></p>
+ * @author <a href="mailto:joe@ispsoft.de">Jochen Wiedmann</a>
+ */
+public class XsEEnumerationImpl extends XsTFacetBaseImpl
+    implements XsEEnumeration {
+  private String value;
+
+  protected XsEEnumerationImpl(XsObject pParent) {
+    super(pParent);
+  }
+
+  public void setValue(String pValue) {
+    value = pValue;
+  }
+
+  public String getValue() {
+    return value;
+  }
+
+  public String getFacetName() {
+    return "enumeration";
+  }
+}



---------------------------------------------------------------------
To unsubscribe, e-mail: jaxme-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: jaxme-dev-help@ws.apache.org