Package buri.ddmsence.ddms

Examples of buri.ddmsence.ddms.UnsupportedVersionException


   * @return true if the version is equal to or greater than the test version
   */
  public boolean isAtLeast(String version) {
    version = aliasVersion(version);
    if (!getSupportedVersionsProperty().contains(version))
      throw new UnsupportedVersionException(version);
    int index = getSupportedVersionsProperty().indexOf(this.getVersion());
    int testIndex = getSupportedVersionsProperty().indexOf(version);
    return (index >= testIndex);
  }
View Full Code Here


   * @throws UnsupportedVersionException if the version number is not supported
   */
  public static DDMSVersion getVersionFor(String version) {
    version = aliasVersion(version);
    if (!getSupportedVersionsProperty().contains(version))
      throw new UnsupportedVersionException(version);
    return (VERSIONS_TO_DETAILS.get(version));
  }
View Full Code Here

        || version.getTspiNamespace().equals(namespace) || version.getVirtNamespace().equals(namespace)
        || version.getXlinkNamespace().equals(namespace)) {
        return (version);
      }
    }
    throw new UnsupportedVersionException("for XML namespace " + namespace);
  }
View Full Code Here

   * @throws UnsupportedVersionException if the version is not supported
   */
  public static synchronized DDMSVersion setCurrentVersion(String version) {
    version = aliasVersion(version);
    if (!getSupportedVersionsProperty().contains(version))
      throw new UnsupportedVersionException(version);
    _currentVersion = getVersionFor(version);
    ISMVocabulary.setDDMSVersion(getCurrentVersion());
    return (getCurrentVersion());
  }
View Full Code Here

TOP

Related Classes of buri.ddmsence.ddms.UnsupportedVersionException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.