Java Doc for JAXBContextImpl.java in  » 6.0-JDK-Modules » jaxb-impl » com » sun » xml » bind » v2 » runtime » 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 » 6.0 JDK Modules » jaxb impl » com.sun.xml.bind.v2.runtime 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   javax.xml.bind.JAXBContext
      com.sun.xml.bind.api.JAXBRIContext
         com.sun.xml.bind.v2.runtime.JAXBContextImpl

JAXBContextImpl
final public class JAXBContextImpl extends JAXBRIContext (Code)
This class provides the implementation of JAXBContext.
version:
   $Revision: 1.75.2.19 $


Field Summary
final public  booleanallNillable
    
protected  Map<RuntimeTypeInfo, JaxBeanInfo>beanInfos
     All created JaxBeanInfo s.
final protected  booleanc14nSupport
     true to reorder attributes lexicographically in preparation of the c14n support.
final public  booleanfastBoot
     If true, we aim for faster JAXBContext instanciation performance, instead of going after efficient sustained unmarshalling/marshalling performance.
final public  Pool<Marshaller>marshallerPool
     Pool of Marshaller s.
public  NameBuildernameBuilder
     Used to assign indices to known names in this grammar.
final public  NameListnameList
     Keeps the list of known names.
final public  Pool<Unmarshaller>unmarshallerPool
    
final public  booleanxmlAccessorFactorySupport
    

Constructor Summary
public  JAXBContextImpl(Class[] classes, Collection<TypeReference> typeRefs, Map<Class, Class> subclassReplacements, String defaultNsUri, boolean c14nSupport, RuntimeAnnotationReader ar, boolean xmlAccessorFactorySupport, boolean allNillable)
    
Parameters:
  typeRefs - used to build Bridges.

Method Summary
public  JAXBContextImplcreateAugmented(Class clazz)
     Creates a JAXBContextImpl that includes the specified additional classes.
public  Binder<T>createBinder(Class<T> domType)
    
public  Binder<Node>createBinder()
    
public  BridgecreateBridge(TypeReference ref)
    
public  BridgeContextcreateBridgeContext()
    
static  DocumentcreateDom()
     Creates a new DOM document.
public  JAXBIntrospectorcreateJAXBIntrospector()
    
public  MarshallerImplcreateMarshaller()
    
public  SchemaOutputResolvercreateTestResolver()
     Used for testing.
static  TransformercreateTransformer()
     Creates a new identity transformer.
public static  TransformerHandlercreateTransformerHandler()
     Creates a new identity transformer.
public  UnmarshallerImplcreateUnmarshaller()
    
public  ValidatorcreateValidator()
    
public  voidgenerateEpisode(Result output)
    
public  voidgenerateSchema(SchemaOutputResolver outputResolver)
    
final public  JaxBeanInfogetBeanInfo(Object o)
     Gets the JaxBeanInfo object that can handle the given JAXB-bound object.
final public  JaxBeanInfogetBeanInfo(Object o, boolean fatal)
     Gets the JaxBeanInfo object that can handle the given JAXB-bound object.
final public  JaxBeanInfo<T>getBeanInfo(Class<T> clazz)
     Gets the JaxBeanInfo object that can handle the given JAXB-bound class.
final public  JaxBeanInfo<T>getBeanInfo(Class<T> clazz, boolean fatal)
     Gets the JaxBeanInfo object that can handle the given JAXB-bound class.
public  StringgetBuildId()
    
public  ElementBeanInfoImplgetElement(Class scope, QName name)
    
public  QNamegetElementName(Object o)
    
public  RawAccessorgetElementPropertyAccessor(Class wrapperBean, String nsUri, String localName)
    
public  JaxBeanInfogetGlobalType(QName name)
     Gets the JaxBeanInfo for the given named XML Schema type. null if the type name is not recognized.
public  List<String>getKnownNamespaceURIs()
    
public  StringgetNearestTypeName(QName name)
     Finds a type name that this context recognizes which is "closest" to the given type name.
