Java Doc for PropertySet.java in  » ERP-CRM-Financial » jmoney » net » sf » jmoney » model2 » 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 » ERP CRM Financial » jmoney » net.sf.jmoney.model2 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   net.sf.jmoney.model2.PropertySet

PropertySet
abstract public class PropertySet (Code)
A PropertySet contains information about a property set. A property set is a set of properties that either:
  • form the base set of properties in a data model object
  • or are the properties added to a data model object by a derived class (such property sets are known as derived property sets)
  • or are the properties added to a data model object by a plug-in (such property sets are know as extension property sets)
The getBasePropertySet and isExtension methods can be called to determine in which of the above three categories a property set lies.
See Also:    Property Set Documentation
See Also:    Property Set Documentation
Parameters:
  E - the type of the implementation object, which must beeither an ExtendableObject or an ExtensionObject
author:
   Nigel Westbury


Field Summary
protected static  Map<String, ExtendablePropertySet<?>>allExtendablePropertySetsMap
    
protected static  Map<String, ExtensionPropertySet<?>>allExtensionPropertySetsMap
    
static  Set<String>allPropertySetIds
    
static  Vector<PropertySet>allPropertySets
    
protected  Class<E>classOfObject
    
protected static  Map<Class<? extends ExtendableObject>, ExtendablePropertySet>classToPropertySetMap
     Map extendable classes to property sets.
 booleanisExtension
    
protected  Vector<PropertyAccessor>properties
    
protected  StringpropertySetId
    

Constructor Summary
protected  PropertySet()
    

Method Summary
public static  ExtendablePropertySet<E2>addBaseAbstractPropertySet(Class<E2> classOfImplementationObject, String description)
    
public static  ExtendablePropertySet<E2>addBaseFinalPropertySet(Class<E2> classOfImplementationObject, String description, IExtendableObjectConstructors<E2> constructors)
    
public static  ExtendablePropertySet<E>addDerivedAbstractPropertySet(Class<E> classOfImplementationObject, String description, ExtendablePropertySet<? super E> basePropertySet)
    
public static  ExtendablePropertySet<E>addDerivedFinalPropertySet(Class<E> classOfImplementationObject, String description, ExtendablePropertySet<? super E> basePropertySet, IExtendableObjectConstructors<E> constructors)
    
public static  ExtensionPropertySet<E>addExtensionPropertySet(Class<E> classOfImplementationObject, ExtendablePropertySet extendablePropertySet, IExtensionObjectConstructors<E> constructors)
    
public  ScalarPropertyAccessor<V>addProperty(String name, String displayName, Class<V> classOfValue, int weight, int minimumWidth, IPropertyControlFactory<V> propertyControlFactory, IPropertyDependency<E> propertyDependency)
    
public  ReferencePropertyAccessor<V>addProperty(String name, String displayName, Class<V> classOfValue, int weight, int minimumWidth, IReferenceControlFactory<E, V> propertyControlFactory, IPropertyDependency<E> propertyDependency)
    
public  ListPropertyAccessor<E2>addPropertyList(String name, String displayName, ExtendablePropertySet<E2> elementPropertySet, IListGetter<E, E2> listGetter)
    
public static  Collection<ExtendablePropertySet<?>>getAllExtendablePropertySets()
     Gets a list of all extendable property sets.
public static  Collection<ExtensionPropertySet<?>>getAllExtensionPropertySets()
     Gets a list of all extension property sets.
public static  ExtendablePropertySetgetExtendablePropertySet(String propertySetId)
     This method is called when a property set id in plugin.xml references an extendable property set.
public static  ExtensionPropertySetgetExtensionPropertySet(String propertySetId)
     This method is called when one plug-in wants to access a property in another plug-in's property set.
public  StringgetId()
    
public  Class<E>getImplementationClass()
     Returns the implementation class for this property set. The implementation class for a property set is a class that implements getters and setters for all the properties in the property set.
abstract protected  EgetImplementationObject(ExtendableObject extendableObject)
     Given an extendable object, return the Java object that contains the getters and setters for this property set. If this property set is an extendable property set then this method should return the passed object as is.
public  Collection<ListPropertyAccessor<?>>getListProperties1()
    
public  Collection<PropertyAccessor>getProperties1()
    
public  PropertyAccessorgetProperty(String name)
     Get the property accessor for a property in a property set. This method looks in only in the given property set (it will not look in base property sets or extension property sets).
Parameters:
  name - The local name of the property.
public static  ExtendablePropertySet<? extends E>getPropertySet(Class<E> propertySetClass)
     This method will find the PropertySet object, given the class of an implementation object.
public  Collection<ScalarPropertyAccessor<?>>getScalarProperties1()
    
public static  voidinit()
     Loads the property sets.
public  voidinitProperties(String propertySetId)
     This method is called after all the properties in this property set have been set.
public  booleanisExtension()
    
public  StringtoString()
    

Field Detail
allExtendablePropertySetsMap
protected static Map<String, ExtendablePropertySet<?>> allExtendablePropertySetsMap(Code)
Maps property set id to the property set



allExtensionPropertySetsMap
protected static Map<String, ExtensionPropertySet<?>> allExtensionPropertySetsMap(Code)



allPropertySetIds
static Set<String> allPropertySetIds(Code)



allPropertySets
static Vector<PropertySet> allPropertySets(Code)



classOfObject
protected Class<E> classOfObject(Code)



classToPropertySetMap
protected static Map<Class<? extends ExtendableObject>, ExtendablePropertySet> classToPropertySetMap(Code)
Map extendable classes to property sets.



isExtension
boolean isExtension(Code)



