|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectptolemy.kernel.util.NamedObj
ptolemy.kernel.util.Attribute
ptolemy.vergil.basic.KeplerDocumentationAttribute
public class KeplerDocumentationAttribute
A Documentation attribute for actors. This class is used by Kepler so that the DocViewer can access kepler specfic actor metadata based documentation.
| Red (johnr) |
| Red (eal) |
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class ptolemy.kernel.util.NamedObj |
|---|
NamedObj.ContainedObjectsIterator |
| Field Summary |
|---|
| Fields inherited from class ptolemy.kernel.util.NamedObj |
|---|
_changeListeners, _changeLock, _changeRequests, _debugging, _debugListeners, _elementName, _isPersistent, _verbose, _workspace, ATTRIBUTES, CLASSNAME, COMPLETE, CONTENTS, DEEP, FULLNAME, LINKS |
| Constructor Summary | |
|---|---|
KeplerDocumentationAttribute()
Construct a Kepler documentation attribute. |
|
KeplerDocumentationAttribute(NamedObj container,
java.lang.String name)
Construct a Kepler documentation attribute. |
|
KeplerDocumentationAttribute(Workspace workspace)
Construct a Kepler documentation attribute. |
|
| Method Summary | |
|---|---|
void |
addPort(java.lang.String name,
java.lang.String value)
Add port to the port hashtable. |
void |
addProperty(java.lang.String name,
java.lang.String value)
Add a property to the property hashtable. |
void |
configure(java.net.URL base,
java.lang.String source,
java.lang.String text)
Configure this documentation attribute. |
void |
createEmptyFields(NamedObj target)
Create empty fields for the main attribute as well as any params or ports that exist in the target |
void |
createInstanceFromExisting(KeplerDocumentationAttribute da)
Populates the members of KeplerDocumentationAttribute from another given KeplerDccumentationAtttribute. |
void |
exportMoML(java.io.Writer output,
int depth,
java.lang.String name)
Write a MoML description of this object with the specified indentation depth and with the specified name substituting for the name of this object. |
java.lang.String |
getAuthor()
return the author |
java.lang.String |
getConfigureSource()
Get the configuration source. |
java.lang.String |
getConfigureText()
Get the configuration text. |
java.lang.String |
getDescription()
return the description |
DocAttribute |
getDocAttribute(NamedObj target)
Return a docAttribute with the available kepler documentation. |
java.lang.String |
getDocClass()
return the document class |
java.lang.String |
getDocName()
return the document name |
java.lang.String |
getPort(java.lang.String name)
return the port docs |
java.util.Hashtable |
getPortHash()
return the port hash |
java.lang.String |
getProperty(java.lang.String name)
return the property docs |
java.util.Hashtable |
getPropertyHash()
return the property hash |
java.lang.String |
getUserLevelDocumentation()
return the user level documentation |
java.lang.String |
getVersion()
return the version |
void |
setAuthor(java.lang.String author)
Set the author. |
void |
setDescription(java.lang.String description)
Set the description. |
void |
setDocClass(java.lang.String className)
Set the name of this docClass. |
void |
setDocName(java.lang.String name)
Set the name of this document. |
void |
setPortHash(java.util.Hashtable portHash)
Set the port hash. |
void |
setPropertyHash(java.util.Hashtable propertyHash)
Set the property hashtable. |
void |
setUserLevelDocumentation(java.lang.String userLevelDocumentation)
Set the user level documentation. |
void |
setVersion(java.lang.String version)
Set the version. |
java.lang.String |
toDocML()
Exports this documentation attribute as docML. |
void |
updateContent()
Method for configurable. |
| Methods inherited from class ptolemy.kernel.util.Attribute |
|---|
_getContainedObject, _propagateExistence, clone, getContainer, moveDown, moveToFirst, moveToIndex, moveToLast, moveUp, setContainer, setName |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public KeplerDocumentationAttribute()
public KeplerDocumentationAttribute(NamedObj container,
java.lang.String name)
throws IllegalActionException,
NameDuplicationException
container - The container.name - The name of the Kepler documentation attribute.
IllegalActionException - If thrown by the superclass.
NameDuplicationException - If thrown by the superclass.public KeplerDocumentationAttribute(Workspace workspace)
workspace - The workspace in which the object is created.| Method Detail |
|---|
public void createInstanceFromExisting(KeplerDocumentationAttribute da)
da - The DocumentationAttribute from which to copy attributes.public void createEmptyFields(NamedObj target)
target - the namedobj to create the empty attributes for
public void exportMoML(java.io.Writer output,
int depth,
java.lang.String name)
throws java.io.IOException
exportMoML in interface MoMLExportableexportMoML in class NamedObjoutput - The output stream to write to.depth - The depth in the hierarchy, to determine indenting.name - The name to use in the exported MoML.
java.io.IOException - If an I/O error occurs.MoMLExportable,
NamedObj.clone(Workspace),
NamedObj.isPersistent(),
NamedObj.getDerivedLevel()public java.lang.String toDocML()
public DocAttribute getDocAttribute(NamedObj target)
target - The container for the DocAttribute
public void updateContent()
throws InternalErrorException
updateContent in class AttributeInternalErrorException - Not thrown in this base class.public void setDocName(java.lang.String name)
name - The name of this document.public java.lang.String getDocName()
public void setDocClass(java.lang.String className)
className - The name of this docClass.public java.lang.String getDocClass()
public void setDescription(java.lang.String description)
description - The description.public java.lang.String getDescription()
public void setAuthor(java.lang.String author)
author - The author.public java.lang.String getAuthor()
public void setVersion(java.lang.String version)
version - The version.public java.lang.String getVersion()
public void setUserLevelDocumentation(java.lang.String userLevelDocumentation)
userLevelDocumentation - The user level documentation.public java.lang.String getUserLevelDocumentation()
public void setPortHash(java.util.Hashtable portHash)
portHash - The port hash.public java.util.Hashtable getPortHash()
public void addPort(java.lang.String name,
java.lang.String value)
throws IllegalActionException,
NameDuplicationException
name - The name of the port.value - A String representing the port.
IllegalActionException
NameDuplicationExceptionpublic java.lang.String getPort(java.lang.String name)
public void setPropertyHash(java.util.Hashtable propertyHash)
propertyHash - The property hashtable.public java.util.Hashtable getPropertyHash()
public void addProperty(java.lang.String name,
java.lang.String value)
throws NameDuplicationException,
IllegalActionException
name - The name of the property.value - A string representing the propety.
NameDuplicationException
IllegalActionExceptionpublic java.lang.String getProperty(java.lang.String name)
public void configure(java.net.URL base,
java.lang.String source,
java.lang.String text)
configure in interface Configurablebase - Currently ignored.source - The source of this configuration.text - The configuration text.public java.lang.String getConfigureSource()
getConfigureSource in interface Configurablepublic java.lang.String getConfigureText()
getConfigureText in interface Configurable
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||