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