001: /*
002: * GeoTools - OpenSource mapping toolkit
003: * http://geotools.org
004: * (C) 2002-2006, GeoTools Project Managment Committee (PMC)
005: *
006: * This library is free software; you can redistribute it and/or
007: * modify it under the terms of the GNU Lesser General Public
008: * License as published by the Free Software Foundation;
009: * version 2.1 of the License.
010: *
011: * This library is distributed in the hope that it will be useful,
012: * but WITHOUT ANY WARRANTY; without even the implied warranty of
013: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
014: * Lesser General Public License for more details.
015: */
016: package org.geotools.xs.bindings;
017:
018: import javax.xml.namespace.QName;
019:
020: import org.geotools.xml.AbstractComplexBinding;
021: import org.geotools.xml.ElementInstance;
022: import org.geotools.xml.Node;
023: import org.picocontainer.MutablePicoContainer;
024:
025: /**
026: * Binding object for the type http://www.w3.org/2001/XMLSchema:all.
027: *
028: * <p>
029: * <pre>
030: * <code>
031: * <xs:complexType name="all">
032: * <xs:annotation>
033: * <xs:documentation> Only elements allowed inside</xs:documentation>
034: * </xs:annotation>
035: * <xs:complexContent>
036: * <xs:restriction base="xs:explicitGroup">
037: * <xs:group ref="xs:allModel"/>
038: * <xs:attribute name="minOccurs" use="optional" default="1">
039: * <xs:simpleType>
040: * <xs:restriction base="xs:nonNegativeInteger">
041: * <xs:enumeration value="0"/>
042: * <xs:enumeration value="1"/>
043: * </xs:restriction>
044: * </xs:simpleType>
045: * </xs:attribute>
046: * <xs:attribute name="maxOccurs" use="optional" default="1">
047: * <xs:simpleType>
048: * <xs:restriction base="xs:allNNI">
049: * <xs:enumeration value="1"/>
050: * </xs:restriction>
051: * </xs:simpleType>
052: * </xs:attribute>
053: * <xs:anyAttribute namespace="##other" processContents="lax"/>
054: * </xs:restriction>
055: * </xs:complexContent>
056: * </xs:complexType>
057: *
058: * </code>
059: * </pre>
060: * </p>
061: *
062: * @generated
063: */
064: public class XSAllBinding extends AbstractComplexBinding {
065: /**
066: * @generated
067: */
068: public QName getTarget() {
069: return XS.ALL;
070: }
071:
072: /**
073: * <!-- begin-user-doc -->
074: * <!-- end-user-doc -->
075: *
076: * @generated modifiable
077: */
078: public int getExecutionMode() {
079: return AFTER;
080: }
081:
082: /**
083: * <!-- begin-user-doc -->
084: * <!-- end-user-doc -->
085: *
086: * @generated modifiable
087: */
088: public Class getType() {
089: return null;
090: }
091:
092: /**
093: * <!-- begin-user-doc -->
094: * <!-- end-user-doc -->
095: *
096: * @generated modifiable
097: */
098: public void initialize(ElementInstance instance, Node node,
099: MutablePicoContainer context) {
100: }
101:
102: /**
103: * <!-- begin-user-doc -->
104: * <!-- end-user-doc -->
105: *
106: * @generated modifiable
107: */
108: public Object parse(ElementInstance instance, Node node,
109: Object value) throws Exception {
110: //TODO: implement
111: return null;
112: }
113:
114: }
|