Java Doc for AbstractXMLAdapter.java in  » Rule-Engine » Mandarax » org » mandarax » xkb » framework » 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 » Rule Engine » Mandarax » org.mandarax.xkb.framework 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.mandarax.xkb.framework.AbstractXMLAdapter

All known Subclasses:   org.mandarax.xkb.framework.XMLAdapter4Facts,  org.mandarax.xkb.framework.CachedXMLAdapter,  org.mandarax.xkb.framework.XMLAdapter4MandaraxLibPredicates,  org.mandarax.xkb.framework.XMLAdapter4Rules2,  org.mandarax.xkb.framework.XMLAdapter4Queries2,  org.mandarax.xkb.framework.XMLAdapter4Facts2,  org.mandarax.xkb.framework.XMLAdapter4Types,  org.mandarax.xkb.framework.XMLAdapter4Rules,  org.mandarax.xkb.framework.XMLAdapter4KnowledgeBases,  org.mandarax.xkb.framework.XMLAdapter4ComplexTerms,  org.mandarax.xkb.framework.XMLAdapter4JPredicates,  org.mandarax.xkb.framework.XMLAdapter4Comparators,  org.mandarax.xkb.framework.XMLAdapter4SQLFunctions2,  org.mandarax.xkb.framework.XMLAdapter4Methods,  org.mandarax.xkb.framework.XMLAdapter4KnowledgeBases2,  org.mandarax.xkb.framework.XMLAdapter4SQLFunctions,  org.mandarax.xkb.framework.XMLAdapter4ConstantTerms,  org.mandarax.xkb.framework.XMLAdapter4MandaraxLibFunctions,  org.mandarax.xkb.framework.XMLAdapter4Queries,  org.mandarax.xkb.framework.XMLAdapter4SQLClauseSets,  org.mandarax.xkb.framework.XMLAdapter4SQLClauseSets2,  org.mandarax.xkb.framework.XMLAdapter4JFunctions,  org.mandarax.xkb.framework.XMLAdapter4DynaBeanFunctions,  org.mandarax.xkb.framework.XMLAdapter4VariableTerms,  org.mandarax.xkb.framework.XMLAdapter4Prerequisites,  org.mandarax.xkb.framework.XMLAdapter4SimplePredicates,
AbstractXMLAdapter
abstract public class AbstractXMLAdapter implements XMLAdapter,LogCategories(Code)
An abstract class implementing XMLAdapter. Some utility methods are implemented here.
author:
   Jens Dietrich
version:
   3.4 <7 March 05>
since:
   1.6


Field Summary
protected  LogicFactorylfactory
    


Method Summary
protected  voidaddProperties(Element e, ClauseSet cs)
     Add additional properties to an element representing a clause set.
protected  voidaddProperties(Element e, Query q)
     Add additional properties to an element representing a query.
protected  voidcheck(Object obj, Class clazz)
     Utility method that checks the type of an object and throws an exception if the object is not an instance of the respective class.
protected  voidexportChildren(Object[] objs, Element parent, String kindOfObject, GenericDriver driver, Map cache)
     Utility method to export an array of objects and add the elements to the parent.
protected  voidexportChildren(Collection objs, Element parent, String kindOfObject, GenericDriver driver, Map cache)
     Utility method to export a collection of objects and add the elements to the parent.
protected  ElementexportObject(Object obj, String kindOfObject, GenericDriver driver, Map cache)
     Utility method that locates the appropriate driver and exports an object using this driver.
protected  StringgetFunctionType(Function f)
     Get the type of the function, e.g.
protected  StringgetPredicateType(Predicate p)
     Get the type of the predicate, e.g.
protected  StringgetTermType(Term t)
     Get the type of the term, e.g.
protected  ObjectimportChild(Element parent, String name, GenericDriver driver, Map cache, LogicFactory lfactory)
     Utility method to import a child (the first child) with a certain name (not the tag name but the symbolic name as defined in GenericDriver) of the given parent element.
protected  ObjectimportChildren(Element parent, String name, GenericDriver driver, Map cache, LogicFactory lfactory, Class targetType)
     Utility method to import the children with a certain name (not the tag name but the symbolic name as defined in GenericDriver) of the given parent element.
protected  voidloadProperties(Element e, ClauseSet cs)
     Load the properties into the clause set.
protected  voidloadProperties(Element e, Query q)
     Load the properties into the query.

Field Detail
lfactory
protected LogicFactory lfactory(Code)





Method Detail
addProperties
protected void addProperties(Element e, ClauseSet cs)(Code)
Add additional properties to an element representing a clause set.
Parameters:
  e - an element
