Package simkin.examples.inherits

This package shows how you can extend the classes in the library to support the concept of inheritance of code and data.

See:
          Description

Class Summary
Inherits This Java program loads XML files containing Simkin script.
InheritsElement this class extends the XMLElementObject class with understanding of the <inherits> tag.
InheritsExecutable This class loads an XML file and makes sure any <inherits> tags are resolved.
 

Package simkin.examples.inherits Description

This package shows how you can extend the classes in the library to support the concept of inheritance of code and data.

The package defines classes InheritsElement and InheritsExecutable which extend the distribution's XMLElementObject and XMLExecutable classes.

These classes look for the <inherits> tag, and pull in another XML file in its place.

They also override the createXMLElementObject method of XMLElementObject to ensure that any sub-elements also do this.