Java Doc for GlobalCustom.java in  » XML » jibx-1.1.5 » org » jibx » binding » generator » 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 » XML » jibx 1.1.5 » org.jibx.binding.generator 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.jibx.binding.generator.CustomBase
      org.jibx.binding.generator.SharedNestingBase
         org.jibx.binding.generator.NestingBase
            org.jibx.binding.generator.GlobalCustom

GlobalCustom
public class GlobalCustom extends NestingBase (Code)
Global customization information. This includes some options specific to the <binding> element of the definition, as well as controls for structuring of the generated binding(s). It handles the binding customization child elements directly, by invoking the abstract unmarshallers for the child elements to process the content. It also allows for extension elements which are not part of the binding customization structure, as long as the binding in use defines the unmarshalling for these elements.

Inner Class :public static class Mapper implements IUnmarshaller

Field Summary
final public static  intBOTH_BINDING
    
final public static  StringELEMENT_NAME
     Element name in XML customization file.
final public static  intIN_BINDING
    
final public static  intOUT_BINDING
    
final static  EnumSets_directionEnum
    

Constructor Summary
public  GlobalCustom(IClassLocator loc)
     Constructor with class locator supplied.
public  GlobalCustom()
     Constructor.

Method Summary
public  ClassCustomaddClassCustomization(String type)
     Add new class customization information.
public  voidaddExtensionChild(Object child)
     Add a child extension element.
public  voidfillClasses()
     Fills in class information based on inspection of the actual class data.
public  ClassCustomforceClassCustomization(String type)
     Get class customization information, creating it if it doesn't already exist.
public  ClassCustomgetClassCustomization(String type)
     Get class customization information.
public  IClassgetClassInfo(String type)
     Get class information.
protected  IClassLocatorgetClassLocator()
     Get class locator.
public  ListgetExtensionChildren()
     Get the extension elements used in this customization.
public  GlobalCustomgetGlobal()
     Get global customizations root.
public  PackageCustomgetPackage(String name)
     Get package customizations.
protected  voidinternalAddExtensionChild(Object child)
     Internal method used during unmarshalling to add a child extension element.
public  booleanisAddConstructors()
     Get 'add-constructors' setting.
public  booleanisClassUsed(String type)
     Check if a class is included in the customization information.
public  booleanisForceClasses()
     Get 'force-classes' setting.
public  booleanisInput()
     Check for an input binding.
public  booleanisKnownMapping(String type)
     Check if type represents a known mapping.
public  booleanisNamespaceModular()
     Check if using namespace modular bindings.
public  booleanisOutput()
     Check for an output binding.
public  booleanisTrackSource()
     Get 'track-source' attribute value.
public  voidsetAddConstructors(boolean add)
     Set 'add-constructors' value.
public  voidsetForceClasses(boolean force)
     Set 'force-classes' value.
public  voidsetInput(boolean input)
     Set input binding flag.
public  voidsetOutput(boolean output)
     Set output binding falg.
public  voidsetTrackSource(boolean track)
     Set 'track-source' value.

Field Detail
BOTH_BINDING
final public static int BOTH_BINDING(Code)



ELEMENT_NAME
final public static String ELEMENT_NAME(Code)
Element name in XML customization file.



IN_BINDING
final public static int IN_BINDING(Code)



OUT_BINDING
final public static int OUT_BINDING(Code)



s_directionEnum
final static EnumSet s_directionEnum(Code)




Constructor Detail
GlobalCustom
public GlobalCustom(IClassLocator loc)(Code)
Constructor with class locator supplied.
Parameters:
  loc -



GlobalCustom
public GlobalCustom()(Code)
Constructor. This always creates the default package as the only direct child, since other packages will be treated as children of the default package.




Method Detail
addClassCustomization
public ClassCustom addClassCustomization(String type)(Code)
Add new class customization information. This creates the customization information and adds it to the internal structures, initializing all values based on the settings inherited from <package> and <global> elements of the structure. This method should only be used after first calling GlobalCustom.getClassCustomization(String) and obtaining a null result.
Parameters:
  type - fully qualified class name class information



addExtensionChild
public void addExtensionChild(Object child)(Code)
Add a child extension element. This both adds the child to the list and invokeds the extension element's IApply.apply(IClassLocator) method, if present.
Parameters:
  child -



fillClasses
public void fillClasses()(Code)
Fills in class information based on inspection of the actual class data. This needs to be done as a separate step following unmarshalling, so that the full details of the unmarshalled customizations are available.



forceClassCustomization
public ClassCustom forceClassCustomization(String type)(Code)
Get class customization information, creating it if it doesn't already exist.
Parameters:
  type - fully qualified class name class information



getClassCustomization
public ClassCustom getClassCustomization(String type)(Code)
Get class customization information.
Parameters:
  type - fully qualified class name class information (null if not defined)



getClassInfo
public IClass getClassInfo(String type)(Code)
Get class information.
Parameters:
  type - fully-qualified class name information



getClassLocator
protected IClassLocator getClassLocator()(Code)
Get class locator. locator



getExtensionChildren
public List getExtensionChildren()(Code)
Get the extension elements used in this customization. This does not include the <package> or <class> child elements, which are added directly to the customization structures. child list



getGlobal
public GlobalCustom getGlobal()(Code)
Get global customizations root. global customization



