Java Doc for ExtendedBinding.java in  » Database-ORM » castor » org » exolab » castor » builder » binding » 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 » Database ORM » castor » org.exolab.castor.builder.binding 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.exolab.castor.builder.binding.xml.Binding
      org.exolab.castor.builder.binding.ExtendedBinding

ExtendedBinding
final public class ExtendedBinding extends Binding (Code)
This class adds the necessary logic to a Binding Object to bring the gap between the XML Schema Object Model and the Binding File. It queries the Binding Object to retrieve the the associated ComponentBinding.

An "XPath like" representation of an XML Schema structure is built to lookup the component bindings in their storage structure. The algorithm used to build the "XPath like" representation is summarized in the following example: Given the XML schema declaration:

 <xsd:element name="foo">
 <xsd:complextype>
 <xsd:attribute name="bar" type="xsd:string"/>
 </xsd:complextype>
 </xsd:element>
 
The path to identify the attribute 'bar' will be:
 /foo/@bar
 
The keywords complexType and group are used to identify respectively an XML Schema ComplexType and a Model Group definition.
author:
   Arnaud Blandin
version:
   $Revision: 6936 $ $Date: 2005-03-05 06:42:06 -0700 (Sat, 05 Mar 2005) $


Field Summary
final protected static  StringATTRIBUTE_PREFIX
     Prefix used to identify an attribute.
final public static  StringCOMPLEXTYPE_ID
     Prefix used to identify a complexType.
final public static  StringENUMTYPE_ID
     Prefix used to identify an enumeration.
final public static  StringGROUP_ID
     Prefix used to identify a model group.
final protected static  StringPATH_SEPARATOR
     Constants needed to create the XPath.
final public static  StringSIMPLETYPE_ID
     Prefix used to identity a simplyType.

Constructor Summary
public  ExtendedBinding()
     Default constructor.

Method Summary
public  booleanexistsExclusion(String localName)
     Indicates whether an <exclude> element has been specified in a binding file for the given 'local name' of an element definition.
public  booleanexistsForce(String localName)
     Indicates whether an <force> element has been specified in a binding file for the given 'local name' of an element definition.
public  ComponentBindingTypegetComponentBindingType(Annotated annotated)
     Returns the ComponentBinding that corresponds to the given Annotated XML Schema structure An Schema location will be built for the given Annotated XML schema structure.
Parameters:
  annotated - the XML Schema annotated structure for which to querythe Binding object for a ComponentBinding.
public  ExcludegetExclusion(String localName)
     Returns the Exclude instance for the element identified by the given local name.
Parameters:
  localName - Local name for an element (definition).
public  SetgetForces()
     Returns all <force> elements defined in the binding file.
 voidhandleAutomaticNaming(AutomaticNamingType type)
     Process automatic name conflict resolution section, and memorize definitions.

Field Detail
ATTRIBUTE_PREFIX
final protected static String ATTRIBUTE_PREFIX(Code)
Prefix used to identify an attribute.



COMPLEXTYPE_ID
final public static String COMPLEXTYPE_ID(Code)
Prefix used to identify a complexType.



ENUMTYPE_ID
final public static String ENUMTYPE_ID(Code)
Prefix used to identify an enumeration.



GROUP_ID
final public static String GROUP_ID(Code)
Prefix used to identify a model group.



PATH_SEPARATOR
final protected static String PATH_SEPARATOR(Code)
Constants needed to create the XPath.



SIMPLETYPE_ID
final public static String SIMPLETYPE_ID(Code)
Prefix used to identity a simplyType.




Constructor Detail
ExtendedBinding
public ExtendedBinding()(Code)
Default constructor.
See Also:   java.lang.Object.Object




Method Detail
existsExclusion
public boolean existsExclusion(String localName)(Code)
Indicates whether an <exclude> element has been specified in a binding file for the given 'local name' of an element definition.
Parameters:
  localName - 'local name' of an element definition True if an <exclude> element has been specified



existsForce
public boolean existsForce(String localName)(Code)
Indicates whether an <force> element has been specified in a binding file for the given 'local name' of an element definition.
Parameters:
  localName - 'local name' of an element definition True if an <force> element has been specified