public  intgetNumberOfAttributeNames()
    
public  intgetNumberOfElementNames()
    
public  intgetNumberOfLocalNames()
    
protected  JaxBeanInfogetOrCreate(RuntimeEnumLeafInfo eli)
    
protected  ClassBeanInfoImplgetOrCreate(RuntimeClassInfo ci)
    
protected  JaxBeanInfogetOrCreate(RuntimeArrayInfo ai)
    
public  JaxBeanInfogetOrCreate(RuntimeTypeInfo e)
    
public  QNamegetTypeName(TypeReference tr)
    
public synchronized  Encoded[]getUTF8NameTable()
    
public  Set<QName>getValidRootNames()
     Returns the set of valid root tag names.
public  StringgetXMIMEContentType(Object o)
     Gets the value of the xmime:contentType attribute on the given object, or null if for some reason it couldn't be found, including any error.
public  booleanhasSwaRef()
     True if this JAXBContext has XmlAttachmentRef .
final public  LoaderselectRootLoader(UnmarshallingContext.State state, TagName tag)
     Based on the tag name, determine what object to unmarshal, and then set a new object and its loader to the current unmarshaller state.
public  StringtoString()
    

Field Detail
allNillable
final public boolean allNillable(Code)

See Also:   JAXBRIContext.TREAT_EVERYTHING_NILLABLE



beanInfos
protected Map<RuntimeTypeInfo, JaxBeanInfo> beanInfos(Code)
All created JaxBeanInfo s. Updated from each JaxBeanInfo s constructors to avoid infinite recursion for a cyclic reference.

This map is only used while the JAXBContextImpl is built and set to null to avoid keeping references too long.




c14nSupport
final protected boolean c14nSupport(Code)
true to reorder attributes lexicographically in preparation of the c14n support.



fastBoot
final public boolean fastBoot(Code)
If true, we aim for faster JAXBContext instanciation performance, instead of going after efficient sustained unmarshalling/marshalling performance.
since:
   2.0.4



marshallerPool
final public Pool<Marshaller> marshallerPool(Code)
Pool of Marshaller s.



nameBuilder
public NameBuilder nameBuilder(Code)
Used to assign indices to known names in this grammar. Reset to null once the build phase is completed.



nameList
final public NameList nameList(Code)
Keeps the list of known names. This field is set once the build pahse is completed.



unmarshallerPool
final public Pool<Unmarshaller> unmarshallerPool(Code)



xmlAccessorFactorySupport
final public boolean xmlAccessorFactorySupport(Code)
Flag that user has provided a custom AccessorFactory for JAXB to use




Constructor Detail
JAXBContextImpl
public JAXBContextImpl(Class[] classes, Collection<TypeReference> typeRefs, Map<Class, Class> subclassReplacements, String defaultNsUri, boolean c14nSupport, RuntimeAnnotationReader ar, boolean xmlAccessorFactorySupport, boolean allNillable) throws JAXBException(Code)

Parameters:
  typeRefs - used to build Bridges. Can be empty.
Parameters:
  c14nSupport - JAXBContextImpl.c14nSupport.
Parameters:
  xmlAccessorFactorySupport - Use custom com.sun.xml.bind.v2.runtime.reflect.Accessor implementation.




Method Detail
createAugmented
public JAXBContextImpl createAugmented(Class clazz) throws JAXBException(Code)
Creates a JAXBContextImpl that includes the specified additional classes.



createBinder
public Binder<T> createBinder(Class<T> domType)(Code)



createBinder
public Binder<Node> createBinder()(Code)



createBridge
public Bridge createBridge(TypeReference ref)(Code)



createBridgeContext
public BridgeContext createBridgeContext()(Code)



createDom
static Document createDom()(Code)
Creates a new DOM document.



createJAXBIntrospector
public JAXBIntrospector createJAXBIntrospector()(Code)



createMarshaller
public MarshallerImpl createMarshaller()(Code)



createTestResolver
public SchemaOutputResolver createTestResolver()(Code)
Used for testing.



