|
|||||||||
| 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.moml.ImportAttribute
public class ImportAttribute
This attribute represents an external file reference.
| Red (reviewmoderator) |
| Red (eal) |
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class ptolemy.kernel.util.NamedObj |
|---|
NamedObj.ContainedObjectsIterator |
| Field Summary |
|---|
| 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 | |
|---|---|
ImportAttribute(NamedObj container,
java.lang.String name)
Deprecated. Construct an attribute with the specified container and name. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class ptolemy.kernel.util.Attribute |
|---|
_getContainedObject, _propagateExistence, clone, getContainer, moveDown, moveToFirst, moveToIndex, moveToLast, moveUp, setContainer, setName, updateContent |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
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.| Method Detail |
|---|
public void setSource(java.lang.String source)
setSource in interface MoMLExportablesetSource in class NamedObjsource - 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 MoMLExportableexportMoML in class NamedObjname - 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()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||