public class TestInstantiableNamedObj extends NamedObj implements Instantiable
NamedObj.ContainedObjectsIterator
_changeListeners, _changeLock, _changeRequests, _debugging, _debugListeners, _deferChangeRequests, _elementName, _isPersistent, _verbose, _workspace, ATTRIBUTES, CLASSNAME, COMPLETE, CONTENTS, DEEP, FULLNAME, LINKS
Constructor and Description |
---|
TestInstantiableNamedObj() |
TestInstantiableNamedObj(java.lang.String name) |
TestInstantiableNamedObj(Workspace workspace) |
TestInstantiableNamedObj(Workspace workspace,
java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
java.util.List |
getChildren()
Return a list of weak references to instances of Instantiable
that are children of this object.
|
Instantiable |
getParent()
Return the parent of this object, or null if there is none.
|
Instantiable |
instantiate(NamedObj container,
java.lang.String name)
Create an instance by (deeply) cloning this object and then adjusting
the parent-child relationships between the clone and its parent.
|
boolean |
isClassDefinition()
Return true if this object is a class definition, which means that
it can be instantiated.
|
_addAttribute, _adjustOverride, _attachText, _cloneFixAttributeFields, _containedDecorators, _copyChangeRequestList, _debug, _debug, _debug, _debug, _debug, _description, _executeChangeRequests, _exportMoMLContents, _getContainedObject, _getIndentPrefix, _isMoMLSuppressed, _markContentsDerived, _notifyHierarchyListenersAfterChange, _notifyHierarchyListenersBeforeChange, _propagateExistence, _propagateValue, _removeAttribute, _splitName, _stripNumericSuffix, _validateSettables, addChangeListener, addDebugListener, addHierarchyListener, attributeChanged, attributeDeleted, attributeList, attributeList, attributeTypeChanged, clone, clone, containedObjectsIterator, decorators, deepContains, depthInHierarchy, description, description, event, executeChangeRequests, exportMoML, exportMoML, exportMoML, exportMoML, exportMoML, exportMoMLPlain, getAttribute, getAttribute, getAttributes, getChangeListeners, getClassName, getContainer, getDecoratorAttribute, getDecoratorAttributes, getDerivedLevel, getDerivedList, getDisplayName, getElementName, getFullName, getModelErrorHandler, getName, getName, getPrototypeList, getSource, handleModelError, isDeferringChangeRequests, isOverridden, isPersistent, lazyContainedObjectsIterator, message, moveDown, moveToFirst, moveToIndex, moveToLast, moveUp, notifyOfNameChange, propagateExistence, propagateValue, propagateValues, removeAttribute, removeChangeListener, removeDebugListener, removeHierarchyListener, requestChange, setClassName, setDeferringChangeRequests, setDerivedLevel, setDisplayName, setModelErrorHandler, setName, setPersistent, setSource, sortContainedObjects, toplevel, toString, uniqueName, validateSettables, workspace
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getDerivedLevel, getDerivedList, getPrototypeList, propagateExistence, propagateValue
description, getContainer, getDisplayName, getFullName, getName, getName, setName
public TestInstantiableNamedObj()
public TestInstantiableNamedObj(java.lang.String name) throws IllegalActionException
IllegalActionException
public TestInstantiableNamedObj(Workspace workspace)
public TestInstantiableNamedObj(Workspace workspace, java.lang.String name) throws IllegalActionException
IllegalActionException
public java.util.List getChildren()
Instantiable
getChildren
in interface Instantiable
public Instantiable getParent()
Instantiable
getParent
in interface Instantiable
public Instantiable instantiate(NamedObj container, java.lang.String name) throws java.lang.CloneNotSupportedException, IllegalActionException, NameDuplicationException
Instantiable
The new object is not a class definition by default (it is an
"instance" rather than a "class"). That is, Instantiable.isClassDefinition()
returns false.
instantiate
in interface Instantiable
container
- The container for the instance, or null
to instantiate it at the top level.name
- The name for the instance.java.lang.CloneNotSupportedException
- If this object
cannot be cloned.IllegalActionException
- If this object is not a
class definition or the proposed container is not acceptable.NameDuplicationException
- If the name collides with
an object already in the container.public boolean isClassDefinition()
Instantiable
isClassDefinition
in interface Instantiable