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:complexRestrictionType.
027: *
028: * <p>
029: * <pre>
030: * <code>
031: * <xs:complexType name="complexRestrictionType">
032: * <xs:complexContent>
033: * <xs:restriction base="xs:restrictionType">
034: * <xs:sequence>
035: * <xs:element ref="xs:annotation" minOccurs="0"/>
036: * <xs:choice minOccurs="0">
037: * <xs:annotation>
038: * <xs:documentation>This choice is added simply to
039: * make this a valid restriction per the REC</xs:documentation>
040: * </xs:annotation>
041: * <xs:group ref="xs:typeDefParticle"/>
042: * </xs:choice>
043: * <xs:group ref="xs:attrDecls"/>
044: * </xs:sequence>
045: * <xs:anyAttribute namespace="##other" processContents="lax"/>
046: * </xs:restriction>
047: * </xs:complexContent>
048: * </xs:complexType>
049: *
050: * </code>
051: * </pre>
052: * </p>
053: *
054: * @generated
055: */
056: public class XSComplexRestrictionTypeBinding extends
057: AbstractComplexBinding {
058: /**
059: * @generated
060: */
061: public QName getTarget() {
062: return XS.COMPLEXRESTRICTIONTYPE;
063: }
064:
065: /**
066: * <!-- begin-user-doc -->
067: * <!-- end-user-doc -->
068: *
069: * @generated modifiable
070: */
071: public int getExecutionMode() {
072: return AFTER;
073: }
074:
075: /**
076: * <!-- begin-user-doc -->
077: * <!-- end-user-doc -->
078: *
079: * @generated modifiable
080: */
081: public Class getType() {
082: return Object.class;
083: }
084:
085: /**
086: * <!-- begin-user-doc -->
087: * <!-- end-user-doc -->
088: *
089: * @generated modifiable
090: */
091: public void initialize(ElementInstance instance, Node node,
092: MutablePicoContainer context) {
093: }
094:
095: /**
096: * <!-- begin-user-doc -->
097: * <!-- end-user-doc -->
098: *
099: * @generated modifiable
100: */
101: public Object parse(ElementInstance instance, Node node,
102: Object value) throws Exception {
103: //TODO: implement
104: return null;
105: }
106:
107: }
|