|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectptolemy.actor.gui.GenerateCopyrights
public class GenerateCopyrights
Generate an HTML file that contains links to the appropriate copyrights for entities in the configuration. This class looks for particular classes, and if the class is found in the classpath, then a corresponding html file is included in the list of copyrights.
Red (cxh) |
Red (cxh) |
Constructor Summary | |
---|---|
GenerateCopyrights()
|
Method Summary | |
---|---|
private static void |
_addIfPresent(java.util.Map copyrightsMap,
java.lang.String className,
java.lang.String copyrightPath)
|
private static void |
_addIfPresent(java.util.Map copyrightsMap,
java.lang.String applicationClassName,
java.lang.String libraryClassName,
java.lang.String copyrightPath)
|
private static java.lang.String |
_canonicalizeURLToPTII(java.lang.String path)
|
private static java.lang.String |
_findURL(java.lang.String localURL)
|
private static java.lang.String |
_getApplicationName(Configuration configuration)
Get the application name from the _applicationName parameter. |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GenerateCopyrights()
Method Detail |
---|
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.
private static void _addIfPresent(java.util.Map copyrightsMap, java.lang.String applicationClassName, java.lang.String libraryClassName, java.lang.String copyrightPath)
private static void _addIfPresent(java.util.Map copyrightsMap, java.lang.String className, java.lang.String copyrightPath)
private static java.lang.String _canonicalizeURLToPTII(java.lang.String path)
private static java.lang.String _findURL(java.lang.String localURL)
private static java.lang.String _getApplicationName(Configuration configuration)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |