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:namedGroup.
027: *
028: * <p>
029: * <pre>
030: * <code>
031: * <xs:complexType name="namedGroup">
032: * <xs:complexContent>
033: * <xs:restriction base="xs:realGroup">
034: * <xs:sequence>
035: * <xs:element ref="xs:annotation" minOccurs="0"/>
036: * <xs:choice minOccurs="1" maxOccurs="1">
037: * <xs:element name="all">
038: * <xs:complexType>
039: * <xs:complexContent>
040: * <xs:restriction base="xs:all">
041: * <xs:group ref="xs:allModel"/>
042: * <xs:attribute name="minOccurs" use="prohibited"/>
043: * <xs:attribute name="maxOccurs" use="prohibited"/>
044: * <xs:anyAttribute namespace="##other" processContents="lax"/>
045: * </xs:restriction>
046: * </xs:complexContent>
047: * </xs:complexType>
048: * </xs:element>
049: * <xs:element name="choice" type="xs:simpleExplicitGroup"/>
050: * <xs:element name="sequence" type="xs:simpleExplicitGroup"/>
051: * </xs:choice>
052: * </xs:sequence>
053: * <xs:attribute name="name" use="required" type="xs:NCName"/>
054: * <xs:attribute name="ref" use="prohibited"/>
055: * <xs:attribute name="minOccurs" use="prohibited"/>
056: * <xs:attribute name="maxOccurs" use="prohibited"/>
057: * <xs:anyAttribute namespace="##other" processContents="lax"/>
058: * </xs:restriction>
059: * </xs:complexContent>
060: * </xs:complexType>
061: *
062: * </code>
063: * </pre>
064: * </p>
065: *
066: * @generated
067: */
068: public class XSNamedGroupBinding extends AbstractComplexBinding {
069: /**
070: * @generated
071: */
072: public QName getTarget() {
073: return XS.NAMEDGROUP;
074: }
075:
076: /**
077: * <!-- begin-user-doc -->
078: * <!-- end-user-doc -->
079: *
080: * @generated modifiable
081: */
082: public int getExecutionMode() {
083: return AFTER;
084: }
085:
086: /**
087: * <!-- begin-user-doc -->
088: * <!-- end-user-doc -->
089: *
090: * @generated modifiable
091: */
092: public Class getType() {
093: return null;
094: }
095:
096: /**
097: * <!-- begin-user-doc -->
098: * <!-- end-user-doc -->
099: *
100: * @generated modifiable
101: */
102: public void initialize(ElementInstance instance, Node node,
103: MutablePicoContainer context) {
104: }
105:
106: /**
107: * <!-- begin-user-doc -->
108: * <!-- end-user-doc -->
109: *
110: * @generated modifiable
111: */
112: public Object parse(ElementInstance instance, Node node,
113: Object value) throws Exception {
114: //TODO: implement
115: return null;
116: }
117:
118: }
|