|
|||||||||
| 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.kernel.util.SingletonAttribute
ptolemy.vergil.basic.DocAttribute
public class DocAttribute
An attribute containing documentation for a Ptolemy II object.
| Red (cxh) |
| Red (eal) |
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class ptolemy.kernel.util.NamedObj |
|---|
NamedObj.ContainedObjectsIterator |
| Field Summary | |
|---|---|
StringAttribute |
author
The author field. |
StringAttribute |
description
The description. |
StringAttribute |
since
The since field. |
StringAttribute |
version
The version field. |
| 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 | |
|---|---|
DocAttribute()
Construct an empty DocAttribute. |
|
DocAttribute(NamedObj container,
java.lang.String name)
Construct a documentation attribute with the given name contained by the specified entity. |
|
DocAttribute(Workspace workspace)
Construct a DocAttribute in a given workspace. |
|
| Method Summary | |
|---|---|
java.lang.String |
getParameterDoc(java.lang.String name)
Return the documentation for the given parameter, or null if there none. |
java.lang.String |
getPortDoc(java.lang.String name)
Return the documentation for the given port, or null if there none. |
void |
refreshParametersAndPorts()
For each parameter and port in the container, create a parameter with the same name appended with either " (port)" or " (parameter)". |
| Methods inherited from class ptolemy.kernel.util.SingletonAttribute |
|---|
setContainer |
| Methods inherited from class ptolemy.kernel.util.Attribute |
|---|
_checkContainer, _getContainedObject, _propagateExistence, clone, getContainer, moveDown, moveToFirst, moveToIndex, moveToLast, moveUp, setName, updateContent |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public StringAttribute author
public StringAttribute description
public StringAttribute since
public StringAttribute version
| Constructor Detail |
|---|
public DocAttribute(NamedObj container,
java.lang.String name)
throws IllegalActionException,
NameDuplicationException
container - The container.name - The name of this attribute.
IllegalActionException - If the attribute is not of an
acceptable class for the container, or if the name contains a period.
NameDuplicationException - If the name coincides with
an attribute already in the container.public DocAttribute()
public DocAttribute(Workspace workspace)
workspace - The workspace in which to construct the DocAttribute.| Method Detail |
|---|
public java.lang.String getParameterDoc(java.lang.String name)
name - The name of the parameter.
public java.lang.String getPortDoc(java.lang.String name)
name - The name of the port.
public void refreshParametersAndPorts()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||