@Deprecated public class ImportAttribute extends Attribute
Red (reviewmoderator) |
Red (eal) |
NamedObj.ContainedObjectsIterator
_changeListeners, _changeLock, _changeRequests, _debugging, _debugListeners, _deferChangeRequests, _elementName, _isPersistent, _verbose, _workspace, ATTRIBUTES, CLASSNAME, COMPLETE, CONTENTS, DEEP, FULLNAME, LINKS
Constructor and Description |
---|
ImportAttribute(NamedObj container,
java.lang.String name)
Deprecated.
Construct an attribute with the specified container and name.
|
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, which in this case is
an "import" element.
|
void |
setSource(java.lang.String source)
Deprecated.
Set the name of the external file being referenced.
|
_checkContainer, _getContainedObject, _propagateExistence, clone, getContainer, moveDown, moveToFirst, moveToIndex, moveToLast, moveUp, setContainer, setName, updateContent
_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, sortContainedObjects, toplevel, toString, uniqueName, validateSettables, workspace
public ImportAttribute(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 void setSource(java.lang.String source)
setSource
in interface MoMLExportable
setSource
in class NamedObj
source
- The name of the external file.NamedObj.getSource()
,
MoMLExportable
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
name
- The name to use instead of the name of this object.
This argument is ignored.output
- The output stream to write to.depth
- The depth in the hierarchy, to determine indenting.java.io.IOException
- If there is a problem writing the MoML.MoMLExportable
,
NamedObj.clone(Workspace)
,
NamedObj.isPersistent()
,
NamedObj.getDerivedLevel()