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.
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.
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.