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.InstanceComponent;
021: import org.geotools.xml.SimpleBinding;
022:
023: /**
024: * Binding object for the type http://www.w3.org/2001/XMLSchema:language.
025: *
026: * <p>
027: * <pre>
028: * <code>
029: * <xs:simpleType name="language" id="language">
030: * <xs:annotation>
031: * <xs:documentation source="http://www.w3.org/TR/xmlschema-2/#language"/>
032: * </xs:annotation>
033: * <xs:restriction base="xs:token">
034: * <xs:pattern value="[a-zA-Z]{1,8}(-[a-zA-Z0-9]{1,8})*" id="language.pattern">
035: * <xs:annotation>
036: * <xs:documentation
037: * source="http://www.ietf.org/rfc/rfc3066.txt">
038: * pattern specifies the content of section 2.12 of XML
039: * 1.0e2 and RFC 3066 (Revised version of
040: * RFC 1766). </xs:documentation>
041: * </xs:annotation>
042: * </xs:pattern>
043: * </xs:restriction>
044: * </xs:simpleType>
045: *
046: * </code>
047: * </pre>
048: * </p>
049: *
050: * @generated
051: */
052: public class XSLanguageBinding implements SimpleBinding {
053: /**
054: * @generated
055: */
056: public QName getTarget() {
057: return XS.LANGUAGE;
058: }
059:
060: /**
061: * <!-- begin-user-doc -->
062: * <!-- end-user-doc -->
063: *
064: * @generated modifiable
065: */
066: public int getExecutionMode() {
067: return AFTER;
068: }
069:
070: /**
071: * <!-- begin-user-doc -->
072: * <!-- end-user-doc -->
073: *
074: * @generated modifiable
075: */
076: public Class getType() {
077: return null;
078: }
079:
080: /**
081: * <!-- begin-user-doc -->
082: * <!-- end-user-doc -->
083: *
084: * @generated modifiable
085: */
086: public Object parse(InstanceComponent instance, Object value)
087: throws Exception {
088: //TODO: implement me
089: return null;
090: }
091:
092: /**
093: * <!-- begin-user-doc -->
094: * <!-- end-user-doc -->
095: *
096: * @generated modifiable
097: */
098: public String encode(Object object, String value) {
099: //TODO: implement
100: return null;
101: }
102: }
|