createTransformer
static Transformer createTransformer()(Code)
Creates a new identity transformer.



createTransformerHandler
public static TransformerHandler createTransformerHandler()(Code)
Creates a new identity transformer.



createUnmarshaller
public UnmarshallerImpl createUnmarshaller()(Code)



createValidator
public Validator createValidator()(Code)



generateEpisode
public void generateEpisode(Result output)(Code)



generateSchema
public void generateSchema(SchemaOutputResolver outputResolver) throws IOException(Code)



getBeanInfo
final public JaxBeanInfo getBeanInfo(Object o)(Code)
Gets the JaxBeanInfo object that can handle the given JAXB-bound object.

This method traverses the base classes of the given object. nullif c isn't a JAXB-bound class and fatal==false.




getBeanInfo
final public JaxBeanInfo getBeanInfo(Object o, boolean fatal) throws JAXBException(Code)
Gets the JaxBeanInfo object that can handle the given JAXB-bound object.
Parameters:
  fatal - if true, the failure to look up will throw an exception.Otherwise it will just return null.



getBeanInfo
final public JaxBeanInfo<T> getBeanInfo(Class<T> clazz)(Code)
Gets the JaxBeanInfo object that can handle the given JAXB-bound class.

This method doesn't look for base classes. nullif c isn't a JAXB-bound class and fatal==false.




getBeanInfo
final public JaxBeanInfo<T> getBeanInfo(Class<T> clazz, boolean fatal) throws JAXBException(Code)
Gets the JaxBeanInfo object that can handle the given JAXB-bound class.
Parameters:
  fatal - if true, the failure to look up will throw an exception.Otherwise it will just return null.



getBuildId
public String getBuildId()(Code)



getElement
public ElementBeanInfoImpl getElement(Class scope, QName name)(Code)



getElementName
public QName getElementName(Object o) throws JAXBException(Code)



getElementPropertyAccessor
public RawAccessor getElementPropertyAccessor(Class wrapperBean, String nsUri, String localName) throws JAXBException(Code)



getGlobalType
public JaxBeanInfo getGlobalType(QName name)(Code)
Gets the JaxBeanInfo for the given named XML Schema type. null if the type name is not recognized. For schemalanguages other than XML Schema, this method alwaysreturns null.



getKnownNamespaceURIs
public List<String> getKnownNamespaceURIs()(Code)



getNearestTypeName
public String getNearestTypeName(QName name)(Code)
Finds a type name that this context recognizes which is "closest" to the given type name.

This method is used for error recovery.




getNumberOfAttributeNames
public int getNumberOfAttributeNames()(Code)



getNumberOfElementNames
public int getNumberOfElementNames()(Code)



getNumberOfLocalNames
public int getNumberOfLocalNames()(Code)



getOrCreate
protected JaxBeanInfo getOrCreate(RuntimeEnumLeafInfo eli)(Code)



getOrCreate
protected ClassBeanInfoImpl getOrCreate(RuntimeClassInfo ci)(Code)



getOrCreate
protected JaxBeanInfo getOrCreate(RuntimeArrayInfo ai)(Code)



getOrCreate
public JaxBeanInfo getOrCreate(RuntimeTypeInfo e)(Code)



getTypeName
public QName getTypeName(TypeReference tr)(Code)



getUTF8NameTable
public synchronized Encoded[] getUTF8NameTable()(Code)



getValidRootNames
public Set<QName> getValidRootNames()(Code)
Returns the set of valid root tag names. For diagnostic use.



getXMIMEContentType
public String getXMIMEContentType(Object o)(Code)
Gets the value of the xmime:contentType attribute on the given object, or null if for some reason it couldn't be found, including any error.



hasSwaRef
public boolean hasSwaRef()(Code)
True if this JAXBContext has XmlAttachmentRef .



selectRootLoader
final public Loader selectRootLoader(UnmarshallingContext.State state, TagName tag)(Code)
Based on the tag name, determine what object to unmarshal, and then set a new object and its loader to the current unmarshaller state. null if the given name pair is not recognized.



