Java Doc for DataDictionaryBuilder.java in  » ERP-CRM-Financial » Kuali-Financial-System » org » kuali » core » datadictionary » 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 » ERP CRM Financial » Kuali Financial System » org.kuali.core.datadictionary 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.kuali.core.datadictionary.DataDictionaryBuilder

DataDictionaryBuilder
public class DataDictionaryBuilder (Code)
Assembles a DataDictionary from the contents of one or more specifed XML files or directories containing XML files.


Field Summary
final protected static  String[][]DTD_REGISTRATION_INFO
    
final protected static  StringPACKAGE_PREFIX
    
protected  DataDictionarydataDictionary
    

Constructor Summary
public  DataDictionaryBuilder(ValidationCompletionUtils validationCompletionUtils)
    

Method Summary
protected synchronized  voidaddEntries(String sourceName, boolean allowOverrides)
     Parses each XML file on the given list, adding the class entry or entries defined there to the current DataDictionary.
protected  voidaddEntriesWrapper(String sourceName, boolean sourceMustExist, boolean allowOverrides)
     Wraps addEntries with a try-catch block which prevents SourceExceptions from escaping if sourceMustExist is false.
public  voidaddOverrideEntries(String sourceName, boolean sourceMustExist)
     Given the name of an XML file, or of a directory containing XML files, adds the entries defined in the XML file or files to the DataDictionary being built.
public  voidaddUniqueEntries(String sourceName, boolean sourceMustExist)
     Given the name of an XML file, or of a directory containing XML files, adds the entries defined in the XML file or files to the DataDictionary being built.
protected  DigesterbuildDigester(Rules rules)
    
protected static  voidclearCurrentDigester()
    
protected  voidclearCurrentFilename()
    
protected  voiddigest(InputStream inputStream, String fileName, Digester digester)
    
protected  voiddigest(File file, Digester digester)
    
protected static  DigestergetCurrentDigester()
    
public static  StringgetCurrentFileName()
    
public static  intgetCurrentLineNumber()
    
public  DataDictionarygetDataDictionary()
    
protected  booleangetExceptionsOccurred()
    
protected  Map<String, String>getFileLocationMap()
    
public  KualiConfigurationServicegetKualiConfigurationService()
    
public  KualiGroupServicegetKualiGroupService()
    
protected  voidindexSource(String sourceName, boolean sourceMustExist)
    
protected  voidindexSource(File dir)
    
protected  RulesloadRules()
    
public  voidparseBO(String boName, boolean allowsOverrides)
    
public  voidparseDocument(String documentTypeDDKey, boolean allowsOverrides)
    
public  voidparseMaintenanceDocument(String businessObjectDDKey, boolean allowsOverrides)
    
protected static  voidsetCurrentDigester(Digester newDigester)
    
protected  voidsetCurrentFilename(String newFilename)
    
protected  voidsetExceptionsOccurred(boolean exceptionsOccured)
    
public  voidsetKualiConfigurationService(KualiConfigurationService kualiConfigurationService)
    
public  voidsetKualiGroupService(KualiGroupService kualiGroupService)
    
protected  voidsetupDigester(Digester digester)
    

Field Detail
DTD_REGISTRATION_INFO
final protected static String[][] DTD_REGISTRATION_INFO(Code)



PACKAGE_PREFIX
final protected static String PACKAGE_PREFIX(Code)



dataDictionary
protected DataDictionary dataDictionary(Code)




Constructor Detail
DataDictionaryBuilder
public DataDictionaryBuilder(ValidationCompletionUtils validationCompletionUtils)(Code)
Default constructor




Method Detail
addEntries
protected synchronized void addEntries(String sourceName, boolean allowOverrides)(Code)
Parses each XML file on the given list, adding the class entry or entries defined there to the current DataDictionary. If allowOverrides is true, treats duplicate entries (second and subsequent entry using a given classname) as an error; otherwise, the last entry processed using a given classname will replace earlier entries.
Parameters:
  sourceName - name of XML file or directory containing XML files
Parameters:
  sourceMustExist - throw a SourceException if the given source cannot be found
Parameters:
  allowOverrides -
throws:
  ParseException - if an error occurs when processing the given list of xmlFiles
throws:
  DuplicateEntryException - if allowOverrides is false, and an entry is defined using aclassname for which an entry already exists



