Source Code Cross Referenced for GMLSchemaTranslator.java in  » GIS » GeoServer » org » geoserver » wfs » xml » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » GIS » GeoServer » org.geoserver.wfs.xml 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


0001:        /*
0002:         * Created on Feb 5, 2004
0003:         *
0004:         * To change the template for this generated file go to
0005:         * Window - Preferences - Java - Code Generation - Code and Comments
0006:         */
0007:        package org.geoserver.wfs.xml;
0008:
0009:        import com.vividsolutions.jts.geom.Geometry;
0010:        import com.vividsolutions.jts.geom.GeometryCollection;
0011:        import com.vividsolutions.jts.geom.LineString;
0012:        import com.vividsolutions.jts.geom.MultiLineString;
0013:        import com.vividsolutions.jts.geom.MultiPoint;
0014:        import com.vividsolutions.jts.geom.MultiPolygon;
0015:        import com.vividsolutions.jts.geom.Point;
0016:        import com.vividsolutions.jts.geom.Polygon;
0017:        import org.geotools.feature.FeatureCollection;
0018:        import java.util.HashSet;
0019:        import java.util.Set;
0020:
0021:        /**
0022:         * XMLSchemaTranslator purpose.
0023:         * <p>
0024:         * This instance of the NameSpaceTranslator should be used with http://www.opengis.net/gml namespace.
0025:         * </p>
0026:         * <p>
0027:         * Instances of this object should always be retrieved through the NameSpaceTranslatorFactory.
0028:         * </p>
0029:         * @see NameSpaceTranslatorFactory
0030:         *
0031:         * @author dzwiers, Refractions Research, Inc.
0032:         * @author $Author: dmzwiers $ (last modification)
0033:         * @version $Id: GMLSchemaTranslator.java 6177 2007-02-19 10:11:27Z aaime $
0034:         */
0035:        public class GMLSchemaTranslator extends NameSpaceTranslator {
0036:            private HashSet elements;
0037:
0038:            /**
0039:             * XMLSchemaTranslator constructor.
0040:             * <p>
0041:             * Description
0042:             * </p>
0043:             * @param prefix
0044:             */
0045:            public GMLSchemaTranslator(String prefix) {
0046:                super (prefix);
0047:                elements = new HashSet();
0048:                /*elements.add(new PointElement(prefix));
0049:                elements.add(new LineStringElement(prefix));
0050:                elements.add(new LinearRingElement(prefix));
0051:                elements.add(new BoxElement(prefix));
0052:                elements.add(new PolygonElement(prefix));
0053:                elements.add(new GeometryCollectionElement(prefix));
0054:                elements.add(new MultiPointElement(prefix));
0055:                elements.add(new MultiLineStringElement(prefix));
0056:                elements.add(new MultiPolygonElement(prefix));
0057:                elements.add(new CoordElement(prefix));
0058:                elements.add(new CoordinatesElement(prefix));*/
0059:                elements.add(new PointPropertyElement(prefix));
0060:                elements.add(new PolygonPropertyElement(prefix));
0061:                elements.add(new LineStringPropertyElement(prefix));
0062:                elements.add(new MultiPointPropertyElement(prefix));
0063:                elements.add(new MultiLineStringPropertyElement(prefix));
0064:                elements.add(new MultiPolygonPropertyElement(prefix));
0065:                elements.add(new MultiGeometryPropertyElement(prefix));
0066:                elements.add(new NullElement(prefix));
0067:                elements.add(new AbstractFeatureElement(prefix));
0068:                elements.add(new AbstractFeatureCollectionBaseElement(prefix));
0069:                elements.add(new AbstractFeatureCollectionElement(prefix));
0070:                elements.add(new GeometryPropertyElement(prefix));
0071:
0072:                /*elements.add(new GeometryPropertyElement(prefix));
0073:                elements.add(new FeatureAssociationElement(prefix));
0074:                elements.add(new BoundingShapeElement(prefix));
0075:                elements.add(new AbstractGeometryElement(prefix));
0076:                elements.add(new AbstractGeometryCollectionBaseElement(prefix));
0077:                elements.add(new AssociationAttributeGroupElement(prefix));
0078:                elements.add(new GeometryAssociationElement(prefix));
0079:                elements.add(new PointMemberElement(prefix));
0080:                elements.add(new LineStringMemberElement(prefix));
0081:                elements.add(new PolygonMemberElement(prefix));
0082:                elements.add(new LinearRingMemberElement(prefix));*/
0083:            }
0084:
0085:            /**
0086:             * Implementation of getElements.
0087:             *
0088:             * @see org.vfny.geoserver.global.xml.NameSpaceTranslator#getElements()
0089:             *
0090:             * @return
0091:             */
0092:            public Set getElements() {
0093:                return elements;
0094:            }
0095:
0096:            /**
0097:             * Implementation of getNameSpace.
0098:             *
0099:             * @see org.vfny.geoserver.global.xml.NameSpaceTranslator#getNameSpace()
0100:             *
0101:             * @return
0102:             */
0103:            public String getNameSpace() {
0104:                return "http://www.opengis.net/gml";
0105:            }
0106:        }
0107:
0108:        class AbstractFeatureElement extends NameSpaceElement {
0109:            public AbstractFeatureElement(String prefix) {
0110:                super (prefix);
0111:            }
0112:
0113:            public String getTypeDefName() {
0114:                return "AbstractFeatureType";
0115:            }
0116:
0117:            public String getTypeRefName() {
0118:                return null;
0119:            }
0120:
0121:            public String getQualifiedTypeDefName() {
0122:                return prefix + ":AbstractFeatureType";
0123:            }
0124:
0125:            public String getQualifiedTypeRefName() {
0126:                return null;
0127:            }
0128:
0129:            public String getQualifiedTypeDefName(String prefix) {
0130:                if (prefix != null) {
0131:                    return prefix + ":AbstractFeatureType";
0132:                }
0133:
0134:                if (this .prefix != null) {
0135:                    return this .prefix + ":AbstractFeatureType";
0136:                }
0137:
0138:                return null;
0139:            }
0140:
0141:            public String getQualifiedTypeRefName(String prefix) {
0142:                return null;
0143:            }
0144:
0145:            public Class getJavaClass() {
0146:                return Object.class;
0147:            }
0148:
0149:            public boolean isAbstract() {
0150:                return true;
0151:            }
0152:        }
0153:
0154:        class AbstractFeatureCollectionBaseElement extends NameSpaceElement {
0155:            public AbstractFeatureCollectionBaseElement(String prefix) {
0156:                super (prefix);
0157:            }
0158:
0159:            public String getTypeDefName() {
0160:                return "AbstractFeatureCollectionBaseType";
0161:            }
0162:
0163:            public String getTypeRefName() {
0164:                return null;
0165:            }
0166:
0167:            public String getQualifiedTypeDefName() {
0168:                return prefix + ":AbstractFeatureCollectionBaseType";
0169:            }
0170:
0171:            public String getQualifiedTypeRefName() {
0172:                return null;
0173:            }
0174:
0175:            public String getQualifiedTypeDefName(String prefix) {
0176:                if (prefix != null) {
0177:                    return prefix + ":AbstractFeatureCollectionBaseType";
0178:                }
0179:
0180:                if (this .prefix != null) {
0181:                    return this .prefix + ":AbstractFeatureCollectionBaseType";
0182:                }
0183:
0184:                return null;
0185:            }
0186:
0187:            public String getQualifiedTypeRefName(String prefix) {
0188:                return null;
0189:            }
0190:
0191:            public Class getJavaClass() {
0192:                return FeatureCollection.class;
0193:            }
0194:
0195:            public boolean isAbstract() {
0196:                return true;
0197:            }
0198:        }
0199:
0200:        class AbstractFeatureCollectionElement extends NameSpaceElement {
0201:            public AbstractFeatureCollectionElement(String prefix) {
0202:                super (prefix);
0203:            }
0204:
0205:            public String getTypeDefName() {
0206:                return "AbstractFeatureCollectionType";
0207:            }
0208:
0209:            public String getTypeRefName() {
0210:                return null;
0211:            }
0212:
0213:            public String getQualifiedTypeDefName() {
0214:                return prefix + ":AbstractFeatureCollectionType";
0215:            }
0216:
0217:            public String getQualifiedTypeRefName() {
0218:                return null;
0219:            }
0220:
0221:            public String getQualifiedTypeDefName(String prefix) {
0222:                if (prefix != null) {
0223:                    return prefix + ":AbstractFeatureCollectionType";
0224:                }
0225:
0226:                if (this .prefix != null) {
0227:                    return this .prefix + ":AbstractFeatureCollectionType";
0228:                }
0229:
0230:                return null;
0231:            }
0232:
0233:            public String getQualifiedTypeRefName(String prefix) {
0234:                return null;
0235:            }
0236:
0237:            public Class getJavaClass() {
0238:                return FeatureCollection.class;
0239:            }
0240:
0241:            public boolean isAbstract() {
0242:                return true;
0243:            }
0244:        }
0245:
0246:        // I don't think this big chunk of junk is useful, as I don't think you're 
0247:        // going to define a schema with it, unless you do something more complicated
0248:        // then what we are doing.  We only want the GeometryPropertyType stuff, which
0249:        // allows us to name the element as we will.  The rest is only useful if you
0250:        // are doing more complex stuff than we allow.  But I will leave this in
0251:        // and commented out, in case I am wrong and this junk does have a use.
0252:
0253:        // I think perhaps it may just need better objects, that can actually use
0254:        // these?  Since the geometry objects they are given can't use them.
0255:        class GeometryPropertyElement extends NameSpaceElement {
0256:            public GeometryPropertyElement(String prefix) {
0257:                super (prefix);
0258:            }
0259:
0260:            public String getTypeDefName() {
0261:                return "GeometryPropertyType";
0262:            }
0263:
0264:            public String getTypeRefName() {
0265:                return null;
0266:            }
0267:
0268:            public String getQualifiedTypeDefName() {
0269:                return prefix + ":GeometryPropertyType";
0270:            }
0271:
0272:            public String getQualifiedTypeRefName() {
0273:                return null;
0274:            }
0275:
0276:            public String getQualifiedTypeDefName(String prefix) {
0277:                if (prefix != null) {
0278:                    return prefix + ":GeometryPropertyType";
0279:                }
0280:
0281:                if (this .prefix != null) {
0282:                    return this .prefix + ":GeometryPropertyType";
0283:                }
0284:
0285:                return null;
0286:            }
0287:
0288:            public String getQualifiedTypeRefName(String prefix) {
0289:                return null;
0290:            }
0291:
0292:            public Class getJavaClass() {
0293:                return Geometry.class;
0294:            }
0295:
0296:            public boolean isAbstract() {
0297:                return true;
0298:            }
0299:        }
0300:
0301:        /*
0302:         class FeatureAssociationElement extends NameSpaceElement{
0303:         public FeatureAssociationElement(String prefix){super(prefix);}
0304:         public String getTypeDefName(){return "FeatureAssociationType";}
0305:         public String getTypeRefName(){return null;}
0306:         public String getQualifiedTypeDefName(){return prefix+":FeatureAssociationType";}
0307:         public String getQualifiedTypeRefName(){return null;}
0308:         public String getQualifiedTypeDefName(String prefix){
0309:         if(prefix!=null)
0310:         return prefix+":FeatureAssociationType";
0311:         if(this.prefix!=null)
0312:         return this.prefix+":FeatureAssociationType";
0313:         return null;
0314:         }
0315:         public String getQualifiedTypeRefName(String prefix){return null;}
0316:         public Class getJavaClass(){return Feature.class;}
0317:         public boolean isAbstract(){return true;}
0318:         }
0319:
0320:         class BoundingShapeElement extends NameSpaceElement{
0321:         public BoundingShapeElement(String prefix){super(prefix);}
0322:         public String getTypeDefName(){return "BoundingShapeType";}
0323:         public String getTypeRefName(){return null;}
0324:         public String getQualifiedTypeDefName(){return prefix+":BoundingShapeType";}
0325:         public String getQualifiedTypeRefName(){return null;}
0326:         public String getQualifiedTypeDefName(String prefix){
0327:         if(prefix!=null)
0328:         return prefix+":BoundingShapeType";
0329:         if(this.prefix!=null)
0330:         return this.prefix+":BoundingShapeType";
0331:         return null;
0332:         }
0333:         public String getQualifiedTypeRefName(String prefix){return null;}
0334:         public Class getJavaClass(){return Filter.class;}
0335:         public boolean isAbstract(){return false;}
0336:         }
0337:
0338:         class AbstractGeometryElement extends NameSpaceElement{
0339:         public AbstractGeometryElement(String prefix){super(prefix);}
0340:         public String getTypeDefName(){return "AbstractGeometryType";}
0341:         public String getTypeRefName(){return null;}
0342:         public String getQualifiedTypeDefName(){return prefix+":AbstractGeometryType";}
0343:         public String getQualifiedTypeRefName(){return null;}
0344:         public String getQualifiedTypeDefName(String prefix){
0345:         if(prefix!=null)
0346:         return prefix+":AbstractGeometryType";
0347:         if(this.prefix!=null)
0348:         return this.prefix+":AbstractGeometryType";
0349:         return null;
0350:         }
0351:         public String getQualifiedTypeRefName(String prefix){return null;}
0352:         public Class getJavaClass(){return Geometry.class;}
0353:         public boolean isAbstract(){return true;}
0354:         }
0355:
0356:         class AbstractGeometryCollectionBaseElement extends NameSpaceElement{
0357:         public AbstractGeometryCollectionBaseElement(String prefix){super(prefix);}
0358:         public String getTypeDefName(){return "AbstractGeometryCollectionBase";}
0359:         public String getTypeRefName(){return null;}
0360:         public String getQualifiedTypeDefName(){return prefix+":AbstractGeometryCollectionBase";}
0361:         public String getQualifiedTypeRefName(){return null;}
0362:         public String getQualifiedTypeDefName(String prefix){
0363:         if(prefix!=null)
0364:         return prefix+":AbstractGeometryCollectionBase";
0365:         if(this.prefix!=null)
0366:         return this.prefix+":AbstractGeometryCollectionBase";
0367:         return null;
0368:         }
0369:         public String getQualifiedTypeRefName(String prefix){return null;}
0370:         public Class getJavaClass(){return GeometryCollection.class;}
0371:         public boolean isAbstract(){return true;}
0372:         }
0373:
0374:         class AssociationAttributeGroupElement extends NameSpaceElement{
0375:         public AssociationAttributeGroupElement(String prefix){super(prefix);}
0376:         public String getTypeDefName(){return "AssociationAttributeGroup";}
0377:         public String getTypeRefName(){return null;}
0378:         public String getQualifiedTypeDefName(){return prefix+":AssociationAttributeGroup";}
0379:         public String getQualifiedTypeRefName(){return null;}
0380:         public String getQualifiedTypeDefName(String prefix){
0381:         if(prefix!=null)
0382:         return prefix+":AssociationAttributeGroup";
0383:         if(this.prefix!=null)
0384:         return this.prefix+":AssociationAttributeGroup";
0385:         return null;
0386:         }
0387:         public String getQualifiedTypeRefName(String prefix){return null;}
0388:         public Class getJavaClass(){return Collection.class;}
0389:         public boolean isAbstract(){return true;}
0390:         }
0391:
0392:         class GeometryAssociationElement extends NameSpaceElement{
0393:         public GeometryAssociationElement(String prefix){super(prefix);}
0394:         public String getTypeDefName(){return "GeometryAssociationType";}
0395:         public String getTypeRefName(){return null;}
0396:         public String getQualifiedTypeDefName(){return prefix+":GeometryAssociationType";}
0397:         public String getQualifiedTypeRefName(){return null;}
0398:         public String getQualifiedTypeDefName(String prefix){
0399:         if(prefix!=null)
0400:         return prefix+":GeometryAssociationType";
0401:         if(this.prefix!=null)
0402:         return this.prefix+":GeometryAssociationType";
0403:         return null;
0404:         }
0405:         public String getQualifiedTypeRefName(String prefix){return null;}
0406:         public Class getJavaClass(){return Object.class;}
0407:         public boolean isAbstract(){return true;}
0408:         }
0409:
0410:         class PointMemberElement extends NameSpaceElement{
0411:         public PointMemberElement(String prefix){super(prefix);}
0412:         public String getTypeDefName(){return "PointMemberType";}
0413:         public String getTypeRefName(){return null;}
0414:         public String getQualifiedTypeDefName(){return prefix+":PointMemberType";}
0415:         public String getQualifiedTypeRefName(){return null;}
0416:         public String getQualifiedTypeDefName(String prefix){
0417:         if(prefix!=null)
0418:         return prefix+":PointMemberType";
0419:         if(this.prefix!=null)
0420:         return this.prefix+":PointMemberType";
0421:         return null;
0422:         }
0423:         public String getQualifiedTypeRefName(String prefix){return null;}
0424:         public Class getJavaClass(){return Object.class;}
0425:         public boolean isAbstract(){return false;}
0426:         }
0427:
0428:         class LineStringMemberElement extends NameSpaceElement{
0429:         public LineStringMemberElement(String prefix){super(prefix);}
0430:         public String getTypeDefName(){return "LineStringMemberType";}
0431:         public String getTypeRefName(){return null;}
0432:         public String getQualifiedTypeDefName(){return prefix+":LineStringMemberType";}
0433:         public String getQualifiedTypeRefName(){return null;}
0434:         public String getQualifiedTypeDefName(String prefix){
0435:         if(prefix!=null)
0436:         return prefix+":LineStringMemberType";
0437:         if(this.prefix!=null)
0438:         return this.prefix+":LineStringMemberType";
0439:         return null;
0440:         }
0441:         public String getQualifiedTypeRefName(String prefix){return null;}
0442:         public Class getJavaClass(){return Object.class;}
0443:         public boolean isAbstract(){return false;}
0444:         }
0445:
0446:         class PolygonMemberElement extends NameSpaceElement{
0447:         public PolygonMemberElement(String prefix){super(prefix);}
0448:         public String getTypeDefName(){return "PolygonMemberType";}
0449:         public String getTypeRefName(){return null;}
0450:         public String getQualifiedTypeDefName(){return prefix+":PolygonMemberType";}
0451:         public String getQualifiedTypeRefName(){return null;}
0452:         public String getQualifiedTypeDefName(String prefix){
0453:         if(prefix!=null)
0454:         return prefix+":PolygonMemberType";
0455:         if(this.prefix!=null)
0456:         return this.prefix+":PolygonMemberType";
0457:         return null;
0458:         }
0459:         public String getQualifiedTypeRefName(String prefix){return null;}
0460:         public Class getJavaClass(){return Object.class;}
0461:         public boolean isAbstract(){return false;}
0462:         }
0463:
0464:         class LinearRingMemberElement extends NameSpaceElement{
0465:         public LinearRingMemberElement(String prefix){super(prefix);}
0466:         public String getTypeDefName(){return "LinearRingMemberType";}
0467:         public String getTypeRefName(){return null;}
0468:         public String getQualifiedTypeDefName(){return prefix+":LinearRingMemberType";}
0469:         public String getQualifiedTypeRefName(){return null;}
0470:         public String getQualifiedTypeDefName(String prefix){
0471:         if(prefix!=null)
0472:         return prefix+":LinearRingMemberType";
0473:         if(this.prefix!=null)
0474:         return this.prefix+":LinearRingMemberType";
0475:         return null;
0476:         }
0477:         public String getQualifiedTypeRefName(String prefix){return null;}
0478:         public Class getJavaClass(){return Object.class;}
0479:         public boolean isAbstract(){return false;}
0480:         }
0481:
0482:         class PointElement extends NameSpaceElement{
0483:         public PointElement(String prefix){super(prefix);}
0484:         public String getTypeDefName(){return "PointType";}
0485:         public String getTypeRefName(){return "point";}
0486:         public String getQualifiedTypeDefName(){return prefix+":PointType";}
0487:         public String getQualifiedTypeRefName(){return prefix+":point";}
0488:         public String getQualifiedTypeDefName(String prefix){
0489:         if(prefix!=null)
0490:         return prefix+":PointType";
0491:         if(this.prefix!=null)
0492:         return this.prefix+":PointType";
0493:         return null;
0494:         }
0495:         public String getQualifiedTypeRefName(String prefix){
0496:         if(prefix!=null)
0497:         return prefix+":point";
0498:         if(this.prefix!=null)
0499:         return this.prefix+":point";
0500:         return null;
0501:         }
0502:         public Class getJavaClass(){return Point.class;}
0503:         public boolean isAbstract(){return false;}
0504:         }
0505:
0506:         class LineStringElement extends NameSpaceElement{
0507:         public LineStringElement(String prefix){super(prefix);}
0508:         public String getTypeDefName(){return "LineStringType";}
0509:         public String getTypeRefName(){return "lineStringType";}
0510:         public String getQualifiedTypeDefName(){return prefix+":LineStringType";}
0511:         public String getQualifiedTypeRefName(){return prefix+":lineStringType";}
0512:         public String getQualifiedTypeDefName(String prefix){
0513:         if(prefix!=null)
0514:         return prefix+":LineStringType";
0515:         if(this.prefix!=null)
0516:         return this.prefix+":LineStringType";
0517:         return null;
0518:         }
0519:         public String getQualifiedTypeRefName(String prefix){
0520:         if(prefix!=null)
0521:         return prefix+":lineStringType";
0522:         if(this.prefix!=null)
0523:         return this.prefix+":lineStringType";
0524:         return null;
0525:         }
0526:         public Class getJavaClass(){return LineString.class;}
0527:         public boolean isAbstract(){return false;}
0528:         }
0529:
0530:         class LinearRingElement extends NameSpaceElement{
0531:         public LinearRingElement(String prefix){super(prefix);}
0532:         public String getTypeDefName(){return "LinearRingType";}
0533:         public String getTypeRefName(){return "LinearRingType";}
0534:         public String getQualifiedTypeDefName(){return prefix+":LinearRingType";}
0535:         public String getQualifiedTypeRefName(){return prefix+":linearRingType";}
0536:         public String getQualifiedTypeDefName(String prefix){
0537:         if(prefix!=null)
0538:         return prefix+":LinearRingType";
0539:         if(this.prefix!=null)
0540:         return this.prefix+":LinearRingType";
0541:         return null;
0542:         }
0543:         public String getQualifiedTypeRefName(String prefix){
0544:         if(prefix!=null)
0545:         return prefix+":linearRingType";
0546:         if(this.prefix!=null)
0547:         return this.prefix+":linearRingType";
0548:         return null;
0549:         }
0550:         public Class getJavaClass(){return LinearRing.class;}
0551:         public boolean isAbstract(){return false;}
0552:         }
0553:
0554:         class BoxElement extends NameSpaceElement{
0555:         public BoxElement(String prefix){super(prefix);}
0556:         public String getTypeDefName(){return "BoxType";}
0557:         public String getTypeRefName(){return "boxType";}
0558:         public String getQualifiedTypeDefName(){return prefix+":BoxType";}
0559:         public String getQualifiedTypeRefName(){return prefix+":bBoxType";}
0560:         public String getQualifiedTypeDefName(String prefix){
0561:         if(prefix!=null)
0562:         return prefix+":BoxType";
0563:         if(this.prefix!=null)
0564:         return this.prefix+":BoxType";
0565:         return null;
0566:         }
0567:         public String getQualifiedTypeRefName(String prefix){
0568:         if(prefix!=null)
0569:         return prefix+":boxType";
0570:         if(this.prefix!=null)
0571:         return this.prefix+":boxType";
0572:         return null;
0573:         }
0574:         public Class getJavaClass(){return Envelope.class;}
0575:         public boolean isAbstract(){return false;}
0576:         }
0577:
0578:         class PolygonElement extends NameSpaceElement{
0579:         public PolygonElement(String prefix){super(prefix);}
0580:         public String getTypeDefName(){return "PolygonType";}
0581:         public String getTypeRefName(){return "polygonType";}
0582:         public String getQualifiedTypeDefName(){return prefix+":PolygonType";}
0583:         public String getQualifiedTypeRefName(){return prefix+":pPolygonType";}
0584:         public String getQualifiedTypeDefName(String prefix){
0585:         if(prefix!=null)
0586:         return prefix+":PolygonType";
0587:         if(this.prefix!=null)
0588:         return this.prefix+":PolygonType";
0589:         return null;
0590:         }
0591:         public String getQualifiedTypeRefName(String prefix){
0592:         if(prefix!=null)
0593:         return prefix+":polygonType";
0594:         if(this.prefix!=null)
0595:         return this.prefix+":polygonType";
0596:         return null;
0597:         }
0598:         public Class getJavaClass(){return Polygon.class;}
0599:         public boolean isAbstract(){return false;}
0600:         }
0601:
0602:         class GeometryCollectionElement extends NameSpaceElement{
0603:         public GeometryCollectionElement(String prefix){super(prefix);}
0604:         public String getTypeDefName(){return "GeometryCollectionType";}
0605:         public String getTypeRefName(){return "GeometryCollectionType";}
0606:         public String getQualifiedTypeDefName(){return prefix+":GeometryCollectionType";}
0607:         public String getQualifiedTypeRefName(){return prefix+":geometryCollectionType";}
0608:         public String getQualifiedTypeDefName(String prefix){
0609:         if(prefix!=null)
0610:         return prefix+":GeometryCollectionType";
0611:         if(this.prefix!=null)
0612:         return this.prefix+":GeometryCollectionType";
0613:         return null;
0614:         }
0615:         public String getQualifiedTypeRefName(String prefix){
0616:         if(prefix!=null)
0617:         return prefix+":geometryCollectionType";
0618:         if(this.prefix!=null)
0619:         return this.prefix+":geometryCollectionType";
0620:         return null;
0621:         }
0622:         public Class getJavaClass(){return GeometryCollection.class;}
0623:         public boolean isAbstract(){return true;}
0624:         }
0625:
0626:         class MultiPointElement extends NameSpaceElement{
0627:         public MultiPointElement(String prefix){super(prefix);}
0628:         public String getTypeDefName(){return "MultiPointType";}
0629:         public String getTypeRefName(){return "multiPointType";}
0630:         public String getQualifiedTypeDefName(){return prefix+":MultiPointType";}
0631:         public String getQualifiedTypeRefName(){return prefix+":multiPointType";}
0632:         public String getQualifiedTypeDefName(String prefix){
0633:         if(prefix!=null)
0634:         return prefix+":MultiPointType";
0635:         if(this.prefix!=null)
0636:         return this.prefix+":MultiPointType";
0637:         return null;
0638:         }
0639:         public String getQualifiedTypeRefName(String prefix){
0640:         if(prefix!=null)
0641:         return prefix+":multiPointType";
0642:         if(this.prefix!=null)
0643:         return this.prefix+":multiPointType";
0644:         return null;
0645:         }
0646:         public Class getJavaClass(){return MultiPoint.class;}
0647:         public boolean isAbstract(){return false;}
0648:         }
0649:
0650:         class MultiLineStringElement extends NameSpaceElement{
0651:         public MultiLineStringElement(String prefix){super(prefix);}
0652:         public String getTypeDefName(){return "MultiLineStringType";}
0653:         public String getTypeRefName(){return "multiLineStringType";}
0654:         public String getQualifiedTypeDefName(){return prefix+":MultiLineStringType";}
0655:         public String getQualifiedTypeRefName(){return prefix+":multiLineStringType";}
0656:         public String getQualifiedTypeDefName(String prefix){
0657:         if(prefix!=null)
0658:         return prefix+":MultiLineStringType";
0659:         if(this.prefix!=null)
0660:         return this.prefix+":MultiLineStringType";
0661:         return null;
0662:         }
0663:         public String getQualifiedTypeRefName(String prefix){
0664:         if(prefix!=null)
0665:         return prefix+":multiLineStringType";
0666:         if(this.prefix!=null)
0667:         return this.prefix+":multiLineStringType";
0668:         return null;
0669:         }
0670:         public Class getJavaClass(){return MultiLineString.class;}
0671:         public boolean isAbstract(){return false;}
0672:         }
0673:
0674:         class MultiPolygonElement extends NameSpaceElement{
0675:         public MultiPolygonElement(String prefix){super(prefix);}
0676:         public String getTypeDefName(){return "MultiPolygonType";}
0677:         public String getTypeRefName(){return "multiPolygonType";}
0678:         public String getQualifiedTypeDefName(){return prefix+":MultiPolygonType";}
0679:         public String getQualifiedTypeRefName(){return prefix+":multiPolygonType";}
0680:         public String getQualifiedTypeDefName(String prefix){
0681:         if(prefix!=null)
0682:         return prefix+":MultiPolygonType";
0683:         if(this.prefix!=null)
0684:         return this.prefix+":MultiPolygonType";
0685:         return null;
0686:         }
0687:         public String getQualifiedTypeRefName(String prefix){
0688:         if(prefix!=null)
0689:         return prefix+":multiPolygonType";
0690:         if(this.prefix!=null)
0691:         return this.prefix+":multiPolygonType";
0692:         return null;
0693:         }
0694:         public Class getJavaClass(){return MultiPolygon.class;}
0695:         public boolean isAbstract(){return false;}
0696:         }
0697:
0698:         class CoordElement extends NameSpaceElement{
0699:         public CoordElement(String prefix){super(prefix);}
0700:         public String getTypeDefName(){return "CoordType";}
0701:         public String getTypeRefName(){return "coordType";}
0702:         public String getQualifiedTypeDefName(){return prefix+":CoordType";}
0703:         public String getQualifiedTypeRefName(){return prefix+":coordType";}
0704:         public String getQualifiedTypeDefName(String prefix){
0705:         if(prefix!=null)
0706:         return prefix+":CoordType";
0707:         if(this.prefix!=null)
0708:         return this.prefix+":CoordType";
0709:         return null;
0710:         }
0711:         public String getQualifiedTypeRefName(String prefix){
0712:         if(prefix!=null)
0713:         return prefix+":coordType";
0714:         if(this.prefix!=null)
0715:         return this.prefix+":coordType";
0716:         return null;
0717:         }
0718:         public Class getJavaClass(){return Coordinate.class;}
0719:         public boolean isAbstract(){return false;}
0720:         }
0721:
0722:         class CoordinatesElement extends NameSpaceElement{
0723:         public CoordinatesElement(String prefix){super(prefix);}
0724:         public String getTypeDefName(){return "CoordinatesType";}
0725:         public String getTypeRefName(){return "coordinatesType";}
0726:         public String getQualifiedTypeDefName(){return prefix+":CoordinatesType";}
0727:         public String getQualifiedTypeRefName(){return prefix+":coordinatesType";}
0728:         public String getQualifiedTypeDefName(String prefix){
0729:         if(prefix!=null)
0730:         return prefix+":CoordinatesType";
0731:         if(this.prefix!=null)
0732:         return this.prefix+":CoordinatesType";
0733:         return null;
0734:         }
0735:         public String getQualifiedTypeRefName(String prefix){
0736:         if(prefix!=null)
0737:         return prefix+":coordinatesType";
0738:         if(this.prefix!=null)
0739:         return this.prefix+":coordinatesType";
0740:         return null;
0741:         }
0742:         public Class getJavaClass(){return Coordinate.class;}
0743:         public boolean isAbstract(){return false;}
0744:         }*/
0745:        class PointPropertyElement extends NameSpaceElement {
0746:            public PointPropertyElement(String prefix) {
0747:                super (prefix);
0748:            }
0749:
0750:            public String getTypeDefName() {
0751:                return "PointPropertyType";
0752:            }
0753:
0754:            public String getTypeRefName() {
0755:                return "pointProperty";
0756:            }
0757:
0758:            public String getQualifiedTypeDefName() {
0759:                return prefix + ":PointPropertyType";
0760:            }
0761:
0762:            public String getQualifiedTypeRefName() {
0763:                return prefix + ":pointProperty";
0764:            }
0765:
0766:            public String getQualifiedTypeDefName(String prefix) {
0767:                if (prefix != null) {
0768:                    return prefix + ":PointPropertyType";
0769:                }
0770:
0771:                if (this .prefix != null) {
0772:                    return this .prefix + ":PointPropertyType";
0773:                }
0774:
0775:                return null;
0776:            }
0777:
0778:            public String getQualifiedTypeRefName(String prefix) {
0779:                if (prefix != null) {
0780:                    return prefix + ":pointProperty";
0781:                }
0782:
0783:                if (this .prefix != null) {
0784:                    return this .prefix + ":pointProperty";
0785:                }
0786:
0787:                return null;
0788:            }
0789:
0790:            public Class getJavaClass() {
0791:                return Point.class;
0792:            }
0793:
0794:            public boolean isAbstract() {
0795:                return false;
0796:            }
0797:
0798:            public boolean isDefault() {
0799:                return true;
0800:            }
0801:        }
0802:
0803:        class PolygonPropertyElement extends NameSpaceElement {
0804:            public PolygonPropertyElement(String prefix) {
0805:                super (prefix);
0806:            }
0807:
0808:            public String getTypeDefName() {
0809:                return "PolygonPropertyType";
0810:            }
0811:
0812:            public String getTypeRefName() {
0813:                return "polygonProperty";
0814:            }
0815:
0816:            public String getQualifiedTypeDefName() {
0817:                return prefix + ":PolygonPropertyType";
0818:            }
0819:
0820:            public String getQualifiedTypeRefName() {
0821:                return prefix + ":polygonProperty";
0822:            }
0823:
0824:            public String getQualifiedTypeDefName(String prefix) {
0825:                if (prefix != null) {
0826:                    return prefix + ":PolygonPropertyType";
0827:                }
0828:
0829:                if (this .prefix != null) {
0830:                    return this .prefix + ":PolygonPropertyType";
0831:                }
0832:
0833:                return null;
0834:            }
0835:
0836:            public String getQualifiedTypeRefName(String prefix) {
0837:                if (prefix != null) {
0838:                    return prefix + ":polygonProperty";
0839:                }
0840:
0841:                if (this .prefix != null) {
0842:                    return this .prefix + ":polygonProperty";
0843:                }
0844:
0845:                return null;
0846:            }
0847:
0848:            public boolean isAbstract() {
0849:                return false;
0850:            }
0851:
0852:            public Class getJavaClass() {
0853:                return Polygon.class;
0854:            }
0855:
0856:            public boolean isDefault() {
0857:                return true;
0858:            }
0859:        }
0860:
0861:        class LineStringPropertyElement extends NameSpaceElement {
0862:            public LineStringPropertyElement(String prefix) {
0863:                super (prefix);
0864:            }
0865:
0866:            public String getTypeDefName() {
0867:                return "LineStringPropertyType";
0868:            }
0869:
0870:            public String getTypeRefName() {
0871:                return "lineStringProperty";
0872:            }
0873:
0874:            public String getQualifiedTypeDefName() {
0875:                return prefix + ":LineStringPropertyType";
0876:            }
0877:
0878:            public String getQualifiedTypeRefName() {
0879:                return prefix + ":lineStringProperty";
0880:            }
0881:
0882:            public String getQualifiedTypeDefName(String prefix) {
0883:                if (prefix != null) {
0884:                    return prefix + ":LineStringPropertyType";
0885:                }
0886:
0887:                if (this .prefix != null) {
0888:                    return this .prefix + ":LineStringPropertyType";
0889:                }
0890:
0891:                return null;
0892:            }
0893:
0894:            public String getQualifiedTypeRefName(String prefix) {
0895:                if (prefix != null) {
0896:                    return prefix + ":lineStringProperty";
0897:                }
0898:
0899:                if (this .prefix != null) {
0900:                    return this .prefix + ":lineStringProperty";
0901:                }
0902:
0903:                return null;
0904:            }
0905:
0906:            public Class getJavaClass() {
0907:                return LineString.class;
0908:            }
0909:
0910:            public boolean isAbstract() {
0911:                return false;
0912:            }
0913:
0914:            public boolean isDefault() {
0915:                return true;
0916:            }
0917:        }
0918:
0919:        class MultiPointPropertyElement extends NameSpaceElement {
0920:            public MultiPointPropertyElement(String prefix) {
0921:                super (prefix);
0922:            }
0923:
0924:            public String getTypeDefName() {
0925:                return "MultiPointPropertyType";
0926:            }
0927:
0928:            public String getTypeRefName() {
0929:                return "multiPointProperty";
0930:            }
0931:
0932:            public String getQualifiedTypeDefName() {
0933:                return prefix + ":MultiPointPropertyType";
0934:            }
0935:
0936:            public String getQualifiedTypeRefName() {
0937:                return prefix + ":multiPointProperty";
0938:            }
0939:
0940:            public String getQualifiedTypeDefName(String prefix) {
0941:                if (prefix != null) {
0942:                    return prefix + ":MultiPointPropertyType";
0943:                }
0944:
0945:                if (this .prefix != null) {
0946:                    return this .prefix + ":MultiPointPropertyType";
0947:                }
0948:
0949:                return null;
0950:            }
0951:
0952:            public String getQualifiedTypeRefName(String prefix) {
0953:                if (prefix != null) {
0954:                    return prefix + ":multiPointProperty";
0955:                }
0956:
0957:                if (this .prefix != null) {
0958:                    return this .prefix + ":multiPointProperty";
0959:                }
0960:
0961:                return null;
0962:            }
0963:
0964:            public Class getJavaClass() {
0965:                return MultiPoint.class;
0966:            }
0967:
0968:            public boolean isAbstract() {
0969:                return false;
0970:            }
0971:
0972:            public boolean isDefault() {
0973:                return true;
0974:            }
0975:        }
0976:
0977:        class MultiLineStringPropertyElement extends NameSpaceElement {
0978:            public MultiLineStringPropertyElement(String prefix) {
0979:                super (prefix);
0980:            }
0981:
0982:            public String getTypeDefName() {
0983:                return "MultiLineStringPropertyType";
0984:            }
0985:
0986:            public String getTypeRefName() {
0987:                return "multiLineStringProperty";
0988:            }
0989:
0990:            public String getQualifiedTypeDefName() {
0991:                return prefix + ":MultiLineStringPropertyType";
0992:            }
0993:
0994:            public String getQualifiedTypeRefName() {
0995:                return prefix + ":multiLineStringProperty";
0996:            }
0997:
0998:            public String getQualifiedTypeDefName(String prefix) {
0999:                if (prefix != null) {
1000:                    return prefix + ":MultiLineStringPropertyType";
1001:                }
1002:
1003:                if (this .prefix != null) {
1004:                    return this .prefix + ":MultiLineStringPropertyType";
1005:                }
1006:
1007:                return null;
1008:            }
1009:
1010:            public String getQualifiedTypeRefName(String prefix) {
1011:                if (prefix != null) {
1012:                    return prefix + ":multiLineStringProperty";
1013:                }
1014:
1015:                if (this .prefix != null) {
1016:                    return this .prefix + ":multiLineStringProperty";
1017:                }
1018:
1019:                return null;
1020:            }
1021:
1022:            public Class getJavaClass() {
1023:                return MultiLineString.class;
1024:            }
1025:
1026:            public boolean isAbstract() {
1027:                return false;
1028:            }
1029:
1030:            public boolean isDefault() {
1031:                return true;
1032:            }
1033:        }
1034:
1035:        class MultiPolygonPropertyElement extends NameSpaceElement {
1036:            public MultiPolygonPropertyElement(String prefix) {
1037:                super (prefix);
1038:            }
1039:
1040:            public String getTypeDefName() {
1041:                return "MultiPolygonPropertyType";
1042:            }
1043:
1044:            public String getTypeRefName() {
1045:                return "multiPolygonProperty";
1046:            }
1047:
1048:            public String getQualifiedTypeDefName() {
1049:                return prefix + ":MultiPolygonPropertyType";
1050:            }
1051:
1052:            public String getQualifiedTypeRefName() {
1053:                return prefix + ":multiPolygonProperty";
1054:            }
1055:
1056:            public String getQualifiedTypeDefName(String prefix) {
1057:                if (prefix != null) {
1058:                    return prefix + ":MultiPolygonPropertyType";
1059:                }
1060:
1061:                if (this .prefix != null) {
1062:                    return this .prefix + ":MultiPolygonPropertyType";
1063:                }
1064:
1065:                return null;
1066:            }
1067:
1068:            public String getQualifiedTypeRefName(String prefix) {
1069:                if (prefix != null) {
1070:                    return prefix + ":multiPolygonProperty";
1071:                }
1072:
1073:                if (this .prefix != null) {
1074:                    return this .prefix + ":multiPolygonProperty";
1075:                }
1076:
1077:                return null;
1078:            }
1079:
1080:            public Class getJavaClass() {
1081:                return MultiPolygon.class;
1082:            }
1083:
1084:            public boolean isAbstract() {
1085:                return false;
1086:            }
1087:
1088:            public boolean isDefault() {
1089:                return true;
1090:            }
1091:        }
1092:
1093:        class MultiGeometryPropertyElement extends NameSpaceElement {
1094:            public MultiGeometryPropertyElement(String prefix) {
1095:                super (prefix);
1096:            }
1097:
1098:            public String getTypeDefName() {
1099:                return "MultiGeometryPropertyType";
1100:            }
1101:
1102:            public String getTypeRefName() {
1103:                return "multiGeometryProperty";
1104:            }
1105:
1106:            public String getQualifiedTypeDefName() {
1107:                return prefix + ":MultiGeometryPropertyType";
1108:            }
1109:
1110:            public String getQualifiedTypeRefName() {
1111:                return prefix + ":multiGeometryProperty";
1112:            }
1113:
1114:            public String getQualifiedTypeDefName(String prefix) {
1115:                if (prefix != null) {
1116:                    return prefix + ":MultiGeometryPropertyType";
1117:                }
1118:
1119:                if (this .prefix != null) {
1120:                    return this .prefix + ":MultiGeometryPropertyType";
1121:                }
1122:
1123:                return null;
1124:            }
1125:
1126:            public String getQualifiedTypeRefName(String prefix) {
1127:                if (prefix != null) {
1128:                    return prefix + ":multiGeometryProperty";
1129:                }
1130:
1131:                if (this .prefix != null) {
1132:                    return this .prefix + ":multiGeometryProperty";
1133:                }
1134:
1135:                return null;
1136:            }
1137:
1138:            public Class getJavaClass() {
1139:                return GeometryCollection.class;
1140:            }
1141:
1142:            public boolean isAbstract() {
1143:                return false;
1144:            }
1145:
1146:            public boolean isDefault() {
1147:                return true;
1148:            }
1149:        }
1150:
1151:        class NullElement extends NameSpaceElement {
1152:            public NullElement(String prefix) {
1153:                super (prefix);
1154:            }
1155:
1156:            public String getTypeDefName() {
1157:                return "NullType";
1158:            }
1159:
1160:            public String getTypeRefName() {
1161:                return "null";
1162:            }
1163:
1164:            public String getQualifiedTypeDefName() {
1165:                return prefix + ":NullType";
1166:            }
1167:
1168:            public String getQualifiedTypeRefName() {
1169:                return prefix + ":null";
1170:            }
1171:
1172:            public String getQualifiedTypeDefName(String prefix) {
1173:                if (prefix != null) {
1174:                    return prefix + ":NullType";
1175:                }
1176:
1177:                if (this .prefix != null) {
1178:                    return this .prefix + ":NullType";
1179:                }
1180:
1181:                return null;
1182:            }
1183:
1184:            public String getQualifiedTypeRefName(String prefix) {
1185:                if (prefix != null) {
1186:                    return prefix + ":null";
1187:                }
1188:
1189:                if (this .prefix != null) {
1190:                    return this .prefix + ":null";
1191:                }
1192:
1193:                return null;
1194:            }
1195:
1196:            public boolean isAbstract() {
1197:                return false;
1198:            }
1199:
1200:            public Class getJavaClass() {
1201:                return null;
1202:            }
1203:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.