Java Doc for IntrospectionConfiguration.java in  » Library » Apache-commons-betwixt-0.8-src » org » apache » commons » betwixt » 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 » Library » Apache commons betwixt 0.8 src » org.apache.commons.betwixt 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.commons.betwixt.IntrospectionConfiguration

IntrospectionConfiguration
public class IntrospectionConfiguration (Code)

Stores introspection phase binding configuration.

There are two phase in Betwixt's processing. The first phase is the introspection of the bean. Strutural configuration settings effect this phase. The second phase comes when Betwixt dynamically uses reflection to execute the mapping. This object stores configuration settings pertaining to the first phase.

These common settings have been collected into one class so that they can be more easily shared not only between the objects that execute the introspection but also (by a user) between different XMLIntrospectors.


author:
   Jakarta Commons Team
version:
   $Revision: 471234 $




Method Summary
protected  NameMappercreateNameMapper()
     A Factory method to lazily create a strategy used to convert bean type names into element names.
protected  PluralStemmercreatePluralStemmer()
     A Factory method to lazily create a new strategy to detect matching singular and plural properties.
public  NameMappergetAttributeNameMapper()
     Gets the name mapping strategy used to convert bean names into attributes. the strategy used to convert bean type names into attributenames.
public  AttributeSuppressionStrategygetAttributeSuppressionStrategy()
     Returns the AttributeSuppressionStrategy.
public  ClassNormalizergetClassNormalizer()
     Gets the ClassNormalizer strategy. This is used to determine the Class to be introspected (the normalized Class).
public  CollectiveTypeStrategygetCollectiveTypeStrategy()
     Gets the strategy used to determine which types are collective.
public  NameMappergetElementNameMapper()
     Gets the name mapping strategy used to convert bean names into elements. the strategy used to convert bean type names into element names.
public  ElementSuppressionStrategygetElementSuppressionStrategy()
     Returns the ElementSuppressionStrategy.
public  LoggetIntrospectionLog()
     Gets the common Log used for introspection.
public  MappingDerivationStrategygetMappingDerivationStrategy()
     Gets the MappingDerivationStrategy used to determine whether the bind or introspection time type should determine the mapping.
public  PluralStemmergetPluralStemmer()
     Get singular and plural matching strategy.
public  NamespacePrefixMappergetPrefixMapper()
     Gets the NamespacePrefixMapper used to convert namespace URIs into prefixes.
public  PropertySuppressionStrategygetPropertySuppressionStrategy()
     Gets the strategy which determines the properties to be ignored.
public  SimpleTypeMappergetSimpleTypeMapper()
     Gets the simple type binding strategy.
public  TypeBindingStrategygetTypeBindingStrategy()
     Gets the TypeBindingStrategy to be used to determine the binding for Java types.
public  booleanignoreAllBeanInfo()
    

Should existing BeanInfo classes be ignored by java.reflect.Introspector.

Default is false.

public  booleanisAttributesForPrimitives()
     Should attributes (or elements) be used for primitive types.
public  booleanisLoopType(Class type)
    
public  booleanisWrapCollectionsInElement()
    
public  voidsetAttributeNameMapper(NameMapper nameMapper)
    
public  voidsetAttributeSuppressionStrategy(AttributeSuppressionStrategy attributeSuppressionStrategy)
     Sets the AttributeSuppressionStrategy.
public  voidsetAttributesForPrimitives(boolean attributesForPrimitives)
     Set whether attributes (or elements) should be used for primitive types.
public  voidsetClassNormalizer(ClassNormalizer classNormalizer)
     Sets the ClassNormalizer strategy. This is used to determine the Class to be introspected (the normalized Class).
public  voidsetCollectiveTypeStrategy(CollectiveTypeStrategy collectiveTypeStrategy)
     Sets the strategy used to determine which types are collective.
public  voidsetElementNameMapper(NameMapper nameMapper)
    
public  voidsetElementSuppressionStrategy(ElementSuppressionStrategy elementSuppressionStrategy)
     Sets the ElementSuppressionStrategy.
public  voidsetIgnoreAllBeanInfo(boolean ignoreAllBeanInfo)
    
public  voidsetIntrospectionLog(Log log)
     Sets the common Log used by introspection.
public  voidsetMappingDerivationStrategy(MappingDerivationStrategy mappingDerivationStrategy)
     Sets the MappingDerivationStrategy used to determine whether the bind or introspection time type should determine the mapping.
public  voidsetPluralStemmer(PluralStemmer pluralStemmer)
    
public  voidsetPrefixMapper(NamespacePrefixMapper mapper)
     Sets the NamespacePrefixMapper used to convert namespave URIs into prefixes.
public  voidsetPropertySuppressionStrategy(PropertySuppressionStrategy propertySuppressionStrategy)
     Sets the strategy which determines the properties to be ignored.
