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:NOTATION.
025: *
026: * <p>
027: * <pre>
028: * <code>
029: * <xs:simpleType name="NOTATION" id="NOTATION">
030: * <xs:annotation>
031: * <xs:appinfo>
032: * <hfp:hasFacet name="length"/>
033: * <hfp:hasFacet name="minLength"/>
034: * <hfp:hasFacet name="maxLength"/>
035: * <hfp:hasFacet name="pattern"/>
036: * <hfp:hasFacet name="enumeration"/>
037: * <hfp:hasFacet name="whiteSpace"/>
038: * <hfp:hasProperty name="ordered" value="false"/>
039: * <hfp:hasProperty name="bounded" value="false"/>
040: * <hfp:hasProperty name="cardinality" value="countably infinite"/>
041: * <hfp:hasProperty name="numeric" value="false"/>
042: * </xs:appinfo>
043: * <xs:documentation source="http://www.w3.org/TR/xmlschema-2/#NOTATION"/>
044: * <xs:documentation> NOTATION cannot be used directly in a
045: * schema; rather a type must be derived from it by
046: * specifying at least one enumeration facet whose
047: * value is the name of a NOTATION declared in the
048: * schema. </xs:documentation>
049: * </xs:annotation>
050: * <xs:restriction base="xs:anySimpleType">
051: * <xs:whiteSpace value="collapse" fixed="true" id="NOTATION.whiteSpace"/>
052: * </xs:restriction>
053: * </xs:simpleType>
054: *
055: * </code>
056: * </pre>
057: * </p>
058: *
059: * @generated
060: */
061: public class XSNOTATIONBinding implements SimpleBinding {
062: /**
063: * @generated
064: */
065: public QName getTarget() {
066: return XS.NOTATION;
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 Object parse(InstanceComponent instance, Object value)
096: throws Exception {
097: //TODO: implement me
098: return null;
099: }
100:
101: /**
102: * <!-- begin-user-doc -->
103: * <!-- end-user-doc -->
104: *
105: * @generated modifiable
106: */
107: public String encode(Object object, String value) {
108: //TODO: implement
109: return null;
110: }
111: }
|