addEntriesWrapper
protected void addEntriesWrapper(String sourceName, boolean sourceMustExist, boolean allowOverrides)(Code)
Wraps addEntries with a try-catch block which prevents SourceExceptions from escaping if sourceMustExist is false.
throws:
  SourceException - if the given source does not exist, and sourceMustExist istrue



addOverrideEntries
public void addOverrideEntries(String sourceName, boolean sourceMustExist)(Code)
Given the name of an XML file, or of a directory containing XML files, adds the entries defined in the XML file or files to the DataDictionary being built. Duplicate class entries will override earlier class entries.
Parameters:
  sourceName - XML file or directory containing XML files to be added
Parameters:
  sourceMustExist - throw a SourceException if the given source cannot be found
throws:
  IllegalArgumentException - if the given sourceName is blank
throws:
  ParseException - if an error occurs processing an entry file
throws:
  SourceException - if sourceMustExist is true and the source can't be found



addUniqueEntries
public void addUniqueEntries(String sourceName, boolean sourceMustExist)(Code)
Given the name of an XML file, or of a directory containing XML files, adds the entries defined in the XML file or files to the DataDictionary being built. Duplicate class entries (antries using a classname already in use) will result in a DuplicateEntryException being added to the cumulative entryExceptions list. If sourceMustExist is true, a nonexistent source will result in a SourceException being thrown.
Parameters:
  sourceName - XML file or directory containing XML files to be added
Parameters:
  sourceMustExist - throw a SourceException if the given source cannot be found
throws:
  IllegalArgumentException - if the given sourceName is blank
throws:
  DuplicateEntryException - if one of the files being added contains an entry using aclassname for which an entrry has already been defined
throws:
  ParseException - if an error occurs processing an entry file
throws:
  SourceException - if sourceMustExist is true and the source can't be found



buildDigester
protected Digester buildDigester(Rules rules)(Code)
fully-initialized Digester used to process entry XML files



clearCurrentDigester
protected static void clearCurrentDigester()(Code)



clearCurrentFilename
protected void clearCurrentFilename()(Code)



digest
protected void digest(InputStream inputStream, String fileName, Digester digester) throws Exception(Code)



digest
protected void digest(File file, Digester digester) throws IOException, SAXException(Code)



getCurrentDigester
protected static Digester getCurrentDigester()(Code)



getCurrentFileName
public static String getCurrentFileName()(Code)
name of the XML file currently being parsed
throws:
  IllegalStateException - if parsing is not in progress



getCurrentLineNumber
public static int getCurrentLineNumber()(Code)
line number in the XML file currently being parsed
throws:
  IllegalStateException - if parsing is not in progress



getDataDictionary
public DataDictionary getDataDictionary()(Code)
the current dataDictionary
throws:
  IllegalStateException - if any exceptions occurred during calls to add*Entriesconstructing the dataDictionary



getExceptionsOccurred
protected boolean getExceptionsOccurred()(Code)



getFileLocationMap
protected Map<String, String> getFileLocationMap()(Code)



getKualiConfigurationService
public KualiConfigurationService getKualiConfigurationService()(Code)



getKualiGroupService
public KualiGroupService getKualiGroupService()(Code)



indexSource
protected void indexSource(String sourceName, boolean sourceMustExist) throws IOException(Code)



indexSource
protected void indexSource(File dir)(Code)



loadRules
protected Rules loadRules()(Code)
Rules loaded from the appropriate XML file



parseBO
public void parseBO(String boName, boolean allowsOverrides)(Code)



parseDocument
public void parseDocument(String documentTypeDDKey, boolean allowsOverrides)(Code)



parseMaintenanceDocument
public void parseMaintenanceDocument(String businessObjectDDKey, boolean allowsOverrides)(Code)



setCurrentDigester
protected static void setCurrentDigester(Digester newDigester)(Code)



setCurrentFilename
protected void setCurrentFilename(String newFilename)(Code)



setExceptionsOccurred
protected void setExceptionsOccurred(boolean exceptionsOccured)(Code)



setKualiConfigurationService
public void setKualiConfigurationService(KualiConfigurationService kualiConfigurationService)(Code)



setKualiGroupService
public void setKualiGroupService(KualiGroupService kualiGroupService)(Code)



setupDigester
protected void setupDigester(Digester digester)(Code)



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.