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>
+ * <xs:complexType name="facet">
+ * <xs:complexContent>
+ * <xs:extension base="xs:annotated">
+ * <xs:attribute name="value" use="required"/>
+ * <xs:attribute name="fixed" type="xs:boolean" use="optional"
+ * default="false"/>
+ * </xs:extension>
+ * </xs:complexContent>
+ * </xs:complexType>
+ * </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>
+ * <xs:complexType name="group" abstract="true">
+ * <xs:annotation>
+ * <xs:documentation>
+ * group type for explicit groups, named top-level groups and
+ * group references
+ * </xs:documentation>
+ * </xs:annotation>
+ * <xs:complexContent>
+ * <xs:extension base="xs:annotated">
+ * <xs:group ref="xs:particle" minOccurs="0" maxOccurs="unbounded"/>
+ * <xs:attributeGroup ref="xs:defRef"/>
+ * <xs:attributeGroup ref="xs:occurs"/>
+ * </xs:extension>
+ * </xs:complexContent>
+ * </xs:complexType>
+ * </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>
+ * <xs:complexType name="keybase">
+ * <xs:complexContent>
+ * <xs:extension base="xs:annotated">
+ * <xs:sequence>
+ * <xs:element ref="xs:selector"/>
+ * <xs:element ref="xs:field" minOccurs="1" maxOccurs="unbounded"/>
+ * </xs:sequence>
+ * <xs:attribute name="name" type="xs:NCName" use="required"/>
+ * </xs:extension>
+ * </xs:complexContent>
+ * </xs:complexType>
+ * </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>
+ * <xs:complexType name="localComplexType">
+ * <xs:complexContent>
+ * <xs:restriction base="xs:complexType">
+ * <xs:sequence>
+ * <xs:element ref="xs:annotation" minOccurs="0"/>
+ * <xs:group ref="xs:complexTypeModel"/>
+ * </xs:sequence>
+ * <xs:attribute name="name" use="prohibited"/>
+ * <xs:attribute name="abstract" use="prohibited"/>
+ * <xs:attribute name="final" use="prohibited"/>
+ * <xs:attribute name="block" use="prohibited"/>
+ * </xs:restriction>
+ * </xs:complexContent>
+ * </xs:complexType>
+ * </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>
+ * <xs:complexType name="localSimpleType">
+ * <xs:complexContent>
+ * <xs:restriction base="xs:simpleType">
+ * <xs:sequence>
+ * <xs:element ref="xs:annotation" minOccurs="0"/>
+ * <xs:group ref="xs:simpleDerivation"/>
+ * </xs:sequence>
+ * <xs:attribute name="name" use="prohibited">
+ * <xs:annotation>
+ * <xs:documentation>
+ * Forbidden when nested
+ * </xs:documentation>
+ * </xs:annotation>
+ * </xs:attribute>
+ * <xs:attribute name="final" use="prohibited"/>
+ * </xs:restriction>
+ * </xs:complexContent>
+ * </xs:complexType>
+ * </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>
+ * <xs:complexType name="namedGroup">
+ * <xs:annotation>
+ * <xs:documentation>
+ * Should derive this from realGroup, but too complicated for now
+ * </xs:documentation>
+ * </xs:annotation>
+ * <xs:sequence>
+ * <xs:element ref="xs:annotation" minOccurs="0"/>
+ * <xs:choice minOccurs="1" maxOccurs="1">
+ * <xs:element name="all">
+ * <xs:complexType>
+ * <xs:complexContent>
+ * <xs:restriction base="xs:all">
+ * <xs:group ref="xs:allModel"/>
+ * <xs:attribute name="minOccurs" use="prohibited"/>
+ * <xs:attribute name="maxOccurs" use="prohibited"/>
+ * </xs:restriction>
+ * </xs:complexContent>
+ * </xs:complexType>
+ * </xs:element>
+ * <xs:element name="choice" type="xs:simpleExplicitGroup"/>
+ * <xs:element name="sequence" type="xs:simpleExplicitGroup"/>
+ * </xs:choice>
+ * </xs:sequence>
+ * <xs:attribute name="name" use="required" type="xs:NCName"/>
+ * <xs:attribute name="ref" use="prohibited"/>
+ * <xs:attribute name="minOccurs" use="prohibited"/>
+ * <xs:attribute name="maxOccurs" use="prohibited"/>
+ * </xs:complexType>
+ * </pre></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>
+ * <xs:complexType name="numFacet">
+ * <xs:complexContent>
+ * <xs:restriction base="xs:facet">
+ * <xs:sequence>
+ * <xs:element ref="xs:annotation" minOccurs="0"/>
+ * </xs:sequence>
+ * <xs:attribute name="value" type="xs:nonNegativeInteger" use="required"/>
+ * </xs:restriction>
+ * </xs:complexContent>
+ * </xs:complexType>
+ * </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>
+ * <xs:complexType name="openAttrs">
+ * <xs:annotation>
+ * <xs:documentation>
+ * This type is extended by almost all schema types
+ * to allow attributes from other namespaces to be
+ * added to user schemas.
+ * </xs:documentation>
+ * </xs:annotation>
+ * <xs:complexContent>
+ * <xs:restriction base="xs:anyType">
+ * <xs:anyAttribute namespace="##other" processContents="lax"/>
+ * </xs:restriction>
+ * </xs:complexContent>
+ * </xs:complexType>
+ * </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>
+ * <xs:complexType name="realGroup">
+ * <xs:complexContent>
+ * <xs:restriction base="xs:group">
+ * <xs:sequence>
+ * <xs:element ref="xs:annotation" minOccurs="0"/>
+ * <xs:choice minOccurs="0" maxOccurs="1">
+ * <xs:element ref="xs:all"/>
+ * <xs:element ref="xs:choice"/>
+ * <xs:element ref="xs:sequence"/>
+ * </xs:choice>
+ * </xs:sequence>
+ * </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 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>
+ * <xs:complexType name="restrictionType">
+ * <xs:complexContent>
+ * <xs:extension base="xs:annotated">
+ * <xs:sequence>
+ * <xs:choice>
+ * <xs:group ref="xs:typeDefParticle" minOccurs="0"/>
+ * <xs:group ref="xs:simpleRestrictionModel" minOccurs="0"/>
+ * </xs:choice>
+ * <xs:group ref="xs:attrDecls"/>
+ * </xs:sequence>
+ * <xs:attribute name="base" type="xs:QName" use="required"/>
+ * </xs:extension>
+ * </xs:complexContent>
+ * </xs:complexType>
+ * </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>
+ * <xs:complexType name="simpleExplicitGroup">
+ * <xs:complexContent>
+ * <xs:restriction base="xs:explicitGroup">
+ * <xs:sequence>
+ * <xs:element ref="xs:annotation" minOccurs="0"/>
+ * <xs:group ref="xs:nestedParticle" minOccurs="0" maxOccurs="unbounded"/>
+ * </xs:sequence>
+ * <xs:attribute name="minOccurs" use="prohibited"/>
+ * <xs:attribute name="maxOccurs" use="prohibited"/>
+ * </xs:restriction>
+ * </xs:complexContent>
+ * </xs:complexType>
+ * </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>
+ * <xs:complexType name="simpleRestrictionType">
+ * <xs:complexContent>
+ * <xs:restriction base="xs:restrictionType">
+ * <xs:sequence>
+ * <xs:element ref="xs:annotation" minOccurs="0"/>
+ * <xs:group ref="xs:simpleRestrictionModel" 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 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>
+ * <xs:complexType name="simpleType" abstract="true">
+ * <xs:complexContent>
+ * <xs:extension base="xs:annotated">
+ * <xs:group ref="xs:simpleDerivation"/>
+ * <xs:attribute name="final" type="xs:simpleDerivationSet"/>
+ * <xs:attribute name="name" type="xs:NCName">
+ * <xs:annotation>
+ * <xs:documentation>
+ * Can be restricted to required or forbidden
+ * </xs:documentation>
+ * </xs:annotation>
+ * </xs:attribute>
+ * </xs:extension>
+ * </xs:complexContent>
+ * </xs:complexType>
+ *
+ * <xs:group name="simpleDerivation">
+ * <xs:choice>
+ * <xs:element ref="xs:restriction"/>
+ * <xs:element ref="xs:list"/>
+ * <xs:element ref="xs:union"/>
+ * </xs:choice>
+ * </xs:group>
+ * </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>
+ * <xs:complexType name="topLevelComplexType">
+ * <xs:complexContent>
+ * <xs:restriction base="xs:complexType">
+ * <xs:sequence>
+ * <xs:element ref="xs:annotation" minOccurs="0"/>
+ * <xs:group ref="xs:complexTypeModel"/>
+ * </xs:sequence>
+ * <xs:attribute name="name" type="xs:NCName" use="required"/>
+ * </xs:restriction>
+ * </xs:complexContent>
+ * </xs:complexType>
+ * </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>
+ * <xs:complexType name="wildcard">
+ * <xs:complexContent>
+ * <xs:extension base="xs:annotated">
+ * <xs:attribute name="namespace" type="xs:namespaceList" use="optional" default="##any"/>
+ * <xs:attribute name="processContents" use="optional" default="strict"
+ * <xs:simpleType>
+ * <xs:restriction base="xs:NMTOKEN">
+ * <xs:enumeration value="skip"/>
+ * <xs:enumeration value="lax"/>
+ * <xs:enumeration value="strict"/>
+ * </xs:restriction>
+ * </xs:simpleType>
+ * </xs:attribute>
+ * </xs:extension>
+ * </xs:complexContent>
+ * </xs:complexType>
+ * </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>
+ * <xs:attributeGroup name="defRef">
+ * <xs:annotation>
+ * <xs:documentation>
+ * for element, group and attributeGroup,
+ * which both define and reference
+ * </xs:documentation>
+ * </xs:annotation>
+ * <xs:attribute name="name" type="xs:NCName"/>
+ * <xs:attribute name="ref" type="xs:QName"/>
+ * </xs:attributeGroup>
+ * </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>
+ * <xs:attributeGroup name="occurs">
+ * <xs:annotation>
+ * <xs:documentation>
+ * for all particles
+ * </xs:documentation>
+ * </xs:annotation>
+ * <xs:attribute name="minOccurs" type="xs:nonNegativeInteger"
+ * use="optional" default="1"/>
+ * <xs:attribute name="maxOccurs" type="xs:allNNI"
+ * use="optional" default="1"/>
+ * </xs:attributeGroup>
+ * </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>
+ * <xs:element name="annotation" id="annotation">
+ * <xs:annotation>
+ * <xs:documentation source="http://www.w3.org/TR/xmlschema-1/#element-annotation"/>
+ * </xs:annotation>
+ * <xs:complexType>
+ * <xs:complexContent>
+ * <xs:extension base="xs:openAttrs">
+ * <xs:choice minOccurs="0" maxOccurs="unbounded">
+ * <xs:element ref="xs:appinfo"/>
+ * <xs:element ref="xs:documentation"/>
+ * </xs:choice>
+ * <xs:attribute name="id" type="xs:ID"/>
+ * </xs:extension>
+ * </xs:complexContent>
+ * </xs:complexType>
+ * </xs:element>
+ * </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>
+ * <xs:element name="any" id="any">
+ * <xs:annotation>
+ * <xs:documentation source="http://www.w3.org/TR/xmlschema-1/#element-any"/>
+ * </xs:annotation>
+ * <xs:complexType>
+ * <xs:complexContent>
+ * <xs:extension base="xs:wildcard">
+ * <xs:attributeGroup ref="xs:occurs"/>
+ * </xs:extension>
+ * </xs:complexContent>
+ * </xs:complexType>
+ * </xs:element>
+ * </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>
+ * <xs:element name="appinfo" id="appinfo">
+ * <xs:annotation>
+ * <xs:documentation source="http://www.w3.org/TR/xmlschema-1/#element-appinfo"/>
+ * </xs:annotation>
+ * <xs:complexType mixed="true">
+ * <xs:sequence minOccurs="0" maxOccurs="unbounded">
+ * <xs:any processContents="lax"/>
+ * </xs:sequence>
+ * <xs:attribute name="source" type="xs:anyURI"/>
+ * </xs:complexType>
+ * </xs:element>
+ * </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>
+ * <xs:element name="choice" type="xs:explicitGroup" id="choice">
+ * <xs:annotation>
+ * <xs:documentation source="http://www.w3.org/TR/xmlschema-1/#element-choice"/>
+ * </xs:annotation>
+ * </xs:element>
+ * </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>
+ * <xs:element name="complexContent" id="complexContent">
+ * <xs:annotation>
+ * <xs:documentation
+ * source="http://www.w3.org/TR/xmlschema-1/#element-complexContent"/>
+ * </xs:annotation>
+ * <xs:complexType>
+ * <xs:complexContent>
+ * <xs:extension base="xs:annotated">
+ * <xs:choice>
+ * <xs:element name="restriction" type="xs:complexRestrictionType"/>
+ * <xs:element name="extension" type="xs:extensionType"/>
+ * </xs:choice>
+ * <xs:attribute name="mixed" type="xs:boolean">
+ * <xs:annotation>
+ * <xs:documentation>
+ * Overrides any setting on complexType parent.
+ * </xs:documentation>
+ * </xs:annotation>
+ * </xs:attribute>
+ * </xs:extension>
+ * </xs:complexContent>
+ * </xs:complexType>
+ * </xs:element>
+ * </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>
+ * <xs:element name="documentation" id="documentation">
+ * <xs:annotation>
+ * <xs:documentation source="http://www.w3.org/TR/xmlschema-1/#element-documentation"/>
+ * </xs:annotation>
+ * <xs:complexType mixed="true">
+ * <xs:sequence minOccurs="0" maxOccurs="unbounded">
+ * <xs:any processContents="lax"/>
+ * </xs:sequence>
+ * <xs:attribute name="source" type="xs:anyURI"/>
+ * <xs:attribute ref="xml:lang"/>
+ * </xs:complexType>
+ * </xs:element>
+ * </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>
+ * <xs:element name="enumeration" id="enumeration" type="xs:noFixedFacet">
+ * <xs:annotation>
+ * <xs:documentation
+ * source="http://www.w3.org/TR/xmlschema-2/#element-enumeration"/>
+ * </xs:annotation>
+ * </xs:element>
+ * </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