public class SemanticProperty extends StringAttribute
KeplerIOPortSemanticLink
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 |
---|
SemanticProperty()
Constructor
|
SemanticProperty(NamedObj container,
java.lang.String name)
Constructor
|
SemanticProperty(Workspace workspace)
Constructor
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj)
Description of the Method
|
java.lang.String |
getDefaultExpression()
returns the default expression which is null
|
java.lang.String |
getPropertyId()
return the value of the semantic property (the id)
|
Settable.Visibility |
getVisibility()
SemanticTypes should be invisible to the user
|
void |
setContainer(NamedObj container)
Set the container of the semantic property to the given container.
|
void |
setPropertyId(java.lang.String expr)
set the semantic property id value
|
void |
setVisibility(Settable.Visibility visibility)
this method does not change the visibility.
|
java.util.Collection |
validate()
validate the expression.
|
_propagateValue, addValueListener, clone, exportMoML, getExpression, removeValueListener, setExpression
getValueAsString
_checkContainer, _getContainedObject, _propagateExistence, getContainer, moveDown, moveToFirst, moveToIndex, moveToLast, moveUp, 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 SemanticProperty()
public SemanticProperty(NamedObj container, java.lang.String name) throws IllegalActionException, NameDuplicationException
container
- Description of the Parametername
- The value of the propertyIllegalActionException
- Description of the ExceptionNameDuplicationException
- Description of the Exceptionpublic SemanticProperty(Workspace workspace)
workspace
- Description of the Parameterpublic void setContainer(NamedObj container) throws IllegalActionException, NameDuplicationException
setContainer
in class Attribute
container
- The container for this virtual port.IllegalActionException
- If this attribute is not of the
expected class for the container, or it has no name,
or the attribute and container are not in the same workspace, or
the proposed container would result in recursive containment.NameDuplicationException
- If the container already has
an attribute with the name of this attribute.Attribute.getContainer()
public java.lang.String getDefaultExpression()
getDefaultExpression
in interface Settable
getDefaultExpression
in class AbstractSettableAttribute
AbstractSettableAttribute.setExpression(String)
,
Instantiable
public void setPropertyId(java.lang.String expr) throws IllegalActionException
expression
- The new semantic type concept idIllegalActionException
public java.lang.String getPropertyId()
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 java.util.Collection validate() throws IllegalActionException
validate
in interface Settable
validate
in class StringAttribute
IllegalActionException
- If the change is not acceptable
to the container.public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- Description of the Parameter