public class DocumentationAttribute extends Attribute
NamedObj.ContainedObjectsIterator
_changeListeners, _changeLock, _changeRequests, _debugging, _debugListeners, _deferChangeRequests, _elementName, _isPersistent, _verbose, _workspace, ATTRIBUTES, CLASSNAME, COMPLETE, CONTENTS, DEEP, FULLNAME, LINKS
Constructor and Description |
---|
DocumentationAttribute()
Deprecated.
Constructor
|
DocumentationAttribute(NamedObj container,
java.lang.String name)
Deprecated.
Constructor
|
DocumentationAttribute(Workspace workspace)
Deprecated.
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
exportMoML(java.io.Writer output,
int depth,
java.lang.String name)
Deprecated.
Write a MoML description of this object with the specified
indentation depth and with the specified name substituting
for the name of this object.
|
void |
updateContent()
Deprecated.
Update the content of this attribute.
|
_checkContainer, _getContainedObject, _propagateExistence, clone, getContainer, moveDown, moveToFirst, moveToIndex, moveToLast, moveUp, setContainer, setName
_addAttribute, _adjustOverride, _attachText, _cloneFixAttributeFields, _containedDecorators, _copyChangeRequestList, _debug, _debug, _debug, _debug, _debug, _description, _executeChangeRequests, _exportMoMLContents, _getIndentPrefix, _isMoMLSuppressed, _markContentsDerived, _notifyHierarchyListenersAfterChange, _notifyHierarchyListenersBeforeChange, _propagateValue, _removeAttribute, _splitName, _stripNumericSuffix, _validateSettables, addChangeListener, addDebugListener, addHierarchyListener, attributeChanged, attributeDeleted, attributeList, attributeList, attributeTypeChanged, clone, containedObjectsIterator, decorators, deepContains, depthInHierarchy, description, description, event, executeChangeRequests, exportMoML, exportMoML, exportMoML, exportMoML, exportMoMLPlain, getAttribute, getAttribute, getAttributes, getChangeListeners, getClassName, getDecoratorAttribute, getDecoratorAttributes, getDerivedLevel, getDerivedList, getDisplayName, getElementName, getFullName, getModelErrorHandler, getName, getName, getPrototypeList, getSource, handleModelError, isDeferringChangeRequests, isOverridden, isPersistent, lazyContainedObjectsIterator, message, notifyOfNameChange, propagateExistence, propagateValue, propagateValues, removeAttribute, removeChangeListener, removeDebugListener, removeHierarchyListener, requestChange, setClassName, setDeferringChangeRequests, setDerivedLevel, setDisplayName, setModelErrorHandler, setPersistent, setSource, sortContainedObjects, toplevel, toString, uniqueName, validateSettables, workspace
public DocumentationAttribute()
public DocumentationAttribute(NamedObj container, java.lang.String name) throws IllegalActionException, NameDuplicationException
container
- Description of the Parametername
- Description of the ParameterIllegalActionException
- Description of the ExceptionNameDuplicationException
- Description of the Exceptionpublic DocumentationAttribute(Workspace workspace)
workspace
- Description of the Parameterpublic void updateContent() throws InternalErrorException
Attribute
updateContent
in class Attribute
InternalErrorException
- Not thrown in this base class.public void exportMoML(java.io.Writer output, int depth, java.lang.String name) throws java.io.IOException
NamedObj
NamedObj.getClassName()
, the source is determined by
NamedObj.getSource()
. The description has the form:
<element name="name" class="classname" source="source">> body, determined by _exportMoMLContents() </element>By default, the element name is "entity." The default class name is the Java classname of this instance. The source attribute is by default left off altogether.
If this object has no container and the depth argument is zero, then this method prepends XML file header information, which is:
<?xml version="1.0" standalone="no"?> <!DOCTYPE entity PUBLIC "-//UC Berkeley//DTD MoML 1//EN" "http://ptolemy.eecs.berkeley.edu/xml/dtd/MoML_1.dtd">In the above, "entity" may be replaced by "property" or "port" if somehow a top-level property or port is exported.
The text that is written is indented according to the specified depth, with each line (including the last one) terminated with a newline. Derived classes can override this method to change the MoML description of an object. They can override the protected method _exportMoMLContents() if they need to only change which contents are described.
If this object is not persistent, or if there is no MoML description of this object, or if this object is a class instance, then write nothing.
exportMoML
in interface MoMLExportable
exportMoML
in class NamedObj
output
- 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()