Package com.cedarsoft.version

Examples of com.cedarsoft.version.VersionException


   * @param namespace the namespace uri
   * @throws com.cedarsoft.serialization.InvalidNamespaceException if the namespace is invalid
   */
  public void verifyNamespace( @Nullable String namespace ) throws InvalidNamespaceException, VersionException {
    if ( namespace == null || namespace.trim().isEmpty() ) {
      throw new VersionException( "No version information available" );
    }
    String expectedBase = getNameSpaceBase();
    if ( !namespace.startsWith( expectedBase ) ) {
      throw new InvalidNamespaceException( namespace, expectedBase + "/" + getFormatVersion() );
    }
View Full Code Here


  public boolean verify( @Nonnull ToString<T> toString ) throws VersionException {
    SortedSet<Version> mappedVersions = getMappedVersions();

    if ( mappings.isEmpty() ) {
      throw new VersionException( "No mappings available" );
    }

    for ( Map.Entry<T, VersionMapping> entry : mappings.entrySet() ) {
      VersionMapping mapping = entry.getValue();
View Full Code Here

TOP

Related Classes of com.cedarsoft.version.VersionException

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.