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:narrowMaxMin.
027: *
028: * <p>
029: * <pre>
030: * <code>
031: * <xs:complexType name="narrowMaxMin">
032: * <xs:annotation>
033: * <xs:documentation>restricted max/min</xs:documentation>
034: * </xs:annotation>
035: * <xs:complexContent>
036: * <xs:restriction base="xs:localElement">
037: * <xs:sequence>
038: * <xs:element ref="xs:annotation" minOccurs="0"/>
039: * <xs:choice minOccurs="0">
040: * <xs:element name="simpleType" type="xs:localSimpleType"/>
041: * <xs:element name="complexType" type="xs:localComplexType"/>
042: * </xs:choice>
043: * <xs:group ref="xs:identityConstraint" minOccurs="0" maxOccurs="unbounded"/>
044: * </xs:sequence>
045: * <xs:attribute name="minOccurs" use="optional" default="1">
046: * <xs:simpleType>
047: * <xs:restriction base="xs:nonNegativeInteger">
048: * <xs:enumeration value="0"/>
049: * <xs:enumeration value="1"/>
050: * </xs:restriction>
051: * </xs:simpleType>
052: * </xs:attribute>
053: * <xs:attribute name="maxOccurs" use="optional" default="1">
054: * <xs:simpleType>
055: * <xs:restriction base="xs:allNNI">
056: * <xs:enumeration value="0"/>
057: * <xs:enumeration value="1"/>
058: * </xs:restriction>
059: * </xs:simpleType>
060: * </xs:attribute>
061: * <xs:anyAttribute namespace="##other" processContents="lax"/>
062: * </xs:restriction>
063: * </xs:complexContent>
064: * </xs:complexType>
065: *
066: * </code>
067: * </pre>
068: * </p>
069: *
070: * @generated
071: */
072: public class XSNarrowMaxMinBinding extends AbstractComplexBinding {
073: /**
074: * @generated
075: */
076: public QName getTarget() {
077: return XS.NARROWMAXMIN;
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: }
|