Faceted Project Framework
Version 1.3

org.eclipse.wst.common.project.facet.core
Interface IVersionExpr


public interface IVersionExpr

The compiled form of a version expression. A version expression is used to specify one or more versions.

Author:
Konstantin Komissarchik

Field Summary
static String WILDCARD_SYMBOL
          Contains the symbol used to represent the wildcard.
 
Method Summary
 boolean check(IVersion version)
          Evaluates the version expression against the specified version.
 boolean evaluate(String version)
          Deprecated. use the check method instead
 String toDisplayString()
          Returns human-readable form of the version expression that uses descriptive terms rather than symbols.
 

Field Detail

WILDCARD_SYMBOL

static final String WILDCARD_SYMBOL
Contains the symbol used to represent the wildcard. The wildcard matches any version. Note that it is not possible to use the wildcard to match part of the version string.

See Also:
Constant Field Values
Method Detail

check

boolean check(IVersion version)
Evaluates the version expression against the specified version. Returns true if and only if the version expression matches the specified version.

Parameters:
version - the version object to check against the version expression
Returns:
true if and only if the version expression matches the specified version

evaluate

boolean evaluate(String version)
Deprecated. use the check method instead


toDisplayString

String toDisplayString()
Returns human-readable form of the version expression that uses descriptive terms rather than symbols.

Returns:
human-readable form of the version expression

Faceted Project Framework
Version 1.3

Copyright (c) 2008 BEA Systems, Inc. and others. All rights reserved.