use of org.eclipse.n4js.semver.Semver.URLVersionSpecifier in project n4js by eclipse.
the class URLVersionRequirementImpl method getSimpleVersion.
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public SimpleVersion getSimpleVersion() {
URLVersionSpecifier _versionSpecifier = this.getVersionSpecifier();
if ((_versionSpecifier instanceof URLSemver)) {
URLVersionSpecifier _versionSpecifier_1 = this.getVersionSpecifier();
final URLSemver urlSemver = ((URLSemver) _versionSpecifier_1);
return urlSemver.getSimpleVersion();
}
return null;
}
use of org.eclipse.n4js.semver.Semver.URLVersionSpecifier in project n4js by eclipse.
the class URLVersionRequirementImpl method basicSetVersionSpecifier.
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetVersionSpecifier(URLVersionSpecifier newVersionSpecifier, NotificationChain msgs) {
URLVersionSpecifier oldVersionSpecifier = versionSpecifier;
versionSpecifier = newVersionSpecifier;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SemverPackage.URL_VERSION_REQUIREMENT__VERSION_SPECIFIER, oldVersionSpecifier, newVersionSpecifier);
if (msgs == null)
msgs = notification;
else
msgs.add(notification);
}
return msgs;
}
Aggregations