public class ConceptAttribute extends AbstractSettableAttribute
NamedObj.ContainedObjectsIterator
Settable.Visibility
Modifier and Type | Field and Description |
---|---|
protected Concept |
_concept
The Concept contained by the ConceptAttribute.
|
_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 |
---|
ConceptAttribute(NamedObj container,
java.lang.String name)
Construct a ConceptAttribute with the specified name and container.
|
Modifier and Type | Method and Description |
---|---|
void |
addValueListener(ValueListener listener)
Add the specified ValueListener.
|
void |
exportMoML(java.io.Writer output,
int depth,
java.lang.String name)
Write a MoML description of the ConceptAttribute.
|
Concept |
getConcept()
Returns the Concept value.
|
java.lang.String |
getExpression()
Get the string name of the Concept contained by the ConceptAttribute
or the empty string if there is none.
|
Settable.Visibility |
getVisibility()
Get the visibility of this Settable, as set by setVisibility().
|
void |
removeValueListener(ValueListener listener)
Remove the specified ValueListener.
|
void |
setConcept(Concept concept)
Specifies the Concept value.
|
void |
setVisibility(Settable.Visibility visibility)
Set the visibility of this Settable.
|
java.util.Collection<?> |
validate()
The validate() method must be implemented to implement the
Settable
interface but is not relevant
for the ConceptAttribute class.
|
getDefaultExpression, getValueAsString, setExpression
_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, 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
protected Concept _concept
public ConceptAttribute(NamedObj container, java.lang.String name) throws IllegalActionException, NameDuplicationException
container
- The specified container.name
- The specified name.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 void addValueListener(ValueListener listener)
listener
- The listener to add.removeValueListener(ptolemy.kernel.util.ValueListener)
public void exportMoML(java.io.Writer output, int depth, java.lang.String name) throws java.io.IOException
exportMoML
in interface MoMLExportable
exportMoML
in class NamedObj
output
- The output stream to write to.depth
- The depth in the hierarchy, to determine indenting.name
- The name to use instead of the current name.java.io.IOException
- If an I/O error occurs.NamedObj.exportMoML(Writer, int, String)
public java.lang.String getExpression()
Settable.setExpression(String)
public Concept getConcept()
setConcept(ptolemy.data.ontologies.Concept)
public Settable.Visibility getVisibility()
setVisibility(Settable.Visibility)
public void removeValueListener(ValueListener listener)
listener
- The listener to remove.addValueListener(ptolemy.kernel.util.ValueListener)
public void setConcept(Concept concept)
concept
- a Concept object specifying the Concept value
contained by the ConceptAttribute.getConcept()
public void setVisibility(Settable.Visibility visibility)
visibility
- The visibility of this Settable.getVisibility()
public java.util.Collection<?> validate() throws IllegalActionException
IllegalActionException
- To match the signature of the
validate()
method in the Settable
interface, but this is not ever thrown here.