public class GTIngredientsAttribute 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 |
---|
GTIngredientsAttribute()
Construct an attribute in the default workspace with an empty string
as its name.
|
GTIngredientsAttribute(NamedObj container,
java.lang.String name)
Construct an attribute with the given name contained by the specified
container.
|
GTIngredientsAttribute(Workspace workspace)
Construct an attribute in the specified workspace with an empty
string as a name.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone(Workspace workspace)
Clone the object into the specified workspace.
|
GTIngredientList |
getIngredientList()
Parse the expression of this attribute if necessary and return the
up-to-date ingredient list contained in this attribute.
|
void |
setExpression(java.lang.String expression)
Set the expression of this attribute and defers parsing to the time when
the ingredient list is obtained with
getIngredientList() or
when validate() is invoked. |
java.util.Collection<?> |
validate()
Parse the expression if necessary.
|
_propagateValue, addValueListener, exportMoML, getExpression, getVisibility, removeValueListener, setVisibility
getDefaultExpression, 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
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getDisplayName
description, getContainer, getFullName, getName, getName, setName
public GTIngredientsAttribute()
public GTIngredientsAttribute(NamedObj container, java.lang.String name) throws IllegalActionException, NameDuplicationException
container
- The container.name
- The name of this attribute.IllegalActionException
- If the attribute is not of an
acceptable class for the container, or if the name contains a period.NameDuplicationException
- If the name coincides with
an attribute already in the container.public GTIngredientsAttribute(Workspace workspace)
workspace
- The workspace that will list the attribute.public java.lang.Object clone(Workspace workspace) throws java.lang.CloneNotSupportedException
clone
in class StringAttribute
workspace
- The workspace for the cloned object.java.lang.CloneNotSupportedException
- Not thrown in this base classNamedObj.exportMoML(Writer, int, String)
,
NamedObj.setDeferringChangeRequests(boolean)
public GTIngredientList getIngredientList() throws MalformedStringException
MalformedStringException
- If error occurs while parsing the
expression.public void setExpression(java.lang.String expression) throws IllegalActionException
getIngredientList()
or
when validate()
is invoked.setExpression
in interface Settable
setExpression
in class StringAttribute
expression
- The new expression.IllegalActionException
- If thrown by the superclass.StringAttribute.getExpression()
public java.util.Collection<?> validate() throws IllegalActionException
validate
in interface Settable
validate
in class StringAttribute
IllegalActionException
- If error occurs while parsing the
expression.