public class GenerateCopyrights
extends java.lang.Object
Red (cxh) |
Red (cxh) |
Modifier and Type | Class and Description |
---|---|
(package private) static class |
GenerateCopyrights.FileNameComparator
Compare two filenames.
|
Constructor and Description |
---|
GenerateCopyrights() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
generateHTML(Configuration configuration)
Generate HTML about the copyrights for classes that might
be present in the configuration.
|
static java.lang.String |
generatePrimaryCopyrightHTML(Configuration configuration)
Generate the primary copyright.
|
public static java.lang.String generateHTML(Configuration configuration)
If the configuration contains an _applicationName attribute then that attributed is used as the name of the application in the generated text. If _applicationName is not present, then the default name is "Ptolemy II".
If the configuration contains an _applicationCopyright StringAttribute, then the value of that attributed is used as the location of the copyright html file. If _applicationCopyright is not present, then "ptolemy/configs/doc/copyright.htm" is used.
If the configuration has a parameter called _applicationCopyrights that is an array of records where each element is a record
{actor="ptolemy.actor.lib.Foo", copyright="foo.htm"}then we add that actor/copyright pair to the list of potential copyrights.
configuration
- The configuration to look for the
_applicationName and _applicationCopyright attributes in.public static java.lang.String generatePrimaryCopyrightHTML(Configuration configuration)
configuration
- The configuration in which to look for the
_applicationName attribute.