Search in sources :

Example 6 with ProductIdentity

use of org.eclipse.titan.common.product.ProductIdentity in project titan.EclipsePlug-ins by eclipse.

the class ModuleVersionAttribute method parse.

/**
 * Convert the raw data.
 */
public final void parse() {
    final String versionString = versionToken.getTtcnName();
    if (isTemplate) {
        if (!"RnXnn".equals(versionString)) {
            getLocation().reportSemanticError("Version template must be exactly <RnXnn>");
        }
        // <RnXnn> counts as no version info, which satisfies
        // all
        versionNumber = new ProductIdentity();
        return;
    }
    versionNumber = ProductIdentityHelper.getProductIdentity(versionString, getLocation());
}
Also used : ProductIdentity(org.eclipse.titan.common.product.ProductIdentity)

Aggregations

ProductIdentity (org.eclipse.titan.common.product.ProductIdentity)6 BigInteger (java.math.BigInteger)1 ArrayList (java.util.ArrayList)1 CopyOnWriteArrayList (java.util.concurrent.CopyOnWriteArrayList)1 IProject (org.eclipse.core.resources.IProject)1 CoreException (org.eclipse.core.runtime.CoreException)1 IPath (org.eclipse.core.runtime.IPath)1 IStatus (org.eclipse.core.runtime.IStatus)1 Path (org.eclipse.core.runtime.Path)1 Status (org.eclipse.core.runtime.Status)1 IEclipsePreferences (org.eclipse.core.runtime.preferences.IEclipsePreferences)1 AttributeSpecification (org.eclipse.titan.designer.AST.TTCN3.attributes.AttributeSpecification)1 ExtensionAttribute (org.eclipse.titan.designer.AST.TTCN3.attributes.ExtensionAttribute)1 ModuleVersionAttribute (org.eclipse.titan.designer.AST.TTCN3.attributes.ModuleVersionAttribute)1 Qualifiers (org.eclipse.titan.designer.AST.TTCN3.attributes.Qualifiers)1 SingleWithAttribute (org.eclipse.titan.designer.AST.TTCN3.attributes.SingleWithAttribute)1 TitanVersionAttribute (org.eclipse.titan.designer.AST.TTCN3.attributes.TitanVersionAttribute)1 VersionRequirementAttribute (org.eclipse.titan.designer.AST.TTCN3.attributes.VersionRequirementAttribute)1 ExtensionAttributeAnalyzer (org.eclipse.titan.designer.parsers.extensionattributeparser.ExtensionAttributeAnalyzer)1