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