Exemplo n.º 1
0
  @Override
  public StoreKey getStoreKey() {
    if (!matches()) {
      return null;
    }

    if (!hasStoreName()) {
      return null;
    }

    final String typePart = matcher.group(STORE_TYPE_GRP);
    //        logger.info( "Type part of name is: '{}'", typePart );

    final StoreType type = StoreType.get(typePart);
    //        logger.info( "StoreType is: {}", type );

    if (type == null) {
      return null;
    }

    final String name = matcher.group(STORE_NAME_GRP);
    //        logger.info( "Store part of name is: '{}'", name );

    return new StoreKey(type, name);
  }
Exemplo n.º 2
0
  public StoreType getStoreFolderStoreType(final String uri) {
    if (!matches()) {
      return null;
    }

    if (hasStoreType()) {
      final String typePart = matcher.group(STORE_TYPE_GRP);
      //            logger.info( "Type part of name is: '{}'", typePart );

      final StoreType type = StoreType.get(typePart);
      //            logger.info( "StoreType is: {}", type );

      return type;
    }

    return null;
  }
Exemplo n.º 3
0
  @Override
  public StoreType getStoreType() {
    if (!matches()) {
      return null;
    }

    final String typePart = matcher.group(STORE_TYPE_GRP);
    //        logger.info( "Type part of name is: '{}'", typePart );

    if (isEmpty(typePart)) {
      return null;
    }

    final StoreType type = StoreType.get(typePart);
    //        logger.info( "StoreType is: {}", type );

    return type;
  }