|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectptolemy.kernel.util.NamedObj
ptolemy.kernel.util.Attribute
ptolemy.kernel.util.DecoratedAttributes
ptolemy.kernel.DecoratedAttributesImplementation
public class DecoratedAttributesImplementation
A class that represents a number of decorated attributed. The functionality is divided in two classes (DecoratedAttributes and this class) to solve dependency issues. See DecoratedAttributes for more information.
| Red (rodiers) |
| Red (rodiers) |
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class ptolemy.kernel.util.NamedObj |
|---|
NamedObj.ContainedObjectsIterator |
| Field Summary | |
|---|---|
private Decorator |
_decorator
The decorater. |
private StringAttribute |
_decoratorPath
The decorater path. |
| Fields inherited from class ptolemy.kernel.util.NamedObj |
|---|
_changeListeners, _changeLock, _changeRequests, _debugging, _debugListeners, _elementName, _isPersistent, _verbose, _workspace, ATTRIBUTES, CLASSNAME, COMPLETE, CONTENTS, DEEP, FULLNAME, LINKS |
| Constructor Summary | |
|---|---|
DecoratedAttributesImplementation(NamedObj container,
Decorator decorator)
Construct a DecoratedAttribute from the container and the decorator. |
|
DecoratedAttributesImplementation(NamedObj containerOfDecorator,
java.lang.String name)
Deprecated. |
|
| Method Summary | |
|---|---|
protected void |
_addAttribute(Attribute p)
Add an attribute. |
protected StringAttribute |
_decoratorPath()
Return the decorator path. |
private static NamedObj |
_getRealContainer(NamedObj containerOfCodeGenerator,
java.lang.String name)
Find the real container of this object. |
void |
attributeChanged(Attribute attribute)
React to a change in an attribute. |
java.lang.Object |
clone(Workspace workspace)
Clone the object into the specified workspace. |
static java.util.List<Decorator> |
findDecorators(NamedObj object)
Return all the decorators for a given object. |
Decorator |
getDecorator()
Return the decorator. |
| Methods inherited from class ptolemy.kernel.util.DecoratedAttributes |
|---|
_register, exportToMoML |
| Methods inherited from class ptolemy.kernel.util.Attribute |
|---|
_checkContainer, _getContainedObject, _propagateExistence, getContainer, moveDown, moveToFirst, moveToIndex, moveToLast, moveUp, setContainer, setName, updateContent |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private Decorator _decorator
private StringAttribute _decoratorPath
| Constructor Detail |
|---|
public DecoratedAttributesImplementation(NamedObj container,
Decorator decorator)
throws IllegalActionException,
NameDuplicationException
container - The container this object.decorator - The decorator.
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 DecoratedAttributesImplementation(NamedObj containerOfDecorator,
java.lang.String name)
throws IllegalActionException,
NameDuplicationException
containerOfDecorator - The container of the decorator.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.| Method Detail |
|---|
public void attributeChanged(Attribute attribute)
throws IllegalActionException
attributeChanged in class NamedObjattribute - The attribute that changed.
IllegalActionException - If the change is not acceptable
to this container (not thrown in this base class).
public java.lang.Object clone(Workspace workspace)
throws java.lang.CloneNotSupportedException
clone in class Attributeworkspace - The workspace for the cloned object.
java.lang.CloneNotSupportedException - Not thrown in this base classNamedObj.exportMoML(Writer, int, String),
NamedObj.setDeferringChangeRequests(boolean)public static java.util.List<Decorator> findDecorators(NamedObj object)
object - The object.
public Decorator getDecorator()
getDecorator in class DecoratedAttributes
protected void _addAttribute(Attribute p)
throws NameDuplicationException,
IllegalActionException
_addAttribute in class NamedObjp - The attribute to be added.
NameDuplicationException - If this object already
has an attribute with the same name.
IllegalActionException - If the attribute is not an
an instance of the expect class (in derived classes).protected StringAttribute _decoratorPath()
_decoratorPath in class DecoratedAttributes
private static NamedObj _getRealContainer(NamedObj containerOfCodeGenerator,
java.lang.String name)
containerOfCodeGenerator - The container of the decorator.name - The name of this attribute.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||