public class RequireVersion extends VersionAttribute
| Red (cxh) |
| Red (eal) |
NamedObj.ContainedObjectsIteratorSettable.VisibilityCURRENT_VERSION_changeListeners, _changeLock, _changeRequests, _debugging, _debugListeners, _deferChangeRequests, _elementName, _isPersistent, _verbose, _workspace, ATTRIBUTES, CLASSNAME, COMPLETE, CONTENTS, DEEP, FULLNAME, LINKSEXPERT, FULL, NONE, NOT_EDITABLE| Constructor and Description |
|---|
RequireVersion(NamedObj container,
java.lang.String name)
Construct an attribute with the given name contained by the
specified container.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object object)
Return true if the hash code of this object is equal (==) to
the hash code of the argument.
|
int |
hashCode()
Return a hash code value for attribute.
|
void |
setExpression(java.lang.String expression)
Set the required version, check it against the currently
executing version, and throw an exception if the executing
version is older.
|
clone, compareTo, isLessThan, iterator, majorCurrentVersion_propagateValue, addValueListener, exportMoML, getExpression, getVisibility, removeValueListener, setVisibility, validategetDefaultExpression, 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, workspacefinalize, getClass, notify, notifyAll, wait, wait, waitgetDisplayNamedescription, getContainer, getFullName, getName, getName, setNamepublic RequireVersion(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 boolean equals(java.lang.Object object)
equals in class VersionAttributeobject - The specified object that is compared against.public int hashCode()
hashCode in class VersionAttributepublic void setExpression(java.lang.String expression)
throws IllegalActionException
setExpression in interface SettablesetExpression in class VersionAttributeexpression - The version string, consisting of
version ID tuples separated by '.', '-' or '_'. For example:
"1.2", "1.2_beta-4".IllegalActionException - If the argument contains a
space, which violates the JNLP Version format specification,
and if the specified version is newer than the executing version.StringAttribute.getExpression()