View Javadoc

1   /*
2    * Copyright 2004,2007 The Apache Software Foundation.
3    *
4    * Licensed under the Apache License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    *      http://www.apache.org/licenses/LICENSE-2.0
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  
17  package org.apache.ws.commons.schema;
18  
19  import org.apache.ws.commons.schema.constants.Constants;
20  
21  /**
22   * Enables any element from the specified namespace or namespaces
23   * to appear in the containing complexType element. Represents the
24   * World Wide Web Consortium (W3C) any element.
25   */
26  
27  public class XmlSchemaAny extends XmlSchemaParticle {
28  
29      /**
30       * Creates new XmlSchemaAny
31       */
32      public XmlSchemaAny() {
33          processContent = new XmlSchemaContentProcessing(Constants.BlockConstants.NONE);
34      }
35  
36      /**
37       * Namespaces containing the elements that can be used.
38       */
39      String namespace;
40  
41      public String getNamespace() {
42          return namespace;
43      }
44  
45      public void setNamespace(String namespace) {
46          this.namespace = namespace;
47      }
48  
49      XmlSchemaContentProcessing processContent;
50  
51      public XmlSchemaContentProcessing getProcessContent() {
52          return processContent;
53      }
54  
55      public void setProcessContent(XmlSchemaContentProcessing processContent) {
56          this.processContent = processContent;
57      }
58  
59  }