|
|||||||||
| 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 (cxh) |
| Red (cxh) |
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class ptolemy.kernel.util.NamedObj |
|---|
NamedObj.ContainedObjectsIterator |
| Field Summary | |
|---|---|
private java.lang.String |
_author
|
private java.lang.String |
_description
|
private java.lang.String |
_docClass
|
private java.lang.String |
_docName
|
private java.util.Hashtable |
_portHash
|
private java.util.Hashtable |
_propertyHash
|
private java.lang.String |
_userLevelDocumentation
|
private java.lang.String |
_version
|
private java.lang.String |
source
|
private java.lang.String |
text
|
| 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 documentationAttribute)
Populate 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 documentation. |
java.util.Hashtable |
getPortHash()
Return the port hash. |
java.lang.String |
getProperty(java.lang.String name)
Return the property documenation. |
java.util.Hashtable |
getPropertyHash()
Return the property hash. |
java.lang.String |
getUserLevelDocumentation()
Return the user level documentation. |
java.lang.String |
getVersion()
Return the version. |
java.lang.String |
removeProperty(java.lang.String name)
Remove a property from the property hashtable. |
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 |
|---|
_checkContainer, _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 |
| Field Detail |
|---|
private java.lang.String source
private java.lang.String text
private java.lang.String _docName
private java.lang.String _docClass
private java.lang.String _description
private java.lang.String _author
private java.lang.String _version
private java.lang.String _userLevelDocumentation
private java.util.Hashtable _portHash
private java.util.Hashtable _propertyHash
| 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 addPort(java.lang.String name,
java.lang.String value)
throws NameDuplicationException,
java.lang.Exception
name - The name of the port.value - A String representing the port.
NameDuplicationException - If thrown while creating the port.
java.lang.Exception - If thrown while configuring the port
public void addProperty(java.lang.String name,
java.lang.String value)
throws NameDuplicationException,
java.lang.Exception
name - The name of the property.value - A string representing the propety.
NameDuplicationException - If thrown while creating the property
java.lang.Exception - If thrown while configuring the attributegetProperty(String)
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 void createEmptyFields(NamedObj target)
target - the namedobj to create the empty attributes forpublic void createInstanceFromExisting(KeplerDocumentationAttribute documentationAttribute)
documentationAttribute - The DocumentationAttribute from which to copy attributes.
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 getAuthor()
setAuthor(String)public java.lang.String getConfigureSource()
getConfigureSource in interface Configurablepublic java.lang.String getConfigureText()
getConfigureText in interface Configurablepublic java.lang.String getDescription()
setDescription(String)public DocAttribute getDocAttribute(NamedObj target)
target - The container for the DocAttribute
public java.lang.String getDocClass()
setDocClass(String)public java.lang.String getDocName()
setDocName(String)public java.lang.String getPort(java.lang.String name)
name - The name of the port.
public java.util.Hashtable getPortHash()
setPortHash(Hashtable)public java.lang.String getProperty(java.lang.String name)
name - The name of the property.
addProperty(String, String)public java.util.Hashtable getPropertyHash()
setPropertyHash(Hashtable)public java.lang.String getUserLevelDocumentation()
setUserLevelDocumentation(String)public java.lang.String getVersion()
setVersion(String)
public java.lang.String removeProperty(java.lang.String name)
throws IllegalActionException,
NameDuplicationException
name - The name of the property.
IllegalActionException - If an error occurs removing the
ConfigurableAttribute.
NameDuplicationException - If an error occurs removing the
ConfigurableAttribute.addProperty(String, String)public void setAuthor(java.lang.String author)
author - The author.getAuthor()public void setDescription(java.lang.String description)
description - The description.getDescription()public void setDocClass(java.lang.String className)
className - The name of this docClass.getDocClass()public void setDocName(java.lang.String name)
name - The name of this document.getDocName()public void setPortHash(java.util.Hashtable portHash)
portHash - The port hash.getPortHash()public void setPropertyHash(java.util.Hashtable propertyHash)
propertyHash - The property hashtable.FIXME: need to remove all existing ConfigurableAttributes
for properties and add new ones for new hash table.public void setUserLevelDocumentation(java.lang.String userLevelDocumentation)
userLevelDocumentation - The user level documentation.getUserLevelDocumentation()public void setVersion(java.lang.String version)
version - The version.getVersion()public java.lang.String toDocML()
public void updateContent()
throws InternalErrorException
updateContent in class AttributeInternalErrorException - Not thrown in this base class.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||