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


java.lang.Object
   org.jibx.binding.model.DefinitionContext

DefinitionContext
public class DefinitionContext (Code)
Definition context information. This is used to track definitions of items that can be referenced by other items. The contexts are nested, so that names not found in a context may be defined by a containing context. The access methods take this into account, automatically delegating to the containing context (if defined) when a lookup fails.
author:
   Dennis M. Sosnoski
version:
   1.0



Constructor Summary
protected  DefinitionContext(DefinitionContext outer)
     Constructor.

Method Summary
public  voidaddFormat(FormatElement def, ValidationContext vctx)
     Add format to set defined at this level.
public  ValidationProblemaddImpliedNamespace(NamespaceElement def, ElementBase ref)
     Add namespace declaration to set defined at this level.
public  voidaddMappedName(NameAttributes name, MappingElement def, ValidationContext vctx)
     Add mapped name to set defined at this level.
public  ValidationProblemaddNamedStructure(ContainerElementBase def)
     Add named structure to set defined in this context.
public  ValidationProblemaddNamespace(NamespaceElement def)
     Add namespace to set defined at this level.
public  voidaddTemplate(TemplateElementBase def, ValidationContext vctx)
     Add template or mapping to set defined at this level.
public  NamespaceElementgetAttributeNamespace(NameAttributes name)
     Get namespace definition for attribute name.
public  FormatElementgetBestFormat(IClass clas)
     Get best format definition for class.
public  DefinitionContextgetContaining()
     Get containing context.
public  NamespaceElementgetElementNamespace(NameAttributes name)
     Get namespace definition for element name.
 DefinitionContextgetIncludeCopy()
     Copy a context for use by an included binding.
public  FormatElementgetNamedFormat(String name)
     Get named format definition.
public  ContainerElementBasegetNamedStructure(String label)
     Get labeled structure definition within this context.
public  TemplateElementBasegetNamedTemplate(String name)
     Get named template definition.
public  NamespaceElementgetNamespaceForPrefix(String prefix)
     Get namespace for prefix.
public  ArrayListgetNamespaces()
    
public  FormatElementgetSpecificFormat(String type)
     Get specific format definition for type.
public  TemplateElementBasegetSpecificTemplate(String type)
     Get specific template definition for type.
 voidinjectNamespaces(DefinitionContext to)
     Inject namespaces from this context into another context.
public  booleanisCompatibleTemplateType(IClass clas)
     Checks if a class is compatible with one or more templates.


Constructor Detail
DefinitionContext
protected DefinitionContext(DefinitionContext outer)(Code)
Constructor.
Parameters:
  outer - containing definition context (null ifat root of tree)




Method Detail
addFormat
public void addFormat(FormatElement def, ValidationContext vctx)(Code)
Add format to set defined at this level.
Parameters:
  def - format definition element to be added
Parameters:
  vctx - validation context in use



addImpliedNamespace
public ValidationProblem addImpliedNamespace(NamespaceElement def, ElementBase ref)(Code)
Add namespace declaration to set defined at this level. This method treats all namespaces as though they were declared with default="none".
Parameters:
  def - namespace definition to be added (duplicates ignored)
Parameters:
  ref - binding element referencing the namespace problem information, or null if no problem



addMappedName
public void addMappedName(NameAttributes name, MappingElement def, ValidationContext vctx)(Code)
Add mapped name to set defined at this level.
Parameters:
  name - mapped name
Parameters:
  def - mapping definition
Parameters:
  vctx - validation context



addNamedStructure
public ValidationProblem addNamedStructure(ContainerElementBase def)(Code)
Add named structure to set defined in this context. For named structures only the definition context associated with the binding element should be used. This is a kludge, but will go away in 2.0.
Parameters:
  def - structure definition problem information, or null if no problem



addNamespace
public ValidationProblem addNamespace(NamespaceElement def)(Code)
Add namespace to set defined at this level.
Parameters:
  def - namespace definition element to be added (duplicates ignored) problem information, or null if no problem



addTemplate
public void addTemplate(TemplateElementBase def, ValidationContext vctx)(Code)
Add template or mapping to set defined at this level.
Parameters:
  def - template definition element to be added
Parameters:
  vctx - validation context in use



getAttributeNamespace
public NamespaceElement getAttributeNamespace(NameAttributes name)(Code)
Get namespace definition for attribute name. TODO: handle multiple prefixes for namespace, proper screening
Parameters:
  name - attribute group defining name namespace definition, or null if none that matches



getBestFormat
public FormatElement getBestFormat(IClass clas)(Code)
Get best format definition for class. Finds the format based on the inheritance hierarchy for the supplied class. If a specific format for the actual class is not found (either in this or a containing level) this returns the most specific superclass format.
Parameters:
  clas - information for target conversion class conversion definition for class, or null if nocompatible conversion defined



getContaining
public DefinitionContext getContaining()(Code)
Get containing context. containing context information (null if at root oftree)



getElementNamespace
public NamespaceElement getElementNamespace(NameAttributes name)(Code)
Get namespace definition for element name. TODO: handle multiple prefixes for namespace, proper screening
Parameters:
  name - attribute group defining name namespace definition, or null if none that matches



getIncludeCopy
DefinitionContext getIncludeCopy()(Code)
Copy a context for use by an included binding. The duplicated context has the same containing context as the original, and shared reference structures for formats and templates, but only a static copy of the namespace definitions. context copy for included binding



getNamedFormat
public FormatElement getNamedFormat(String name)(Code)
Get named format definition. Finds the format with the supplied name, checking the containing definitions if the format is not found at this level.
Parameters:
  name - conversion name to be found conversion definition with specified name, or nullif no conversion with that name



getNamedStructure
public ContainerElementBase getNamedStructure(String label)(Code)
Get labeled structure definition within this context. For named structures only the definition context associated with the binding element should be used. This is a kludge, but will go away in 2.0.
Parameters:
  label - structure definition label structure definition with specified label, or nullif not defined



getNamedTemplate
public TemplateElementBase getNamedTemplate(String name)(Code)
Get named template definition. Finds the template with the supplied name, checking the containing definitions if the template is not found at this level. TODO: Make this specific to TemplateElement in 2.0
Parameters:
  name - conversion name to be found template definition for class, or null if notemplate with that name



getNamespaceForPrefix
public NamespaceElement getNamespaceForPrefix(String prefix)(Code)
Get namespace for prefix.
Parameters:
  prefix - namespace definition in this context, null if none



getNamespaces
public ArrayList getNamespaces()(Code)
Get the namespaces defined in this context namespace definitions (may be null if none)



getSpecificFormat
public FormatElement getSpecificFormat(String type)(Code)
Get specific format definition for type. Finds with an exact match on the class name, checking the containing definitions if a format is not found at this level.
Parameters:
  type - fully qualified class name to be converted conversion definition for class, or null if notfound



getSpecificTemplate
public TemplateElementBase getSpecificTemplate(String type)(Code)
Get specific template definition for type. Finds with an exact match on the class name, checking the containing definitions if a template is not found at this level.
Parameters:
  type - fully qualified class name to be converted template definition for type, or null if notfound



injectNamespaces
void injectNamespaces(DefinitionContext to)(Code)
Inject namespaces from this context into another context. This is intended for includes, where the included binding inherits the namespace declarations of the containing binding.
Parameters:
  to -



isCompatibleTemplateType
public boolean isCompatibleTemplateType(IClass clas)(Code)
Checks if a class is compatible with one or more templates. This checks based on the inheritance hierarchy for the supplied class, looks for the class or interface itself as well as any subclasses or implementations.
Parameters:
  clas - information for target class true if compatible type, false if not



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.