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:element.
027: *
028: * <p>
029: * <pre>
030: * <code>
031: * <xs:complexType name="element" abstract="true">
032: * <xs:annotation>
033: * <xs:documentation> The element element can be used either
034: * at the top level to define an element-type binding globally,
035: * or within a content model to either reference a
036: * globally-defined element or type or declare an
037: * element-type binding locally. The ref form is not allowed
038: * at the top level.</xs:documentation>
039: * </xs:annotation>
040: * <xs:complexContent>
041: * <xs:extension base="xs:annotated">
042: * <xs:sequence>
043: * <xs:choice minOccurs="0">
044: * <xs:element name="simpleType" type="xs:localSimpleType"/>
045: * <xs:element name="complexType" type="xs:localComplexType"/>
046: * </xs:choice>
047: * <xs:group ref="xs:identityConstraint" minOccurs="0" maxOccurs="unbounded"/>
048: * </xs:sequence>
049: * <xs:attributeGroup ref="xs:defRef"/>
050: * <xs:attribute name="type" type="xs:QName"/>
051: * <xs:attribute name="substitutionGroup" type="xs:QName"/>
052: * <xs:attributeGroup ref="xs:occurs"/>
053: * <xs:attribute name="default" type="xs:string"/>
054: * <xs:attribute name="fixed" type="xs:string"/>
055: * <xs:attribute name="nillable" type="xs:boolean"
056: * use="optional" default="false"/>
057: * <xs:attribute name="abstract" type="xs:boolean"
058: * use="optional" default="false"/>
059: * <xs:attribute name="final" type="xs:derivationSet"/>
060: * <xs:attribute name="block" type="xs:blockSet"/>
061: * <xs:attribute name="form" type="xs:formChoice"/>
062: * </xs:extension>
063: * </xs:complexContent>
064: * </xs:complexType>
065: *
066: * </code>
067: * </pre>
068: * </p>
069: *
070: * @generated
071: */
072: public class XSElementBinding extends AbstractComplexBinding {
073: /**
074: * @generated
075: */
076: public QName getTarget() {
077: return XS.ELEMENT;
078: }
079:
080: /**
081: * <!-- begin-user-doc -->
082: * <!-- end-user-doc -->
083: *
084: * @generated modifiable
085: */
086: public int getExecutionMode() {
087: return AFTER;
088: }
089:
090: /**
091: * <!-- begin-user-doc -->
092: * <!-- end-user-doc -->
093: *
094: * @generated modifiable
095: */
096: public Class getType() {
097: return null;
098: }
099:
100: /**
101: * <!-- begin-user-doc -->
102: * <!-- end-user-doc -->
103: *
104: * @generated modifiable
105: */
106: public void initialize(ElementInstance instance, Node node,
107: MutablePicoContainer context) {
108: }
109:
110: /**
111: * <!-- begin-user-doc -->
112: * <!-- end-user-doc -->
113: *
114: * @generated modifiable
115: */
116: public Object parse(ElementInstance instance, Node node,
117: Object value) throws Exception {
118: //TODO: implement
119: return null;
120: }
121:
122: }
|