getPackage
public PackageCustom getPackage(String name)(Code)
Get package customizations. If the requested package is already defined the existing instance will be returned, otherwise a new instance will be created (along with any ancestor packages) and added to the structure.
Parameters:
  name - package



internalAddExtensionChild
protected void internalAddExtensionChild(Object child)(Code)
Internal method used during unmarshalling to add a child extension element.
Parameters:
  child -



isAddConstructors
public boolean isAddConstructors()(Code)
Get 'add-constructors' setting. 'add-constructors' value



isClassUsed
public boolean isClassUsed(String type)(Code)
Check if a class is included in the customization information. This method does not alter the structures in any way, it only checks if the class customization information is part of the existing structure.
Parameters:
  type - fully qualified class name true if class includes, false if not



isForceClasses
public boolean isForceClasses()(Code)
Get 'force-classes' setting. 'force-classes' value



isInput
public boolean isInput()(Code)
Check for an input binding. input flag



isKnownMapping
public boolean isKnownMapping(String type)(Code)
Check if type represents a known mapping.
Parameters:
  type - fully qualified class name known mapping flag



isNamespaceModular
public boolean isNamespaceModular()(Code)
Check if using namespace modular bindings. flag for bindings to be modular by namespace



isOutput
public boolean isOutput()(Code)
Check for an output binding. output flag



isTrackSource
public boolean isTrackSource()(Code)
Get 'track-source' attribute value. 'track-source' value



setAddConstructors
public void setAddConstructors(boolean add)(Code)
Set 'add-constructors' value.
Parameters:
  add - 'add-constructors' value



setForceClasses
public void setForceClasses(boolean force)(Code)
Set 'force-classes' value.
Parameters:
  force - 'force-classes' value



setInput
public void setInput(boolean input)(Code)
Set input binding flag.
Parameters:
  input -



setOutput
public void setOutput(boolean output)(Code)
Set output binding falg.
Parameters:
  output -



setTrackSource
public void setTrackSource(boolean track)(Code)
Set 'track-source' value.
Parameters:
  track - 'track-source' value



Fields inherited from org.jibx.binding.generator.NestingBase
final public static int ATTRIBUTE_VALUE_STYLE(Code)(Java Doc)
final public static int ELEMENT_VALUE_STYLE(Code)(Java Doc)
final public static int TEXT_VALUE_STYLE(Code)(Java Doc)
final public static EnumSet s_valueStyleEnum(Code)(Java Doc)

Methods inherited from org.jibx.binding.generator.NestingBase
public String[] getStripPrefixes()(Code)(Java Doc)
public String[] getStripSuffixes()(Code)(Java Doc)
public int getValueStyle(String type)(Code)(Java Doc)
public boolean isMapAbstract()(Code)(Java Doc)
public boolean isPropertyAccess()(Code)(Java Doc)
public void setMapAbstract(Boolean abs)(Code)(Java Doc)
public void setValueStyle(Integer style)(Code)(Java Doc)

Methods inherited from org.jibx.binding.generator.SharedNestingBase
public String convertName(String base)(Code)(Java Doc)
public int getNameStyle()(Code)(Java Doc)
final public String getNamespace()(Code)(Java Doc)
public int getNamespaceStyle()(Code)(Java Doc)
protected String getSpecifiedNamespace()(Code)(Java Doc)
public boolean isObjectRequired(String type)(Code)(Java Doc)
public boolean isPrimitiveRequired(String type)(Code)(Java Doc)
public void setNameStyle(Integer style)(Code)(Java Doc)
protected void setNamespace(String ns)(Code)(Java Doc)
public void setNamespaceStyle(Integer style)(Code)(Java Doc)

Fields inherited from org.jibx.binding.generator.CustomBase
final public static int CAMEL_CASE_NAMES(Code)(Java Doc)
final public static int DERIVE_BY_PACKAGE(Code)(Java Doc)
final public static int DERIVE_FIXED(Code)(Java Doc)
final public static int DERIVE_NONE(Code)(Java Doc)
final public static int DOTTED_NAMES(Code)(Java Doc)
final public static int HYPHENATED_NAMES(Code)(Java Doc)
final public static int REQUIRE_ALL(Code)(Java Doc)
final public static int REQUIRE_NONE(Code)(Java Doc)
final public static int REQUIRE_OBJECTS(Code)(Java Doc)
final public static int REQUIRE_PRIMITIVES(Code)(Java Doc)
final public static int UNDERSCORED_NAMES(Code)(Java Doc)
final public static int UPPER_CAMEL_CASE_NAMES(Code)(Java Doc)
final public static EnumSet s_nameStyleEnum(Code)(Java Doc)
final public static EnumSet s_namespaceStyleEnum(Code)(Java Doc)
final public static EnumSet s_requireEnum(Code)(Java Doc)

Methods inherited from org.jibx.binding.generator.CustomBase
public static String convertName(String base, int code)(Code)(Java Doc)
public static String deriveItemName(String cname, String type, int code)(Code)(Java Doc)
public static String deriveNamespace(String uri, String pkgpth, int style)(Code)(Java Doc)
public GlobalCustom getGlobal()(Code)(Java Doc)
public SharedNestingBase getParent()(Code)(Java Doc)
protected static Set nameSet(String[] names)(Code)(Java Doc)
public static String packageOfType(String type)(Code)(Java Doc)
public static String packageToNamespace(String pkgpth)(Code)(Java Doc)

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.