KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > xb > binding > metadata > unmarshalling > DocumentBindingFactory


1 /*
2  * JBoss, the OpenSource J2EE webOS
3  *
4  * Distributable under LGPL license.
5  * See terms of license at gnu.org.
6  */

7 package org.jboss.xb.binding.metadata.unmarshalling;
8
9 import org.jboss.xb.binding.metadata.unmarshalling.impl.DocumentBindingFactoryImpl;
10
11 /**
12  * @author <a HREF="mailto:alex@jboss.org">Alexey Loubyansky</a>
13  * @version <tt>$Revision: 1.1.2.1 $</tt>
14  */

15 public abstract class DocumentBindingFactory
16 {
17    public static DocumentBindingFactory newInstance()
18    {
19       return new DocumentBindingFactoryImpl();
20    }
21
22    public abstract DocumentBindingStack newDocumentBindingStack();
23
24    public abstract DocumentBinding newDocumentBinding();
25
26    public abstract NamespaceBinding bindNamespace(DocumentBinding doc, String JavaDoc namespaceUri, String JavaDoc javaPackage);
27
28    public abstract TopElementBinding bindTopElement(NamespaceBinding ns, String JavaDoc elementName, Class JavaDoc javaClass);
29
30    public abstract ElementBinding bindElement(BasicElementBinding parent,
31                                               String JavaDoc namespaceUri,
32                                               String JavaDoc elementName,
33                                               String JavaDoc fieldName,
34                                               Class JavaDoc javaType);
35
36    public abstract AttributeBinding bindAttribute(BasicElementBinding parent,
37                                                   String JavaDoc namespaceUri,
38                                                   String JavaDoc attributeName,
39                                                   String JavaDoc fieldName,
40                                                   Class JavaDoc javaType);
41
42    public abstract XmlValueBinding bindValue(XmlValueContainer container,
43                                              String JavaDoc fieldName,
44                                              Class JavaDoc javaType);
45 }
46
Popular Tags