public class TestNullNamedObj extends NamedObj
NamedObj.ContainedObjectsIterator
_changeListeners, _changeLock, _changeRequests, _debugging, _debugListeners, _deferChangeRequests, _elementName, _isPersistent, _verbose, _workspace, ATTRIBUTES, CLASSNAME, COMPLETE, CONTENTS, DEEP, FULLNAME, LINKS
Constructor and Description |
---|
TestNullNamedObj()
Construct an object in the default workspace with an empty string
as its name.
|
TestNullNamedObj(java.lang.String name)
Construct an object in the default workspace with an empty string
as its name.
|
Modifier and Type | Method and Description |
---|---|
NamedObj |
getContainedObject(NamedObj container,
java.lang.String relativeName)
Get an object with the specified name in the specified container.
|
java.lang.String |
getName()
Get the name.
|
void |
setName(java.lang.String name)
Set or change the name.
|
_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, 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, setPersistent, setSource, sortContainedObjects, toplevel, toString, uniqueName, validateSettables, workspace
public TestNullNamedObj() throws IllegalActionException
IllegalActionException
- Not thrown.public TestNullNamedObj(java.lang.String name) throws IllegalActionException
IllegalActionException
- If the name has a period.public NamedObj getContainedObject(NamedObj container, java.lang.String relativeName) throws IllegalActionException
relativeName
- The name relative to the container.container
- The container expected to contain the object.IllegalActionException
- If the object exists
and has the wrong class. Not thrown in this base class.public java.lang.String getName()
getName
in interface Nameable
getName
in class NamedObj
NamedObj.setName(String)
public void setName(java.lang.String name) throws NameDuplicationException
setName
in interface Nameable
setName
in class NamedObj
name
- The new name.NameDuplicationException
- Not thrown in this base
class. May be thrown by derived classes if the container
already contains an object with this name.NamedObj.getName()
,
NamedObj.getName(NamedObj)