public class DependencyAttribute extends StringAttribute
NamedObj.ContainedObjectsIterator
Settable.Visibility
_changeListeners, _changeLock, _changeRequests, _debugging, _debugListeners, _deferChangeRequests, _elementName, _isPersistent, _verbose, _workspace, ATTRIBUTES, CLASSNAME, COMPLETE, CONTENTS, DEEP, FULLNAME, LINKS
EXPERT, FULL, NONE, NOT_EDITABLE
Constructor and Description |
---|
DependencyAttribute()
Constructor
|
DependencyAttribute(NamedObj container,
java.lang.String name)
Constructor
|
DependencyAttribute(Workspace workspace)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addValueListener(ValueListener listener)
add a valueListener
|
java.lang.Object |
clone(Workspace workspace)
Clone the object into the specified workspace.
|
boolean |
equals(java.lang.Object obj)
Description of the Method
|
java.lang.String |
getDefaultExpression()
returns the default expression which is null
|
java.lang.String |
getExpression()
return the value of the id
|
Settable.Visibility |
getVisibility()
NamedObjIds should be invisible to the user
|
void |
removeValueListener(ValueListener listener)
remove the indicated listener
|
void |
setExpression(java.lang.String expression)
set the value of this id
|
void |
setVisibility(Settable.Visibility visibility)
this method does not change the visibility.
|
java.util.Collection |
validate()
validate the expression.
|
_propagateValue, exportMoML
getValueAsString
_checkContainer, _getContainedObject, _propagateExistence, 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, _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, setSource, sortContainedObjects, toplevel, toString, uniqueName, validateSettables, workspace
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getDisplayName
description, getContainer, getFullName, getName, getName, setName
public DependencyAttribute()
public DependencyAttribute(NamedObj container, java.lang.String name) throws IllegalActionException, NameDuplicationException
container
- Description of the Parametername
- Description of the ParameterIllegalActionException
- Description of the ExceptionNameDuplicationException
- Description of the Exceptionpublic DependencyAttribute(Workspace workspace)
workspace
- Description of the Parameterpublic java.lang.Object clone(Workspace workspace) throws java.lang.CloneNotSupportedException
clone
in class StringAttribute
workspace
- The workspace for the new object.java.lang.CloneNotSupportedException
- If any of the attributes
cannot be cloned.NamedObj.exportMoML(Writer, int, String)
,
NamedObj.setDeferringChangeRequests(boolean)
public java.lang.String getDefaultExpression()
getDefaultExpression
in interface Settable
getDefaultExpression
in class AbstractSettableAttribute
AbstractSettableAttribute.setExpression(String)
,
Instantiable
public void setExpression(java.lang.String expression)
setExpression
in interface Settable
setExpression
in class StringAttribute
expression
- The new expression valueStringAttribute.getExpression()
public java.lang.String getExpression()
getExpression
in interface Settable
getExpression
in class StringAttribute
StringAttribute.setExpression(String)
public void addValueListener(ValueListener listener)
addValueListener
in interface Settable
addValueListener
in class StringAttribute
listener
- The feature to be added to the ValueListener attributeStringAttribute.removeValueListener(ValueListener)
public Settable.Visibility getVisibility()
getVisibility
in interface Settable
getVisibility
in class StringAttribute
StringAttribute.setVisibility(Settable.Visibility)
public void setVisibility(Settable.Visibility visibility)
setVisibility
in interface Settable
setVisibility
in class StringAttribute
visibility
- The new visibility valueStringAttribute.getVisibility()
public void removeValueListener(ValueListener listener)
removeValueListener
in interface Settable
removeValueListener
in class StringAttribute
listener
- Description of the ParameterStringAttribute.addValueListener(ValueListener)
public java.util.Collection validate()
validate
in interface Settable
validate
in class StringAttribute
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- Description of the Parameter