Java Doc for AttributeTypeInfoConfig.java in  » GIS » GeoServer » org » vfny » geoserver » config » 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.vfny.geoserver.config 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.vfny.geoserver.config.AttributeTypeInfoConfig

AttributeTypeInfoConfig
public class AttributeTypeInfoConfig (Code)
Allows editing of AttributeTypeInfo.

Represents most of a xs:element for an XMLSchema.

we have three types of information to store, Schema defined types, references and extentions on types. If the type represented is either a reference or a Schema defined type then isRef should be true.

Non-complex types are of the form:

  • {element name='test' type='xs:string'/}
  • {element name='test' type='gml:PointType'/}

These cases have their type name stored in this.type

For complex types such as:


 {element name='test'
 {xs:complexContent}
 {xs:extension base="gml:AbstractFeatureType"}
 {xs:sequence}
 {xs:element name="id"
 type="xs:string"
 minOccurs="0"/}
 {xs:element ref="gml:pointProperty"
 minOccurs="0"/}
 {/xs:sequence}
 {/xs:extension}
 {/xs:complexContent}
 {/element}
 
The type will be equals to "(xml fragment)" and fragment contains a similar to above.

minOccurs, maxOccurs and nillable are all attributes for all cases. There is more stuff in the XMLSchema spec but we don't care to parse it out right now.


author:
   dzwiers, Refractions Research, Inc.
version:
   $Id: AttributeTypeInfoConfig.java 6326 2007-03-15 18:36:40Z jdeolive $


Field Summary
final public static  StringTYPE_FRAGMENT
    
public  Stringtype
     Element type, a well-known gml or xs type or TYPE_FRAGMENT.

Constructor Summary
public  AttributeTypeInfoConfig(AttributeType attributeType)
     Set up AttributeTypeInfo based on attributeType.

Set up is determined by the AttributeTypeInfoDTO( AttributeType ) constructor.

public  AttributeTypeInfoConfig(AttributeTypeInfoDTO dto)
     Set up AttributeTypeInfo based on Data Transfer Object.

Method Summary
public  StringgetFragment()
     XML Fragment used to define stuff.
public  intgetMaxOccurs()
     getMaxOccurs purpose.
public  intgetMinOccurs()
     getMinOccurs purpose.
public  StringgetName()
     getName purpose.
public  StringgetType()
     Element type, a well-known gml or xs type or TYPE_FRAGMENT.
public  booleanisNillable()
     Indicate if the attribute is allowed to be null.

Nillable is often used to indicate that an attribute is optional.

public  voidsetFragment(String fragment)
     XML Fragment used to define stuff.
public  voidsetMaxOccurs(int max)
     Maxmium number of occurances of this attribute in a feature.

For Features based on the Simple Feature Specification this should be a value of 1.

public  voidsetMinOccurs(int min)
     Minimum number of occrances of this attribute in a feature.

For Features based on the Simple Feture Specification this should be a value of 1.

public  voidsetNillable(boolean nillable)
     Indicate if the attribute is allowed to be null.

Nillable is often used to indicate that an attribute is optional.

public  voidsetType(String type)
     Element type, a well-known gml or xs type or TYPE_FRAGMENT.

If getType is equals to TYPE_FRAGMENT please consult getFragment() to examin the actual user's definition.

public  AttributeTypeInfoDTOtoDTO()
    

Field Detail
TYPE_FRAGMENT
final public static String TYPE_FRAGMENT(Code)
Value of getType() used to indicate that fragement is in use



type
public String type(Code)
Element type, a well-known gml or xs type or TYPE_FRAGMENT.

If getType is equals to TYPE_FRAGMENT please consult getFragment() to examin the actual user's definition.

Other than that getType should be one of the constants defined by GMLUtils.





Constructor Detail
AttributeTypeInfoConfig
public AttributeTypeInfoConfig(AttributeType attributeType)(Code)
Set up AttributeTypeInfo based on attributeType.

Set up is determined by the AttributeTypeInfoDTO( AttributeType ) constructor. This allows all Schema generation to be acomplished in the same palce.


Parameters:
  attributeType - GeoTools2 attributeType used for configuration



AttributeTypeInfoConfig
public AttributeTypeInfoConfig(AttributeTypeInfoDTO dto)(Code)
Set up AttributeTypeInfo based on Data Transfer Object.
Parameters:
  dto - AttributeTypeInfoDTO used for configuration




Method Detail
getFragment
public String getFragment()(Code)
XML Fragment used to define stuff.

This property is only used with getType() is equals to "(xml fragment)".

baseGMLTypes can only be used in your XML fragment.

Returns the fragment.



getMaxOccurs
public int getMaxOccurs()(Code)
getMaxOccurs purpose.

The max number of occurences for this element.

max number of occurences



getMinOccurs
public int getMinOccurs()(Code)
getMinOccurs purpose.

the min number of occurences for this element

min number of occurences



getName
public String getName()(Code)
getName purpose.

returns the element name

the element name



getType
public String getType()(Code)
Element type, a well-known gml or xs type or TYPE_FRAGMENT.

If getType is equals to TYPE_FRAGMENT please consult getFragment() to examine the actual user's definition.

Other than that getType should be one of the constants defined by GMLUtils.

The element, or TYPE_FRAGMENT



isNillable
public boolean isNillable()(Code)
Indicate if the attribute is allowed to be null.

Nillable is often used to indicate that an attribute is optional. The use of minOccurs and maxOccurs may be a more correct way to indicate optional attribtues.

true to indicate attribute is alloed to benull
See Also:   AttributeTypeInfoDTO.setMinOccurs
See Also:   AttributeTypeInfoDTO.setMaxOccurs



setFragment
public void setFragment(String fragment)(Code)
XML Fragment used to define stuff.

This property is only used with getType() is equals to "(xml fragment)".

baseGMLTypes can only be used in your XML fragment.


Parameters:
  fragment - The fragment to set.



setMaxOccurs
public void setMaxOccurs(int max)(Code)
Maxmium number of occurances of this attribute in a feature.

For Features based on the Simple Feature Specification this should be a value of 1. If the attribute is optional it should still be 1, although often optional is represented by allowing the Attribute to be nillable.

Common Min..Max Occurs values:

  • 0..1: attribute is optional
  • 1..1: attribute is required (usual for Simple Features)
  • 0..N: attribute forms a list that may be empty

Parameters:
  max - The maximum number of occurances
See Also:   AttributeTypeInfoDTO.isNillable



setMinOccurs
public void setMinOccurs(int min)(Code)
Minimum number of occrances of this attribute in a feature.

For Features based on the Simple Feture Specification this should be a value of 1. If the attribute is optional is should be 0, although often optional is represented by allowing the attribute to be nillable.

Common Min..Max Occurs values:
  • 0..1: attribute is optional
  • 1..1: attribute is required (usual for Simple Features)
  • 0..N: attribute forms a list that may be empty

Parameters:
  min - The minimum number of occurances
See Also:   AttributeTypeInfoDTO.isNillable



setNillable
public void setNillable(boolean nillable)(Code)
Indicate if the attribute is allowed to be null.

Nillable is often used to indicate that an attribute is optional. The use of minOccurs and maxOccurs may be a more correct way to indicate optional attribtues.


Parameters:
  nillable - true to indicate attribute is alloed to benull
See Also:   AttributeTypeInfoDTO.setMinOccurs
See Also:   AttributeTypeInfoDTO.setMaxOccurs



setType
public void setType(String type)(Code)
Element type, a well-known gml or xs type or TYPE_FRAGMENT.

If getType is equals to TYPE_FRAGMENT please consult getFragment() to examin the actual user's definition.
Other than that getType should be one of the constants defined by GMLUtils.


Parameters:
  type - DOCUMENT ME!



toDTO
public AttributeTypeInfoDTO toDTO()(Code)



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.