Java Doc for Property.java in  » IDE-Netbeans » etl.project » org » netbeans » modules » mashup » db » common » 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 » IDE Netbeans » etl.project » org.netbeans.modules.mashup.db.common 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.netbeans.modules.mashup.db.common.Property

Property
public class Property implements Cloneable,Comparable(Code)
Simple class to bind property key, type, current value, required flag and (optional) default value information for a key-value property.
author:
   Jonathan Giron
version:
   $Revision$



Constructor Summary
public  Property()
    
public  Property(String myKey, Class myType, boolean isRequired)
     Creates a new instance of Property with the given key name, type, and required value flag.
public  Property(String myKey, Class myType, String myDefault, boolean isRefreshRequired)
     Creates a new instance of Property with the given key name, type, default value, and required value flag.
public  Property(String myKey, Class myType, String myDefault)
    

Method Summary
public  Objectclone()
     Overrides default implementation to allow cloning of this instance.
public  intcompareTo(Object o)
     Compares this object with the specified object for order.
public static  MapcreateKeyValueMapFrom(Map properties)
     Creates a Map of pure key-value mappings from the given Map of keys to Property instances.
public  booleanequals(Object o)
     Overrides default implementation.
Parameters:
  o - Object to compare for equality against this instance.
public  ObjectgetDefault()
     Gets default value, if any, for this property.
public  StringgetKeyValuePair()
     Gets key-value pair in canonical Java properties format, e.g., "key=value".
public  StringgetName()
     Gets name of this property.
public  ClassgetType()
    
public  ObjectgetValue()
    
public  booleangetValueFrom(Map aMap)
     Gets key-value information from the given Map, provided that the value in the map would be a valid value.
public  inthashCode()
     Overrides default implementation to compute its value based on member variables.
public  booleanisRefreshRequired()
    
public  booleanisRequired()
     Indicates whether this property requires a non-null, valid value.
public  booleanisValid()
     Indicates whether the current value of this property is valid, based on its type.
public  booleanisValidValue(Object aValue)
     Indicates whether the given value would be a valid value for this property.
public  booleanputValueTo(Map aMap)
     Puts key-value information to the given Map, provided that the value is valid.
public  voidsetDefault(String def)
     Sets default value, if any, for this property.
public  voidsetName(String newName)
     Sets name of this property.
public  voidsetRefresh(boolean isRefreshRequired)
    
public  voidsetRequired(String required)
     Sets whether this property requires a non-null, valid value.
public  voidsetType(String newType)
     Sets Java type of this property's value object.
public  voidsetValue(Object newValue)
     Sets current value of property to the given object.
public  StringtoString()
     Overrides default implementation to return value, if any, of this property.


Constructor Detail
Property
public Property()(Code)
Creates a new default instance of Property



Property
public Property(String myKey, Class myType, boolean isRequired)(Code)
Creates a new instance of Property with the given key name, type, and required value flag.
Parameters:
  myKey - key name
Parameters:
  myType - value type
Parameters:
  isRequired - true if required, false otherwise



Property
public Property(String myKey, Class myType, String myDefault, boolean isRefreshRequired)(Code)
Creates a new instance of Property with the given key name, type, default value, and required value flag.
Parameters:
  myKey - key name
Parameters:
  myType - value type
Parameters:
  myDefault - default value
Parameters:
  isRefreshRequired - true if required, false otherwise



Property
public Property(String myKey, Class myType, String myDefault)(Code)




Method Detail
clone
public Object clone()(Code)
Overrides default implementation to allow cloning of this instance. clone of this instance



compareTo
public int compareTo(Object o)(Code)
Compares this object with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.

Note: this class has a natural ordering that is inconsistent with equals.
Parameters:
  o - the Object to be compared. a negative integer, zero, or a positive integer as this object is lessthan, equal to, or greater than the specified object.
throws:
  ClassCastException - if the specified object's type prevents it from beingcompared to this Object.




createKeyValueMapFrom
public static Map createKeyValueMapFrom(Map properties)(Code)
Creates a Map of pure key-value mappings from the given Map of keys to Property instances. All other object classes are ignored.
Parameters:
  properties - Map of Property instances to be transformed new Map of simple key-value mappings, based on contents of properties



equals
public boolean equals(Object o)(Code)
Overrides default implementation.
Parameters:
  o - Object to compare for equality against this instance. true if o is equivalent to this, false otherwise



getDefault
public Object getDefault()(Code)
Gets default value, if any, for this property. default value, or null if none is set.



getKeyValuePair
public String getKeyValuePair()(Code)
Gets key-value pair in canonical Java properties format, e.g., "key=value". key-value pair in canonical Java properties format, or empty string ifcurrent value is invalid



getName
public String getName()(Code)
Gets name of this property. name of this property



getType
public Class getType()(Code)
Gets property type type



getValue
public Object getValue()(Code)
Gets current value of property current value



getValueFrom
public boolean getValueFrom(Map aMap)(Code)
Gets key-value information from the given Map, provided that the value in the map would be a valid value.
Parameters:
  aMap - Map from which to get this instance's key-value information true if key-value information is valid and get succeeded, false otherwise.



hashCode
public int hashCode()(Code)
Overrides default implementation to compute its value based on member variables. computed hash code



isRefreshRequired
public boolean isRefreshRequired()(Code)



isRequired
public boolean isRequired()(Code)
Indicates whether this property requires a non-null, valid value. true if valid value is required, false otherwise



isValid
public boolean isValid()(Code)
Indicates whether the current value of this property is valid, based on its type. true if valid, false otherwise.



isValidValue
public boolean isValidValue(Object aValue)(Code)
Indicates whether the given value would be a valid value for this property.
Parameters:
  aValue - value to test true if valid, false otherwise.



putValueTo
public boolean putValueTo(Map aMap)(Code)
Puts key-value information to the given Map, provided that the value is valid.
Parameters:
  aMap - Map to receive this instance's key-value information true if key-value information is valid and put succeeded, false otherwise.



setDefault
public void setDefault(String def)(Code)
Sets default value, if any, for this property.
Parameters:
  def - default value, or null for no default



setName
public void setName(String newName)(Code)
Sets name of this property.
Parameters:
  newName - new name of this property



setRefresh
public void setRefresh(boolean isRefreshRequired)(Code)



setRequired
public void setRequired(String required)(Code)
Sets whether this property requires a non-null, valid value.
Parameters:
  required - true if valid value is required, false otherwise



setType
public void setType(String newType)(Code)
Sets Java type of this property's value object.
Parameters:
  newType - new type (e.g., Foo.class.getName() for instance of Foo)



setValue
public void setValue(Object newValue)(Code)
Sets current value of property to the given object. If newValue is null and this is a required property, an IllegalArgumentException is thrown unless a default value is defined. If newValue cannot be converted to this Property's given type, a ClassCastException is thrown.
Parameters:
  newValue - new value of property.



toString
public String toString()(Code)
Overrides default implementation to return value, if any, of this property. value of property, or null if no value currently exists



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.