public class TestInstantiableAttribute extends Attribute implements Instantiable
NamedObj.ContainedObjectsIterator
_changeListeners, _changeLock, _changeRequests, _debugging, _debugListeners, _deferChangeRequests, _elementName, _isPersistent, _verbose, _workspace, ATTRIBUTES, CLASSNAME, COMPLETE, CONTENTS, DEEP, FULLNAME, LINKS
Constructor and Description |
---|
TestInstantiableAttribute() |
TestInstantiableAttribute(NamedObj container,
java.lang.String name) |
TestInstantiableAttribute(Workspace workspace) |
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.
|
_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, 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
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getDerivedLevel, getDerivedList, getPrototypeList, propagateExistence, propagateValue
description, getContainer, getDisplayName, getFullName, getName, getName, setName
public TestInstantiableAttribute()
public TestInstantiableAttribute(Workspace workspace)
public TestInstantiableAttribute(NamedObj container, java.lang.String name) throws IllegalActionException, NameDuplicationException
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