public  voidsetSimpleTypeMapper(SimpleTypeMapper mapper)
     Sets the simple type binding strategy.
public  voidsetTypeBindingStrategy(TypeBindingStrategy typeBindingStrategy)
     Sets the TypeBindingStrategy to be used to determine the binding for Java types.
public  voidsetUseBeanInfoSearchPath(boolean useBeanInfoSearchPath)
    
public  voidsetWrapCollectionsInElement(boolean wrapCollectionsInElement)
     Sets whether we should we wrap collections in an extra element.
public  booleanuseBeanInfoSearchPath()
    

Should the original java.reflect.Introspector bean info search path be used?

Default is false.




Method Detail
createNameMapper
protected NameMapper createNameMapper()(Code)
A Factory method to lazily create a strategy used to convert bean type names into element names. new default NameMapper implementation



createPluralStemmer
protected PluralStemmer createPluralStemmer()(Code)
A Factory method to lazily create a new strategy to detect matching singular and plural properties. new defualt PluralStemmer implementation



getAttributeNameMapper
public NameMapper getAttributeNameMapper()(Code)
Gets the name mapping strategy used to convert bean names into attributes. the strategy used to convert bean type names into attributenames. If no attributeNamemapper is known, it will default to the ElementNameMapper



getAttributeSuppressionStrategy
public AttributeSuppressionStrategy getAttributeSuppressionStrategy()(Code)
Returns the AttributeSuppressionStrategy. This is used to suppress attributes, e.g. for versioning.
since:
   0.8 the strategy



getClassNormalizer
public ClassNormalizer getClassNormalizer()(Code)
Gets the ClassNormalizer strategy. This is used to determine the Class to be introspected (the normalized Class). the ClassNormalizer used to determine the Class to be introspectedfor a given Object.



getCollectiveTypeStrategy
public CollectiveTypeStrategy getCollectiveTypeStrategy()(Code)
Gets the strategy used to determine which types are collective. CollectiveTypeStrategy, not null
since:
   0.8



getElementNameMapper
public NameMapper getElementNameMapper()(Code)
Gets the name mapping strategy used to convert bean names into elements. the strategy used to convert bean type names into element names. If no element mapper is currently defined then a default one is created.



getElementSuppressionStrategy
public ElementSuppressionStrategy getElementSuppressionStrategy()(Code)
Returns the ElementSuppressionStrategy. This is used to suppress elements, e.g. for versioning.
since:
   0.8 the strategy



getIntrospectionLog
public Log getIntrospectionLog()(Code)
Gets the common Log used for introspection. It is more convenient to use a single Log that can be easily configured. Log, not null



getMappingDerivationStrategy
public MappingDerivationStrategy getMappingDerivationStrategy()(Code)
Gets the MappingDerivationStrategy used to determine whether the bind or introspection time type should determine the mapping.
since:
   0.7 MappingDerivationStrategy, not null



getPluralStemmer
public PluralStemmer getPluralStemmer()(Code)
Get singular and plural matching strategy. the strategy used to detect matching singular and plural properties



getPrefixMapper
public NamespacePrefixMapper getPrefixMapper()(Code)
Gets the NamespacePrefixMapper used to convert namespace URIs into prefixes. NamespacePrefixMapper, not null



getPropertySuppressionStrategy
public PropertySuppressionStrategy getPropertySuppressionStrategy()(Code)
Gets the strategy which determines the properties to be ignored.
since:
   0.7 the PropertySuppressionStrategy to be used for introspection, not null



getSimpleTypeMapper
public SimpleTypeMapper getSimpleTypeMapper()(Code)
Gets the simple type binding strategy. SimpleTypeMapper, not null



getTypeBindingStrategy
public TypeBindingStrategy getTypeBindingStrategy()(Code)
Gets the TypeBindingStrategy to be used to determine the binding for Java types. the TypeBindingStrategy to be used, not null



ignoreAllBeanInfo
public boolean ignoreAllBeanInfo()(Code)

Should existing BeanInfo classes be ignored by java.reflect.Introspector.

Default is false.

boolean if the BeanInfo classes should be used.



isAttributesForPrimitives
public boolean isAttributesForPrimitives()(Code)
Should attributes (or elements) be used for primitive types. true if primitive types will be mapped to attributes in the introspection



isLoopType
public boolean isLoopType(Class type)(Code)
Is this a loop type class?
since:
   0.7
Parameters:
  type - is this Class a loop type? true if the type is a loop type, or if type is null



isWrapCollectionsInElement
public boolean isWrapCollectionsInElement()(Code)
Should collections be wrapped in an extra element? whether we should we wrap collections in an extra element?



setAttributeNameMapper
public void setAttributeNameMapper(NameMapper nameMapper)(Code)
Sets the strategy used to convert bean type names into attribute names
Parameters:
  nameMapper - the NameMapper to use for the convertion



