@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); }
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; }
@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; }