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