Java Doc for Package.java in  » Rule-Engine » drolls-Rule-Engine » org » drools » rule » 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 » drolls Rule Engine » org.drools.rule 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.drools.rule.Package

Package
public class Package implements Externalizable(Code)
Collection of related Rules.
See Also:   Rule
author:
   bob mcwhirter
version:
   $Id: Package.java,v 1.1 2005/07/26 01:06:31 mproctor Exp $



Constructor Summary
public  Package()
     Default constructor - for Externalizable.
public  Package(String name)
     Construct.
public  Package(String name, ClassLoader parentClassLoader)
     Construct.

Method Summary
public  voidaddFactTemplate(FactTemplate factTemplate)
    
public  voidaddFunction(String functionName)
    
public  voidaddGlobal(String identifier, Class clazz)
    
public  voidaddImport(String importEntry)
    
public  voidaddRule(Rule rule)
     Add a Rule to this Package.
public  voidaddRuleFlow(Process process)
     Add a rule flow to this package.
public  voidaddStaticImport(String functionImport)
    
public  voidcheckValidity()
    
public  voidclear()
    
public  booleanequals(Object object)
    
public  StringgetErrorSummary()
     This will return the error summary (if any) if the package is invalid.
public  FactTemplategetFactTemplate(String name)
    
public  ListgetFunctions()
    
public  MapgetGlobals()
    
public  SetgetImports()
    
public  StringgetName()
     Retrieve the name of this Package.
public  PackageCompilationDatagetPackageCompilationData()
    
public  RulegetRule(String name)
     Retrieve a Rule by name.
Parameters:
  name - The name of the Rule to retrieve.
public  MapgetRuleFlows()
     Get the rule flows for this package.
public  Rule[]getRules()
     Retrieve all Rules in this Package.
public  SetgetStaticImports()
    
public  inthashCode()
    
public  booleanisValid()
    
public  voidreadExternal(ObjectInput stream)
     Handles the read serialization of the Package.
public  PackageCompilationDataremoveFunction(String functionName)
    
public  voidremoveFunctionImport(String functionImport)
    
public  voidremoveGlobal(String identifier)
    
public  voidremoveImport(String importEntry)
    
public  PackageCompilationDataremoveRule(Rule rule)
    
public  voidremoveRuleFlow(String id)
     Rule flows can be removed by ID.
public  voidsetError(String summary)
    
public  StringtoString()
    
public  voidwriteExternal(ObjectOutput stream)
     Handles the write serialization of the Package.


Constructor Detail
Package
public Package()(Code)
Default constructor - for Externalizable. This should never be used by a user, as it will result in an invalid state for the instance.



Package
public Package(String name)(Code)
Construct.
Parameters:
  name - The name of this Package.



Package
public Package(String name, ClassLoader parentClassLoader)(Code)
Construct.
Parameters:
  name - The name of this Package.




Method Detail
addFactTemplate
public void addFactTemplate(FactTemplate factTemplate)(Code)



addFunction
public void addFunction(String functionName)(Code)



addGlobal
public void addGlobal(String identifier, Class clazz)(Code)



addImport
public void addImport(String importEntry)(Code)



addRule
public void addRule(Rule rule)(Code)
Add a Rule to this Package.
Parameters:
  rule - The rule to add.
throws:
  DuplicateRuleNameException - If the Rule attempting to be added has thesame name as another previously added Rule.
throws:
  InvalidRuleException - If the Rule is not valid.



addRuleFlow
public void addRuleFlow(Process process)(Code)
Add a rule flow to this package.



addStaticImport
public void addStaticImport(String functionImport)(Code)



checkValidity
public void checkValidity()(Code)
This will throw an exception if the package is not valid



clear
public void clear()(Code)



equals
public boolean equals(Object object)(Code)



getErrorSummary
public String getErrorSummary()(Code)
This will return the error summary (if any) if the package is invalid.



getFactTemplate
public FactTemplate getFactTemplate(String name)(Code)



getFunctions
public List getFunctions()(Code)



getGlobals
public Map getGlobals()(Code)



getImports
public Set getImports()(Code)



getName
public String getName()(Code)
Retrieve the name of this Package. The name of this Package.



getPackageCompilationData
public PackageCompilationData getPackageCompilationData()(Code)



getRule
public Rule getRule(String name)(Code)
Retrieve a Rule by name.
Parameters:
  name - The name of the Rule to retrieve. The named Rule, or null if notsuch Rule has been added to thisPackage.



getRuleFlows
public Map getRuleFlows()(Code)
Get the rule flows for this package. The key is the ruleflow id. It will be Collections.EMPTY_MAP if none have been added.



getRules
public Rule[] getRules()(Code)
Retrieve all Rules in this Package. An array of all Rules in this Package.



getStaticImports
public Set getStaticImports()(Code)



hashCode
public int hashCode()(Code)



isValid
public boolean isValid()(Code)
true (default) if there are no build/structural problems.



readExternal
public void readExternal(ObjectInput stream) throws IOException, ClassNotFoundException(Code)
Handles the read serialization of the Package. Patterns in Rules may reference generated data which cannot be serialized by default methods. The Package uses PackageCompilationData to hold a reference to the generated bytecode; which must be restored before any Rules. A custom ObjectInputStream, able to resolve classes against the bytecode in the PackageCompilationData, is used to restore the Rules.



removeFunction
public PackageCompilationData removeFunction(String functionName)(Code)



removeFunctionImport
public void removeFunctionImport(String functionImport)(Code)



removeGlobal
public void removeGlobal(String identifier)(Code)



removeImport
public void removeImport(String importEntry)(Code)



removeRule
public PackageCompilationData removeRule(Rule rule)(Code)



removeRuleFlow
public void removeRuleFlow(String id)(Code)
Rule flows can be removed by ID.



setError
public void setError(String summary)(Code)
Once this is called, the package will be marked as invalid



toString
public String toString()(Code)



writeExternal
public void writeExternal(ObjectOutput stream) throws IOException(Code)
Handles the write serialization of the Package. Patterns in Rules may reference generated data which cannot be serialized by default methods. The Package uses PackageCompilationData to hold a reference to the generated bytecode. The generated bytecode must be restored before any Rules.



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.