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


java.lang.Object
   org.geotools.feature.DefaultAttributeType

All known Subclasses:   org.geotools.feature.type.TemporalAttributeType,  org.geotools.feature.MultiAttributeType,  org.geotools.feature.type.TextualAttributeType,  org.geotools.xml.gml.ChoiceAttributeTypeImpl,  org.geotools.feature.type.NumericAttributeType,  org.geotools.feature.type.GeometricAttributeType,
DefaultAttributeType
public class DefaultAttributeType implements AttributeType(Code)
Simple, immutable class to store attributes. This class should be sufficient for all simple (ie. non-schema) attribute implementations of this interface.
author:
   Rob Hranac, VFNY
author:
   Chris Holmes, TOPP
author:
   Ian Schneider
version:
   $Id: DefaultAttributeType.java 27881 2007-11-13 16:29:42Z aaime $


Field Summary
protected  ObjectdefaultValue
    
final protected  intminmax
    
final protected  Stringname
     Name of this attribute.
final protected  booleannillable
    
final protected  Classtype
     Class type of this attribute.

Constructor Summary
protected  DefaultAttributeType(String name, Class type, boolean nillable, int min, int max, Object defaultValue, Filter f)
     Constructor with name and type.
protected  DefaultAttributeType(String name, Class type, boolean nillable, int min, int max, Object defaultValue)
    
protected  DefaultAttributeType(String name, Class type, boolean nillable, Object defaultValue)
    
protected  DefaultAttributeType(AttributeType copy)
    

Method Summary
public  ObjectcreateDefaultValue()
    
public  Objectduplicate(Object src)
     Return a safe Object copy.
public  booleanequals(Object other)
     Override of equals.
Parameters:
  other - the object to be tested for equality.
public  ClassgetBinding()
    
public  StringgetLocalName()
    
public  intgetMaxOccurs()
     Defaults are flat, always return 1.
public  intgetMinOccurs()
     Defaults are flat, always return 1.
final public  StringgetName()
     Gets the name of this attribute.
public  FiltergetRestriction()
    
final public  ClassgetType()
     Gets the type of this attribute.
public  inthashCode()
     Override of hashCode.
public  booleanisGeometry()
     Returns whether the attribute is a geometry.
public  booleanisNillable()
     Returns whether nulls are allowed for this attribute.
public  Objectparse(Object value)
     Allows this AttributeType to convert an argument to its prefered storage type.
public  StringtoString()
     Gets a representation of this object as a string.
public  voidvalidate(Object attribute)
     Whether the tested object passes the validity constraints of this AttributeType.

Field Detail
defaultValue
protected Object defaultValue(Code)



minmax
final protected int minmax(Code)
min/max



name
final protected String name(Code)
Name of this attribute.



nillable
final protected boolean nillable(Code)
Indicates if nulls are allowed for this attribute



type
final protected Class type(Code)
Class type of this attribute.




Constructor Detail
DefaultAttributeType
protected DefaultAttributeType(String name, Class type, boolean nillable, int min, int max, Object defaultValue, Filter f)(Code)
Constructor with name and type.
Parameters:
  name - Name of this attribute.
Parameters:
  type - Class type of this attribute.
Parameters:
  nillable - If nulls are allowed for the attribute of this type.
Parameters:
  min -
Parameters:
  max -
Parameters:
  defaultValue - default value when none is suppled
Parameters:
  f -



DefaultAttributeType
protected DefaultAttributeType(String name, Class type, boolean nillable, int min, int max, Object defaultValue)(Code)



DefaultAttributeType
protected DefaultAttributeType(String name, Class type, boolean nillable, Object defaultValue)(Code)



DefaultAttributeType
protected DefaultAttributeType(AttributeType copy)(Code)




Method Detail
createDefaultValue
public Object createDefaultValue()(Code)



duplicate
public Object duplicate(Object src) throws IllegalAttributeException(Code)
Return a safe Object copy.

Obtain a duplicate Object if the object is mutable, or the same Object reference if it is immutable.

A duplicated Object if the type is mutable or the same Objectif it is immutable or null if the passed Object is null.
throws:
  IllegalAttributeException - if the Object cannot be duplicated.



equals
public boolean equals(Object other)(Code)
Override of equals.
Parameters:
  other - the object to be tested for equality. whether other is equal to this attribute Type.



getBinding
public Class getBinding()(Code)



getLocalName
public String getLocalName()(Code)



getMaxOccurs
public int getMaxOccurs()(Code)
Defaults are flat, always return 1.



getMinOccurs
public int getMinOccurs()(Code)
Defaults are flat, always return 1.



getName
final public String getName()(Code)
Gets the name of this attribute. The name of this attribute.



getRestriction
public Filter getRestriction()(Code)



getType
final public Class getType()(Code)
Gets the type of this attribute. All attributes that are assigned to this AttributeType must be an instance of this class. Subclasses are allowed as well. The class that the attribute must match to be valid for thisAttributeType.



hashCode
public int hashCode()(Code)
Override of hashCode. hashCode for this object.



isGeometry
public boolean isGeometry()(Code)
Returns whether the attribute is a geometry. true if the attribute's type is a geometry.



isNillable
public boolean isNillable()(Code)
Returns whether nulls are allowed for this attribute. true if nulls are permitted, false otherwise.



parse
public Object parse(Object value) throws IllegalArgumentException(Code)
Allows this AttributeType to convert an argument to its prefered storage type. If no parsing is possible, returns the original value. If a parse is attempted, yet fails (i.e. a poor decimal format) throw the Exception. This is mostly for use internally in Features, but implementors should simply follow the rules to be safe.
Parameters:
  value - the object to attempt parsing of. value converted to the preferred storage of thisAttributeType. If no parsing was possible thenthe same object is returned.
throws:
  IllegalArgumentException - if parsing is attempted and isunsuccessful.



toString
public String toString()(Code)
Gets a representation of this object as a string. A representation of this object as a string



validate
public void validate(Object attribute) throws IllegalArgumentException(Code)
Whether the tested object passes the validity constraints of this AttributeType. At a minimum it should be of the correct class specified by DefaultAttributeType.getType() , non-null if isNillable is false, and a geometry if isGeometry is true. If The object does not validate then an IllegalArgumentException reporting the error in validation should be thrown.
Parameters:
  attribute - The object to be tested for validity.
throws:
  IllegalArgumentException - if the object does not validate.



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.