properties
protected Vector<PropertyAccessor> properties(Code)



propertySetId
protected String propertySetId(Code)




Constructor Detail
PropertySet
protected PropertySet()(Code)




Method Detail
addBaseAbstractPropertySet
public static ExtendablePropertySet<E2> addBaseAbstractPropertySet(Class<E2> classOfImplementationObject, String description)(Code)



addBaseFinalPropertySet
public static ExtendablePropertySet<E2> addBaseFinalPropertySet(Class<E2> classOfImplementationObject, String description, IExtendableObjectConstructors<E2> constructors)(Code)



addDerivedAbstractPropertySet
public static ExtendablePropertySet<E> addDerivedAbstractPropertySet(Class<E> classOfImplementationObject, String description, ExtendablePropertySet<? super E> basePropertySet)(Code)



addDerivedFinalPropertySet
public static ExtendablePropertySet<E> addDerivedFinalPropertySet(Class<E> classOfImplementationObject, String description, ExtendablePropertySet<? super E> basePropertySet, IExtendableObjectConstructors<E> constructors)(Code)



addExtensionPropertySet
public static ExtensionPropertySet<E> addExtensionPropertySet(Class<E> classOfImplementationObject, ExtendablePropertySet extendablePropertySet, IExtensionObjectConstructors<E> constructors)(Code)



addProperty
public ScalarPropertyAccessor<V> addProperty(String name, String displayName, Class<V> classOfValue, int weight, int minimumWidth, IPropertyControlFactory<V> propertyControlFactory, IPropertyDependency<E> propertyDependency)(Code)



addProperty
public ReferencePropertyAccessor<V> addProperty(String name, String displayName, Class<V> classOfValue, int weight, int minimumWidth, IReferenceControlFactory<E, V> propertyControlFactory, IPropertyDependency<E> propertyDependency)(Code)



addPropertyList
public ListPropertyAccessor<E2> addPropertyList(String name, String displayName, ExtendablePropertySet<E2> elementPropertySet, IListGetter<E, E2> listGetter)(Code)



getAllExtendablePropertySets
public static Collection<ExtendablePropertySet<?>> getAllExtendablePropertySets()(Code)
Gets a list of all extendable property sets. the collection of all property sets



getAllExtensionPropertySets
public static Collection<ExtensionPropertySet<?>> getAllExtensionPropertySets()(Code)
Gets a list of all extension property sets. the collection of all property sets



getExtendablePropertySet
public static ExtendablePropertySet getExtendablePropertySet(String propertySetId) throws PropertySetNotFoundException(Code)
This method is called when a property set id in plugin.xml references an extendable property set. The property set object is returned.



getExtensionPropertySet
public static ExtensionPropertySet getExtensionPropertySet(String propertySetId) throws PropertySetNotFoundException(Code)
This method is called when one plug-in wants to access a property in another plug-in's property set. Callers must be able to handle the case where the requested property set is not found. The plug-in must catch PropertySetNotFoundException and supply appropriate behavior (not an error from the user's perspective).



getId
public String getId()(Code)
The globally unique id of the property set.



getImplementationClass
public Class<E> getImplementationClass()(Code)
Returns the implementation class for this property set. The implementation class for a property set is a class that implements getters and setters for all the properties in the property set. Implementation classes for property sets have a few other rules they must follow too. For example, certain constructors must be provided and they must extend either ExtendableObject or ExtensionObject. See the documentation on property set implementation classes for further information.
See Also:   doc
See Also:    on implemetation classes the implementation class



getImplementationObject
abstract protected E getImplementationObject(ExtendableObject extendableObject)(Code)
Given an extendable object, return the Java object that contains the getters and setters for this property set. If this property set is an extendable property set then this method should return the passed object as is. If this property set is an extension property set then this method should get the appropriate extension object.
Parameters:
  extendableObject -



getListProperties1
public Collection<ListPropertyAccessor<?>> getListProperties1()(Code)



getProperties1
public Collection<PropertyAccessor> getProperties1()(Code)
An iterator that iterates over all propertiesin this property set, returning, for each property,the PropertyAccessor object for that property.



getProperty
public PropertyAccessor getProperty(String name) throws PropertyNotFoundException(Code)
Get the property accessor for a property in a property set. This method looks in only in the given property set (it will not look in base property sets or extension property sets).
Parameters:
  name - The local name of the property. This name does notinclude the dotted prefix.



getPropertySet
public static ExtendablePropertySet<? extends E> getPropertySet(Class<E> propertySetClass)(Code)
This method will find the PropertySet object, given the class of an implementation object. The given class must be an implementation of ExtendableObject (The class may not be an implementation of an extension property set).

This method should be called when we have an object, but we do not know exactly of what derived class the object is. By calling this method, we can get the actual set of properties for this object. For example, if one wants to display the properties for a CapitalAccount object, then call this method to get the property set for the actual object and you will then see properties for this particular object (bank account properties if the object is a bank account, credit card account properties if the object is a credit card account and so on).




getScalarProperties1
public Collection<ScalarPropertyAccessor<?>> getScalarProperties1()(Code)



init
public static void init()(Code)
Loads the property sets. All property sets (both base and extensions) are added to the net.sf.jmoney.fields extension point.



initProperties
public void initProperties(String propertySetId)(Code)
This method is called after all the properties in this property set have been set. It completes the initialization of this object. This cannot be done in the constructor because there may be circular references between property sets, properties in those property sets, and property sets for the objects referenced by those properties.
Parameters:
  propertySetId -



isExtension
public boolean isExtension()(Code)



toString
public String toString()(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.