Java Doc for AttributeBuilder.java in  » GIS » GeoTools-2.4.1 » org » geotools » feature » iso » 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 » GeoTools 2.4.1 » org.geotools.feature.iso 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.geotools.feature.iso.AttributeBuilder

AttributeBuilder
public class AttributeBuilder (Code)
Builder for attributes.
author:
   Justin Deoliveira, The Open Planning Project, jdeolive@openplans.org


Field Summary
 FeatureFactoryattributeFactory
    
 CoordinateReferenceSystemcrs
     The crs of the attribute.
 ObjectdefaultGeometry
     Default geometry of the feature.
 AttributeDescriptordescriptor
     Descriptor of complex attribute being built.
 Stringnamespace
     Namespace context.
 Listproperties
    
 AttributeTypetype
     Type of complex attribute being built.

Constructor Summary
public  AttributeBuilder(FeatureFactory attributeFactory)
    

Method Summary
public  Attributeadd(Object value, String name)
     Adds an attribute to the complex attribute being built.
public  Attributeadd(Object value, String name, String namespaceURI)
     Adds an attribute to the complex attribute being built.
public  Attributeadd(String id, Object value, Name name, AttributeType type)
     Adds an attribute to the complex attribute being built overriding the type of the declared attribute descriptor by a subtype of it.
public  Attributeadd(Object value, Name name)
     Adds an attribute to the complex attribute being built.
public  Attributeadd(String id, Object value, String name)
     Adds an attribute to the complex attribute being built.
public  Attributeadd(String id, Object value, String name, String namespaceURI)
     Adds an attribute to the complex attribute being built.
public  Attributeadd(String id, Object value, Name name)
     Adds an attribute to the complex attribute being built.
public  voidassociate(Attribute value, String name)
     Adds an association to the complex attribute being built.
public  voidassociate(Attribute attribute, String name, String namespaceURI)
     Adds an association to the complex attribute being built.
public  voidassociate(Attribute value, Name name)
     Adds an association to the complex attribute being built.
protected  AssociationDescriptorassociationDescriptor(Name name)
    
protected  AttributeDescriptorattributeDescriptor(Name name)
    
protected  AttributeDescriptorattributeDescriptor(Name name, AttributeType actualType)
    
public  Attributebuild()
     Builds the attribute.
public  Attributebuild(String id)
     Builds the attribute.

The class of the attribute built is determined from its type set with AttributeBuilder.setType(AttributeType) .


Parameters:
  id - The id of the attribute, or null.
protected  Attributecreate(Object value, AttributeType type, AttributeDescriptor descriptor, String id)
     Factors out attribute creation code, needs to be called with either one of type or descriptor null.
public  CoordinateReferenceSystemgetCRS()
    
public  ObjectgetDefaultGeometry()
    
public  FeatureFactorygetFeatureFactory()
     Returns the underlying attribute factory.
public  StringgetNamespaceURI()
     This namespace will be used when constructing attribute names.
public  AttributeTypegetType()
    
public  voidinit()
     Initializes the builder to its initial state, the same state it is in directly after being instantiated.
public  voidinit(Attribute attribute)
     Initializes the state of the builder based on a previously built attribute.
protected  Listproperties()
     Convenience accessor for properties list which does the null check.
public  voidsetCRS(CoordinateReferenceSystem crs)
     Sets the coordinate reference system of the built feature.
public  voidsetDefaultGeometry(Object defaultGeometry)
     Sets the default geometry of the feature.
public  voidsetDescriptor(AttributeDescriptor descriptor)
     Sets the descriptor of the attribute being built.
public  voidsetFeatureFactory(FeatureFactory attributeFactory)
     Sets the underlying attribute factory.
public  voidsetNamespaceURI(String namespace)
     This namespace will be used when constructing attribute names.
public  voidsetType(AttributeType type)
     Sets the type of the attribute being built.

Field Detail
attributeFactory
FeatureFactory attributeFactory(Code)
Factory used to create attributes



crs
CoordinateReferenceSystem crs(Code)
The crs of the attribute.



defaultGeometry
Object defaultGeometry(Code)
Default geometry of the feature.



descriptor
AttributeDescriptor descriptor(Code)
Descriptor of complex attribute being built. This field is mutually exclusive with AttributeBuilder.type



namespace
String namespace(Code)
Namespace context.



properties
List properties(Code)
Contained properties (associations + attributes)



type
AttributeType type(Code)
Type of complex attribute being built. This field is mutually exclusive with AttributeBuilder.descriptor




Constructor Detail
AttributeBuilder
public AttributeBuilder(FeatureFactory attributeFactory)(Code)




Method Detail
add
public Attribute add(Object value, String name)(Code)
Adds an attribute to the complex attribute being built.

This method uses the result of AttributeBuilder.getNamespaceURI() to build a qualified attribute name.

This method uses the type supplied in AttributeBuilder.setType(AttributeType) in order to determine the attribute type.


Parameters:
  name - The name of the attribute.
Parameters:
  value - The value of the attribute.



add
public Attribute add(Object value, String name, String namespaceURI)(Code)
Adds an attribute to the complex attribute being built.

This method uses the type supplied in AttributeBuilder.setType(AttributeType) in order to determine the attribute type.


Parameters:
  value - The value of the attribute.
Parameters:
  name - The name of the attribute.
Parameters:
  namespaceURI - The namespace of the attribute.



add
public Attribute add(String id, Object value, Name name, AttributeType type)(Code)
Adds an attribute to the complex attribute being built overriding the type of the declared attribute descriptor by a subtype of it.