Parameters:
  cs - a clause set



addProperties
protected void addProperties(Element e, Query q)(Code)
Add additional properties to an element representing a query.
Parameters:
  e - an element
Parameters:
  q - a query



check
protected void check(Object obj, Class clazz) throws XKBException(Code)
Utility method that checks the type of an object and throws an exception if the object is not an instance of the respective class.
Parameters:
  obj - an object
Parameters:
  clazz - a class



exportChildren
protected void exportChildren(Object[] objs, Element parent, String kindOfObject, GenericDriver driver, Map cache) throws XKBException(Code)
Utility method to export an array of objects and add the elements to the parent.
Parameters:
  objs - the objects
Parameters:
  parent - the parent element
Parameters:
  kindOfObject - the kind of object, usually a constant defined in GenericDriver
Parameters:
  driver - the generic driver
Parameters:
  cache - a cache used in order to associate the sameid with various occurences of the same object
exception:
  an - XKBException is thrown if export fails



exportChildren
protected void exportChildren(Collection objs, Element parent, String kindOfObject, GenericDriver driver, Map cache) throws XKBException(Code)
Utility method to export a collection of objects and add the elements to the parent.
Parameters:
  objs - the objects
Parameters:
  parent - the parent element
Parameters:
  kindOfObject - the kind of object, usually a constant defined in GenericDriver
Parameters:
  driver - the generic driver
Parameters:
  cache - a cache used in order to associate the sameid with various occurences of the same object
exception:
  an - XKBException is thrown if export fails



exportObject
protected Element exportObject(Object obj, String kindOfObject, GenericDriver driver, Map cache) throws XKBException(Code)
Utility method that locates the appropriate driver and exports an object using this driver.
Parameters:
  obj - an object
Parameters:
  kindOfObject - the kind of object, usually a constant defined in GenericDriver
Parameters:
  driver - the generic driver
Parameters:
  cache - a cache used in order to associate the sameid with various occurences of the same object an element
exception:
  an - XKBException is thrown if export fails



getFunctionType
protected String getFunctionType(Function f)(Code)
Get the type of the function, e.g. GenericDriver.JFunction or GenericDriver.SQL_FUNCTION.
Parameters:
  f - a function a string



getPredicateType
protected String getPredicateType(Predicate p)(Code)
Get the type of the predicate, e.g. GenericDriver.JPREDICATE or GenericDriver.SQL_PREDICATE.
Parameters:
  p - a predicate a string



getTermType
protected String getTermType(Term t)(Code)
Get the type of the term, e.g. GenericDriver.COMPLEX_TERM or GenericDriver.VARIABLE_TERM.
Parameters:
  t - a term a string



importChild
protected Object importChild(Element parent, String name, GenericDriver driver, Map cache, LogicFactory lfactory) throws XKBException(Code)
Utility method to import a child (the first child) with a certain name (not the tag name but the symbolic name as defined in GenericDriver) of the given parent element.
Parameters:
  e - the parent element
Parameters:
  name - the name of the child tag
Parameters:
  driver - the generic driver
Parameters:
  cache - a cache used to identify objects that have an id
Parameters:
  lfactory - the logic factory used to create objects an object
exception:
  an - XKBException is thrown if import fails



importChildren
protected Object importChildren(Element parent, String name, GenericDriver driver, Map cache, LogicFactory lfactory, Class targetType) throws XKBException(Code)
Utility method to import the children with a certain name (not the tag name but the symbolic name as defined in GenericDriver) of the given parent element. The name can be null, in this case all child elements will be imported. The target type argument specifies the type of the objects in the array. Note that we return an object , not an array. But this object can be casted to an array of the target type, e.g. like in
Term[] terms = importChildren(e,null,driver,cache,lfactory,Term.class)
Parameters:
  e - the parent element
Parameters:
  name - the name of the child tag
Parameters:
  driver - the generic driver
Parameters:
  cache - a cache used to identify objects that have an id
Parameters:
  lfactory - the logic factory used to create objects
Parameters:
  targetType - the expected type of elements in the array an object that can be casted to an array of elements of the target type
exception:
  an - XKBException is thrown if import fails



loadProperties
protected void loadProperties(Element e, ClauseSet cs)(Code)
Load the properties into the clause set.
Parameters:
  e - an element (the super element of the properties element)
Parameters:
  cs - a clause set



loadProperties
protected void loadProperties(Element e, Query q)(Code)
Load the properties into the query.
Parameters:
  e - an element (the super element of the properties element)
Parameters:
  q - a query



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.