getComponentBindingType
public ComponentBindingType getComponentBindingType(Annotated annotated)(Code)
Returns the ComponentBinding that corresponds to the given Annotated XML Schema structure An Schema location will be built for the given Annotated XML schema structure.
Parameters:
  annotated - the XML Schema annotated structure for which to querythe Binding object for a ComponentBinding. the ComponentBinding that corresponds to the given Annotated XMLSchema structure.



getExclusion
public Exclude getExclusion(String localName)(Code)
Returns the Exclude instance for the element identified by the given local name.
Parameters:
  localName - Local name for an element (definition). The Exclude instance.



getForces
public Set getForces()(Code)
Returns all <force> elements defined in the binding file. all <force> elements defined in the binding file



handleAutomaticNaming
void handleAutomaticNaming(AutomaticNamingType type)(Code)
Process automatic name conflict resolution section, and memorize definitions.
Parameters:
  type - AutomaticNamingType instance



Methods inherited from org.exolab.castor.builder.binding.xml.Binding
public void addAttributeBinding(org.exolab.castor.builder.binding.xml.ComponentBindingType vAttributeBinding) throws java.lang.IndexOutOfBoundsException(Code)(Java Doc)
public void addAttributeBinding(int index, org.exolab.castor.builder.binding.xml.ComponentBindingType vAttributeBinding) throws java.lang.IndexOutOfBoundsException(Code)(Java Doc)
public void addComplexTypeBinding(org.exolab.castor.builder.binding.xml.ComponentBindingType vComplexTypeBinding) throws java.lang.IndexOutOfBoundsException(Code)(Java Doc)
public void addComplexTypeBinding(int index, org.exolab.castor.builder.binding.xml.ComponentBindingType vComplexTypeBinding) throws java.lang.IndexOutOfBoundsException(Code)(Java Doc)
public void addComponentBinding(org.exolab.castor.builder.binding.xml.ComponentBindingType vComponentBinding) throws java.lang.IndexOutOfBoundsException(Code)(Java Doc)
public void addComponentBinding(int index, org.exolab.castor.builder.binding.xml.ComponentBindingType vComponentBinding) throws java.lang.IndexOutOfBoundsException(Code)(Java Doc)
public void addElementBinding(org.exolab.castor.builder.binding.xml.ComponentBindingType vElementBinding) throws java.lang.IndexOutOfBoundsException(Code)(Java Doc)
public void addElementBinding(int index, org.exolab.castor.builder.binding.xml.ComponentBindingType vElementBinding) throws java.lang.IndexOutOfBoundsException(Code)(Java Doc)
public void addEnumBinding(org.exolab.castor.builder.binding.xml.ComponentBindingType vEnumBinding) throws java.lang.IndexOutOfBoundsException(Code)(Java Doc)
public void addEnumBinding(int index, org.exolab.castor.builder.binding.xml.ComponentBindingType vEnumBinding) throws java.lang.IndexOutOfBoundsException(Code)(Java Doc)
public void addGroupBinding(org.exolab.castor.builder.binding.xml.ComponentBindingType vGroupBinding) throws java.lang.IndexOutOfBoundsException(Code)(Java Doc)
public void addGroupBinding(int index, org.exolab.castor.builder.binding.xml.ComponentBindingType vGroupBinding) throws java.lang.IndexOutOfBoundsException(Code)(Java Doc)
public void addInclude(org.exolab.castor.builder.binding.xml.IncludeType vInclude) throws java.lang.IndexOutOfBoundsException(Code)(Java Doc)
public void addInclude(int index, org.exolab.castor.builder.binding.xml.IncludeType vInclude) throws java.lang.IndexOutOfBoundsException(Code)(Java Doc)
public void addPackage(org.exolab.castor.builder.binding.xml.PackageType vPackage) throws java.lang.IndexOutOfBoundsException(Code)(Java Doc)
public void addPackage(int index, org.exolab.castor.builder.binding.xml.PackageType vPackage) throws java.lang.IndexOutOfBoundsException(Code)(Java Doc)
public void addSimpleTypeBinding(org.exolab.castor.builder.binding.xml.ComponentBindingType vSimpleTypeBinding) throws java.lang.IndexOutOfBoundsException(Code)(Java Doc)
public void addSimpleTypeBinding(int index, org.exolab.castor.builder.binding.xml.ComponentBindingType vSimpleTypeBinding) throws java.lang.IndexOutOfBoundsException(Code)(Java Doc)
public java.util.Enumeration enumerateAttributeBinding()(Code)(Java Doc)
public java.util.Enumeration enumerateComplexTypeBinding()(Code)(Java Doc)
public java.util.Enumeration enumerateComponentBinding()(Code)(Java Doc)
public java.util.Enumeration enumerateElementBinding()(Code)(Java Doc)
public java.util.Enumeration enumerateEnumBinding()(Code)(Java Doc)
public java.util.Enumeration enumerateGroupBinding()(Code)(Java Doc)
public java.util.Enumeration enumerateInclude()(Code)(Java Doc)
public java.util.Enumeration enumeratePackage()(Code)(Java Doc)
public java.util.Enumeration enumerateSimpleTypeBinding()(Code)(Java Doc)
public org.exolab.castor.builder.binding.xml.ComponentBindingType getAttributeBinding(int index) throws java.lang.IndexOutOfBoundsException(Code)(Java Doc)
public org.exolab.castor.builder.binding.xml.ComponentBindingType[] getAttributeBinding()(Code)(Java Doc)
public int getAttributeBindingCount()(Code)(Java Doc)
public org.exolab.castor.builder.binding.xml.AutomaticNamingType getAutomaticNaming()(Code)(Java Doc)
public org.exolab.castor.builder.binding.xml.ComponentBindingType getComplexTypeBinding(int index) throws java.lang.IndexOutOfBoundsException(Code)(Java Doc)
public org.exolab.castor.builder.binding.xml.ComponentBindingType[] getComplexTypeBinding()(Code)(Java Doc)
public int getComplexTypeBindingCount()(Code)(Java Doc)
public org.exolab.castor.builder.binding.xml.ComponentBindingType getComponentBinding(int index) throws java.lang.IndexOutOfBoundsException(Code)(Java Doc)
public org.exolab.castor.builder.binding.xml.ComponentBindingType[] getComponentBinding()(Code)(Java Doc)
public int getComponentBindingCount()(Code)(Java Doc)
public org.exolab.castor.builder.binding.xml.types.BindingType getDefaultBindingType()(Code)(Java Doc)
public org.exolab.castor.builder.binding.xml.ComponentBindingType getElementBinding(int index) throws java.lang.IndexOutOfBoundsException(Code)(Java Doc)
public org.exolab.castor.builder.binding.xml.ComponentBindingType[] getElementBinding()(Code)(Java Doc)
public int getElementBindingCount()(Code)(Java Doc)
public org.exolab.castor.builder.binding.xml.ComponentBindingType getEnumBinding(int index) throws java.lang.IndexOutOfBoundsException(Code)(Java Doc)
public org.exolab.castor.builder.binding.xml.ComponentBindingType[] getEnumBinding()(Code)(Java Doc)
public int getEnumBindingCount()(Code)(Java Doc)
public org.exolab.castor.builder.binding.xml.ComponentBindingType getGroupBinding(int index) throws java.lang.IndexOutOfBoundsException(Code)(Java Doc)
public org.exolab.castor.builder.binding.xml.ComponentBindingType[] getGroupBinding()(Code)(Java Doc)
public int getGroupBindingCount()(Code)(Java Doc)
public org.exolab.castor.builder.binding.xml.IncludeType getInclude(int index) throws java.lang.IndexOutOfBoundsException(Code)(Java Doc)
public org.exolab.castor.builder.binding.xml.IncludeType[] getInclude()(Code)(Java Doc)
public int getIncludeCount()(Code)(Java Doc)
public org.exolab.castor.builder.binding.xml.NamingXMLType getNamingXML()(Code)(Java Doc)
public org.exolab.castor.builder.binding.xml.PackageType getPackage(int index) throws java.lang.IndexOutOfBoundsException(Code)(Java Doc)
public org.exolab.castor.builder.binding.xml.PackageType[] getPackage()(Code)(Java Doc)
public int getPackageCount()(Code)(Java Doc)
public org.exolab.castor.builder.binding.xml.ComponentBindingType getSimpleTypeBinding(int index) throws java.lang.IndexOutOfBoundsException(Code)(Java Doc)
public org.exolab.castor.builder.binding.xml.ComponentBindingType[] getSimpleTypeBinding()(Code)(Java Doc)
public int getSimpleTypeBindingCount()(Code)(Java Doc)
public boolean isValid()(Code)(Java Doc)
public java.util.Iterator iterateAttributeBinding()(Code)(Java Doc)
public java.util.Iterator iterateComplexTypeBinding()(Code)(Java Doc)
public java.util.Iterator iterateComponentBinding()(Code)(Java Doc)
public java.util.Iterator iterateElementBinding()(Code)(Java Doc)
public java.util.Iterator iterateEnumBinding()(Code)(Java Doc)
public java.util.Iterator iterateGroupBinding()(Code)(Java Doc)
public java.util.Iterator iterateInclude()(Code)(Java Doc)
public java.util.Iterator iteratePackage()(Code)(Java Doc)
public java.util.Iterator iterateSimpleTypeBinding()(Code)(Java Doc)
public void marshal(java.io.Writer out) throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException(Code)(Java Doc)
public void marshal(org.xml.sax.ContentHandler handler) throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException(Code)(Java Doc)
public void removeAllAttributeBinding()(Code)(Java Doc)
public void removeAllComplexTypeBinding()(Code)(Java Doc)
public void removeAllComponentBinding()(Code)(Java Doc)
public void removeAllElementBinding()(Code)(Java Doc)
public void removeAllEnumBinding()(Code)(Java Doc)
public void removeAllGroupBinding()(Code)(Java Doc)
public void removeAllInclude()(Code)(Java Doc)
public void removeAllPackage()(Code)(Java Doc)
public void removeAllSimpleTypeBinding()(Code)(Java Doc)
public boolean removeAttributeBinding(org.exolab.castor.builder.binding.xml.ComponentBindingType vAttributeBinding)(Code)(Java Doc)
public org.exolab.castor.builder.binding.xml.ComponentBindingType removeAttributeBindingAt(int index)(Code)(Java Doc)
public boolean removeComplexTypeBinding(org.exolab.castor.builder.binding.xml.ComponentBindingType vComplexTypeBinding)(Code)(Java Doc)
public org.exolab.castor.builder.binding.xml.ComponentBindingType removeComplexTypeBindingAt(int index)(Code)(Java Doc)
public boolean removeComponentBinding(org.exolab.castor.builder.binding.xml.ComponentBindingType vComponentBinding)(Code)(Java Doc)
public org.exolab.castor.builder.binding.xml.ComponentBindingType removeComponentBindingAt(int index)(Code)(Java Doc)
public boolean removeElementBinding(org.exolab.castor.builder.binding.xml.ComponentBindingType vElementBinding)(Code)(Java Doc)
public org.exolab.castor.builder.binding.xml.ComponentBindingType removeElementBindingAt(int index)(Code)(Java Doc)
public boolean removeEnumBinding(org.exolab.castor.builder.binding.xml.ComponentBindingType vEnumBinding)(Code)(Java Doc)
public org.exolab.castor.builder.binding.xml.ComponentBindingType removeEnumBindingAt(int index)(Code)(Java Doc)
public boolean removeGroupBinding(org.exolab.castor.builder.binding.xml.ComponentBindingType vGroupBinding)(Code)(Java Doc)
public org.exolab.castor.builder.binding.xml.ComponentBindingType removeGroupBindingAt(int index)(Code)(Java Doc)
public boolean removeInclude(org.exolab.castor.builder.binding.xml.IncludeType vInclude)(Code)(Java Doc)
public org.exolab.castor.builder.binding.xml.IncludeType removeIncludeAt(int index)(Code)(Java Doc)
public boolean removePackage(org.exolab.castor.builder.binding.xml.PackageType vPackage)(Code)(Java Doc)
public org.exolab.castor.builder.binding.xml.PackageType removePackageAt(int index)(Code)(Java Doc)
public boolean removeSimpleTypeBinding(org.exolab.castor.builder.binding.xml.ComponentBindingType vSimpleTypeBinding)(Code)(Java Doc)
public org.exolab.castor.builder.binding.xml.ComponentBindingType removeSimpleTypeBindingAt(int index)(Code)(Java Doc)
public void setAttributeBinding(int index, org.exolab.castor.builder.binding.xml.ComponentBindingType vAttributeBinding) throws java.lang.IndexOutOfBoundsException(Code)(Java Doc)
public void setAttributeBinding(org.exolab.castor.builder.binding.xml.ComponentBindingType[] vAttributeBindingArray)(Code)(Java Doc)
public void setAutomaticNaming(org.exolab.castor.builder.binding.xml.AutomaticNamingType automaticNaming)(Code)(Java Doc)
public void setComplexTypeBinding(int index, org.exolab.castor.builder.binding.xml.ComponentBindingType vComplexTypeBinding) throws java.lang.IndexOutOfBoundsException(Code)(Java Doc)
public void setComplexTypeBinding(org.exolab.castor.builder.binding.xml.ComponentBindingType[] vComplexTypeBindingArray)(Code)(Java Doc)
public void setComponentBinding(int index, org.exolab.castor.builder.binding.xml.ComponentBindingType vComponentBinding) throws java.lang.IndexOutOfBoundsException(Code)(Java Doc)
public void setComponentBinding(org.exolab.castor.builder.binding.xml.ComponentBindingType[] vComponentBindingArray)(Code)(Java Doc)
public void setDefaultBindingType(org.exolab.castor.builder.binding.xml.types.BindingType defaultBindingType)(Code)(Java Doc)
public void setElementBinding(int index, org.exolab.castor.builder.binding.xml.ComponentBindingType vElementBinding) throws java.lang.IndexOutOfBoundsException(Code)(Java Doc)
public void setElementBinding(org.exolab.castor.builder.binding.xml.ComponentBindingType[] vElementBindingArray)(Code)(Java Doc)
public void setEnumBinding(int index, org.exolab.castor.builder.binding.xml.ComponentBindingType vEnumBinding) throws java.lang.IndexOutOfBoundsException(Code)(Java Doc)
public void setEnumBinding(org.exolab.castor.builder.binding.xml.ComponentBindingType[] vEnumBindingArray)(Code)(Java Doc)
public void setGroupBinding(int index, org.exolab.castor.builder.binding.xml.ComponentBindingType vGroupBinding) throws java.lang.IndexOutOfBoundsException(Code)(Java Doc)
public void setGroupBinding(org.exolab.castor.builder.binding.xml.ComponentBindingType[] vGroupBindingArray)(Code)(Java Doc)
public void setInclude(int index, org.exolab.castor.builder.binding.xml.IncludeType vInclude) throws java.lang.IndexOutOfBoundsException(Code)(Java Doc)
public void setInclude(org.exolab.castor.builder.binding.xml.IncludeType[] vIncludeArray)(Code)(Java Doc)
public void setNamingXML(org.exolab.castor.builder.binding.xml.NamingXMLType namingXML)(Code)(Java Doc)
public void setPackage(int index, org.exolab.castor.builder.binding.xml.PackageType vPackage) throws java.lang.IndexOutOfBoundsException(Code)(Java Doc)
public void setPackage(org.exolab.castor.builder.binding.xml.PackageType[] vPackageArray)(Code)(Java Doc)
public void setSimpleTypeBinding(int index, org.exolab.castor.builder.binding.xml.ComponentBindingType vSimpleTypeBinding) throws java.lang.IndexOutOfBoundsException(Code)(Java Doc)
public void setSimpleTypeBinding(org.exolab.castor.builder.binding.xml.ComponentBindingType[] vSimpleTypeBindingArray)(Code)(Java Doc)
public static org.exolab.castor.builder.binding.xml.Binding unmarshalBinding(java.io.Reader reader) throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException(Code)(Java Doc)
public void validate() throws org.exolab.castor.xml.ValidationException(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.