This method uses the type supplied in AttributeBuilder.setType(AttributeType) in order to determine the attribute type.


Parameters:
  id - the attribtue id
Parameters:
  value - The value of the attribute.
Parameters:
  name - The name of the attribute.
Parameters:
  type - the actual type of the attribute, which might be the same asthe declared type for the given AttributeDescriptor or aderived type.



add
public Attribute add(Object value, Name name)(Code)
Adds an attribute to the complex attribute being built.

This method uses the type supplied in AttributeBuilder.setType(AttributeType) in order to determine the attribute type.


Parameters:
  name - The name of the attribute.
Parameters:
  value - The value of the attribute.



add
public Attribute add(String id, Object value, String name)(Code)
Adds an attribute to the complex attribute being built.

The result of AttributeBuilder.getNamespaceURI() to build a qualified attribute name.

This method uses the type supplied in AttributeBuilder.setType(AttributeType) in order to determine the attribute type.


Parameters:
  id - The id of the attribute.
Parameters:
  name - The name of the attribute.
Parameters:
  value - The value of the attribute.



add
public Attribute add(String id, Object value, String name, String namespaceURI)(Code)
Adds an attribute to the complex attribute being built.

This method uses the type supplied in AttributeBuilder.setType(AttributeType) in order to determine the attribute type.


Parameters:
  id - The id of the attribute.
Parameters:
  value - The value of the attribute.
Parameters:
  name - The name of the attribute.
Parameters:
  namespaceURI - The namespace of the attribute.



add
public Attribute add(String id, Object value, Name name)(Code)
Adds an attribute to the complex attribute being built.

This method uses the type supplied in AttributeBuilder.setType(AttributeType) in order to determine the attribute type.


Parameters:
  id - The id of the attribute.
Parameters:
  name - The name of the attribute.
Parameters:
  value - The value of the attribute.



associate
public void associate(Attribute value, String name)(Code)
Adds an association to the complex attribute being built.

This method uses the result of AttributeBuilder.getNamespaceURI() to build a qualified attribute name.

This method uses the type supplied in AttributeBuilder.setType(AttributeType) in order to determine the association type.


Parameters:
  value - The value of the association, an attribute.
Parameters:
  name - The name of the association.



associate
public void associate(Attribute attribute, String name, String namespaceURI)(Code)
Adds an association to the complex attribute being built.

This method uses the type supplied in AttributeBuilder.setType(AttributeType) in order to determine the association type.


Parameters:
  value - The value of the association, an attribute.
Parameters:
  name - The name of the association.
Parameters:
  namespaceURI - The namespace of the association



associate
public void associate(Attribute value, Name name)(Code)
Adds an association to the complex attribute being built.

This method uses the type supplied in AttributeBuilder.setType(AttributeType) in order to determine the association type.


Parameters:
  value - The value of the association, an attribute.
Parameters:
  name - The name of the association.
Parameters:
  namespaceURI - The namespace of the association



associationDescriptor
protected AssociationDescriptor associationDescriptor(Name name)(Code)



attributeDescriptor
protected AttributeDescriptor attributeDescriptor(Name name)(Code)



attributeDescriptor
protected AttributeDescriptor attributeDescriptor(Name name, AttributeType actualType)(Code)



build
public Attribute build()(Code)
Builds the attribute.

The class of the attribute built is determined from its type set with AttributeBuilder.setType(AttributeType) .

The build attribute.



build
public Attribute build(String id)(Code)
Builds the attribute.

The class of the attribute built is determined from its type set with AttributeBuilder.setType(AttributeType) .


Parameters:
  id - The id of the attribute, or null. The build attribute.



create
protected Attribute create(Object value, AttributeType type, AttributeDescriptor descriptor, String id)(Code)
Factors out attribute creation code, needs to be called with either one of type or descriptor null.



getCRS
public CoordinateReferenceSystem getCRS()(Code)
The coordinate reference system of the feature, or null if notset.



getDefaultGeometry
public Object getDefaultGeometry()(Code)
The default geometry of the feature.



getFeatureFactory
public FeatureFactory getFeatureFactory()(Code)
Returns the underlying attribute factory.



getNamespaceURI
public String getNamespaceURI()(Code)
This namespace will be used when constructing attribute names. namespace will be used when constructing attribute names.



getType
public AttributeType getType()(Code)
The type of the attribute being built.



init
public void init()(Code)
Initializes the builder to its initial state, the same state it is in directly after being instantiated.



init
public void init(Attribute attribute)(Code)
Initializes the state of the builder based on a previously built attribute.

This method is useful when copying another attribute.




properties
protected List properties()(Code)
Convenience accessor for properties list which does the null check.



setCRS
public void setCRS(CoordinateReferenceSystem crs)(Code)
Sets the coordinate reference system of the built feature.



setDefaultGeometry
public void setDefaultGeometry(Object defaultGeometry)(Code)
Sets the default geometry of the feature.



setDescriptor
public void setDescriptor(AttributeDescriptor descriptor)(Code)
Sets the descriptor of the attribute being built.

When building a complex attribute, this type is used a reference to obtain the types of contained attributes.




setFeatureFactory
public void setFeatureFactory(FeatureFactory attributeFactory)(Code)
Sets the underlying attribute factory.



setNamespaceURI
public void setNamespaceURI(String namespace)(Code)
This namespace will be used when constructing attribute names.



setType
public void setType(AttributeType type)(Code)
Sets the type of the attribute being built.

When building a complex attribute, this type is used a reference to obtain the types of contained attributes.




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.