public class KeplerDocumentationAttribute extends Attribute implements Configurable
Red (cxh) |
Red (cxh) |
NamedObj.ContainedObjectsIterator
_changeListeners, _changeLock, _changeRequests, _debugging, _debugListeners, _deferChangeRequests, _elementName, _isPersistent, _verbose, _workspace, ATTRIBUTES, CLASSNAME, COMPLETE, CONTENTS, DEEP, FULLNAME, LINKS
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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 KeplerDocumentationAttribute.
|
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 documentation.
|
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 |
removePort(java.lang.String name)
Remove a port from the port hashtable.
|
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.
|
void |
updateFromExisting(KeplerDocumentationAttribute oldDoc,
boolean printWhenReplacing)
Update the documentation fields of this object from another
KeplerDocumentationAttribute.
|
_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 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.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 portpublic 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 property.NameDuplicationException
- If thrown while creating the propertyjava.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 Configurable
base
- 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 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()
public java.lang.String getAuthor()
setAuthor(String)
public java.lang.String getConfigureSource()
getConfigureSource
in interface Configurable
public java.lang.String getConfigureText()
getConfigureText
in interface Configurable
public java.lang.String getDescription()
setDescription(String)
public DocAttribute getDocAttribute(NamedObj target)
target
- The container for the DocAttributepublic 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 removePort(java.lang.String name) throws IllegalActionException, NameDuplicationException
name
- The name of the port.IllegalActionException
- If an error occurs removing the
ConfigurableAttribute.NameDuplicationException
- If an error occurs removing the
ConfigurableAttribute.addPort(String, 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 Attribute
InternalErrorException
- Not thrown in this base class.public void updateFromExisting(KeplerDocumentationAttribute oldDoc, boolean printWhenReplacing) throws java.lang.Exception
oldDoc
- The KeplerDocumentationAttribute from which to copy
attributes.printWhenReplacing
- If true, print when the values are overwritten.java.lang.Exception
- if there is an error updating the fields.