public class PortAttribute extends StringAttribute
NamedObj.ContainedObjectsIteratorSettable.Visibility_changeListeners, _changeLock, _changeRequests, _debugging, _debugListeners, _deferChangeRequests, _elementName, _isPersistent, _verbose, _workspace, ATTRIBUTES, CLASSNAME, COMPLETE, CONTENTS, DEEP, FULLNAME, LINKSEXPERT, FULL, NONE, NOT_EDITABLE| Constructor and Description |
|---|
PortAttribute()
Constructor
|
PortAttribute(NamedObj container,
java.lang.String name)
Constructor
|
PortAttribute(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, exportMoMLgetValueAsString_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, workspacefinalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetDisplayNamedescription, getContainer, getFullName, getName, getName, setNamepublic PortAttribute()
public PortAttribute(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 PortAttribute(Workspace workspace)
workspace - Description of the Parameterpublic java.lang.Object clone(Workspace workspace) throws java.lang.CloneNotSupportedException
clone in class StringAttributeworkspace - 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 SettablegetDefaultExpression in class AbstractSettableAttributeAbstractSettableAttribute.setExpression(String),
Instantiablepublic void setExpression(java.lang.String expression)
setExpression in interface SettablesetExpression in class StringAttributeexpression - The new expression valueStringAttribute.getExpression()public java.lang.String getExpression()
getExpression in interface SettablegetExpression in class StringAttributeStringAttribute.setExpression(String)public void addValueListener(ValueListener listener)
addValueListener in interface SettableaddValueListener in class StringAttributelistener - The feature to be added to the ValueListener attributeStringAttribute.removeValueListener(ValueListener)public Settable.Visibility getVisibility()
getVisibility in interface SettablegetVisibility in class StringAttributeStringAttribute.setVisibility(Settable.Visibility)public void setVisibility(Settable.Visibility visibility)
setVisibility in interface SettablesetVisibility in class StringAttributevisibility - The new visibility valueStringAttribute.getVisibility()public void removeValueListener(ValueListener listener)
removeValueListener in interface SettableremoveValueListener in class StringAttributelistener - Description of the ParameterStringAttribute.addValueListener(ValueListener)public java.util.Collection validate()
validate in interface Settablevalidate in class StringAttributepublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - Description of the Parameter