setAttributeSuppressionStrategy
public void setAttributeSuppressionStrategy(AttributeSuppressionStrategy attributeSuppressionStrategy)(Code)
Sets the AttributeSuppressionStrategy. This is used to suppress attributes, e.g. for versioning.
since:
   0.8
Parameters:
  attributeSuppressionStrategy - the strategy



setAttributesForPrimitives
public void setAttributesForPrimitives(boolean attributesForPrimitives)(Code)
Set whether attributes (or elements) should be used for primitive types.
Parameters:
  attributesForPrimitives - pass trus to map primitives to attributes,pass false to map primitives to elements



setClassNormalizer
public void setClassNormalizer(ClassNormalizer classNormalizer)(Code)
Sets the ClassNormalizer strategy. This is used to determine the Class to be introspected (the normalized Class).
Parameters:
  classNormalizer - the ClassNormalizer to be used to determine the Class to be introspected for a given Object.



setCollectiveTypeStrategy
public void setCollectiveTypeStrategy(CollectiveTypeStrategy collectiveTypeStrategy)(Code)
Sets the strategy used to determine which types are collective.
Parameters:
  collectiveTypeStrategy - CollectiveTypeStrategy, not null
since:
   0.8



setElementNameMapper
public void setElementNameMapper(NameMapper nameMapper)(Code)
Sets the strategy used to convert bean type names into element names
Parameters:
  nameMapper - the NameMapper to use for the conversion



setElementSuppressionStrategy
public void setElementSuppressionStrategy(ElementSuppressionStrategy elementSuppressionStrategy)(Code)
Sets the ElementSuppressionStrategy. This is used to suppress elements, e.g. for versioning.
since:
   0.8
Parameters:
  elementSuppressionStrategy - the strategy



setIgnoreAllBeanInfo
public void setIgnoreAllBeanInfo(boolean ignoreAllBeanInfo)(Code)
Specifies if you want to ignore existing BeanInfo classes at all for introspection
See Also:   java.beans.Introspector
See Also:    for more details
Parameters:
  ignoreAllBeanInfo - set to true to ignore all BeanInfo classes
since:
   0.8



setIntrospectionLog
public void setIntrospectionLog(Log log)(Code)
Sets the common Log used by introspection. It is more convenient to use a single Log that can be easily configured.
Parameters:
  log - Log, not null



setMappingDerivationStrategy
public void setMappingDerivationStrategy(MappingDerivationStrategy mappingDerivationStrategy)(Code)
Sets the MappingDerivationStrategy used to determine whether the bind or introspection time type should determine the mapping.
since:
   0.7
Parameters:
  mappingDerivationStrategy - MappingDerivationStrategy, not null



setPluralStemmer
public void setPluralStemmer(PluralStemmer pluralStemmer)(Code)
Sets the strategy used to detect matching singular and plural properties
Parameters:
  pluralStemmer - the PluralStemmer used to match singular and plural



setPrefixMapper
public void setPrefixMapper(NamespacePrefixMapper mapper)(Code)
Sets the NamespacePrefixMapper used to convert namespave URIs into prefixes.
Parameters:
  mapper - NamespacePrefixMapper, not null



setPropertySuppressionStrategy
public void setPropertySuppressionStrategy(PropertySuppressionStrategy propertySuppressionStrategy)(Code)
Sets the strategy which determines the properties to be ignored.
since:
   0.7
Parameters:
  propertySuppressionStrategy - the PropertySuppressionStrategy to be used for introspection, not null



setSimpleTypeMapper
public void setSimpleTypeMapper(SimpleTypeMapper mapper)(Code)
Sets the simple type binding strategy.
Parameters:
  mapper - SimpleTypeMapper, not null



setTypeBindingStrategy
public void setTypeBindingStrategy(TypeBindingStrategy typeBindingStrategy)(Code)
Sets the TypeBindingStrategy to be used to determine the binding for Java types.
Parameters:
  typeBindingStrategy - the TypeBindingStrategy to be used,not null



setUseBeanInfoSearchPath
public void setUseBeanInfoSearchPath(boolean useBeanInfoSearchPath)(Code)
Specifies if you want to use the beanInfoSearchPath
See Also:   java.beans.Introspector
See Also:    for more details
Parameters:
  useBeanInfoSearchPath -



setWrapCollectionsInElement
public void setWrapCollectionsInElement(boolean wrapCollectionsInElement)(Code)
Sets whether we should we wrap collections in an extra element.
Parameters:
  wrapCollectionsInElement - pass true if collections should be wrapped in aparent element



useBeanInfoSearchPath
public boolean useBeanInfoSearchPath()(Code)

Should the original java.reflect.Introspector bean info search path be used?

Default is false.

boolean if the beanInfoSearchPath should be used.



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.