toString
public String toString()(Code)



Fields inherited from com.sun.xml.bind.api.JAXBRIContext
final public static String ANNOTATION_READER(Code)(Java Doc)
final public static String CANONICALIZATION_SUPPORT(Code)(Java Doc)
final public static String DEFAULT_NAMESPACE_REMAP(Code)(Java Doc)
final public static String ENABLE_XOP(Code)(Java Doc)
final public static String SUBCLASS_REPLACEMENTS(Code)(Java Doc)
final public static String TREAT_EVERYTHING_NILLABLE(Code)(Java Doc)
final public static String TYPE_REFERENCES(Code)(Java Doc)
final public static String XMLACCESSORFACTORY_SUPPORT(Code)(Java Doc)

Methods inherited from com.sun.xml.bind.api.JAXBRIContext
abstract public Bridge createBridge(TypeReference ref)(Code)(Java Doc)
abstract public BridgeContext createBridgeContext()(Code)(Java Doc)
abstract public void generateEpisode(Result output)(Code)(Java Doc)
abstract public void generateSchema(SchemaOutputResolver outputResolver) throws IOException(Code)(Java Doc)
public static Type getBaseType(Type type, Class baseType)(Code)(Java Doc)
abstract public String getBuildId()(Code)(Java Doc)
abstract public QName getElementName(Object o) throws JAXBException(Code)(Java Doc)
abstract public RawAccessor<B, V> getElementPropertyAccessor(Class<B> wrapperBean, String nsUri, String localName) throws JAXBException(Code)(Java Doc)
abstract public List<String> getKnownNamespaceURIs()(Code)(Java Doc)
abstract public QName getTypeName(TypeReference tr)(Code)(Java Doc)
abstract public boolean hasSwaRef()(Code)(Java Doc)
public static String mangleNameToClassName(String localName)(Code)(Java Doc)
public static String mangleNameToPropertyName(String localName)(Code)(Java Doc)
public static String mangleNameToVariableName(String localName)(Code)(Java Doc)
public static JAXBRIContext newInstance(Class[] classes, Collection<TypeReference> typeRefs, Map<Class, Class> subclassReplacements, String defaultNamespaceRemap, boolean c14nSupport, RuntimeAnnotationReader ar) throws JAXBException(Code)(Java Doc)
public static JAXBRIContext newInstance(Class[] classes, Collection<TypeReference> typeRefs, String defaultNamespaceRemap, boolean c14nSupport) throws JAXBException(Code)(Java Doc)

Fields inherited from javax.xml.bind.JAXBContext
final public static String JAXB_CONTEXT_FACTORY(Code)(Java Doc)

Methods inherited from javax.xml.bind.JAXBContext
public Binder<T> createBinder(Class<T> domType)(Code)(Java Doc)
public Binder<Node> createBinder()(Code)(Java Doc)
public JAXBIntrospector createJAXBIntrospector()(Code)(Java Doc)
abstract public Marshaller createMarshaller() throws JAXBException(Code)(Java Doc)
abstract public Unmarshaller createUnmarshaller() throws JAXBException(Code)(Java Doc)
abstract public Validator createValidator() throws JAXBException(Code)(Java Doc)
public void generateSchema(SchemaOutputResolver outputResolver) throws IOException(Code)(Java Doc)
public static JAXBContext newInstance(String contextPath) throws JAXBException(Code)(Java Doc)
public static JAXBContext newInstance(String contextPath, ClassLoader classLoader) throws JAXBException(Code)(Java Doc)
public static JAXBContext newInstance(String contextPath, ClassLoader classLoader, Map<String, ?> properties) throws JAXBException(Code)(Java Doc)
public static JAXBContext newInstance(Class... classesToBeBound) throws JAXBException(Code)(Java Doc)
public static JAXBContext newInstance(Class[] classesToBeBound, Map<String, ?> properties) throws JAXBException(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.