package org.apache.maven.archiva.repository.content;

/*
 * Licensed to the Apache Software Foundation (ASF) under one
 * or more contributor license agreements.  See the NOTICE file
 * distributed with this work for additional information
 * regarding copyright ownership.  The ASF licenses this file
 * to you under the Apache License, Version 2.0 (the
 * "License"); you may not use this file except in compliance
 * with the License.  You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 * KIND, either express or implied.  See the License for the
 * specific language governing permissions and limitations
 * under the License.
 */

import org.apache.maven.archiva.model.ArtifactReference;
import org.apache.maven.archiva.repository.layout.LayoutException;

/**
 * PathParser interface.
 * 
 * @author <a href="mailto:nicolas@apache.org">nicolas de loof</a>
 * @version $Id$
 */
public interface PathParser
{

    /**
     * Take a path and get the ArtifactReference associated with it.
     * 
     * @param path the relative path to parse.
     * @return the ArtifactReference for the provided path. (never null)
     * @throws LayoutException if there was a problem parsing the path.
     */
    public ArtifactReference toArtifactReference( String path )
        throws LayoutException;

}

@@ -49,15 +49,12 @@
 ent;
-%0D%0A%0D
+%0A
 %0A/*
-%0D
 %0A * 
@@ -111,17 +111,16 @@
 nder one
-%0D
 %0A * or m
@@ -171,25 +171,24 @@
  NOTICE file
-%0D
 %0A * distribu
@@ -232,17 +232,16 @@
 ormation
-%0D
 %0A * rega
@@ -294,17 +294,16 @@
 his file
-%0D
 %0A * to y
@@ -347,17 +347,16 @@
 2.0 (the
-%0D
 %0A * %22Lic
@@ -409,17 +409,16 @@
 mpliance
-%0D
 %0A * with
@@ -471,21 +471,19 @@
 cense at
-%0D
 %0A *
-%0D
 %0A *   ht
@@ -526,13 +526,11 @@
 -2.0
-%0D
 %0A *
-%0D
 %0A * 
@@ -587,17 +587,16 @@
 writing,
-%0D
 %0A * soft
@@ -650,17 +650,16 @@
 ed on an
-%0D
 %0A * %22AS 
@@ -708,17 +708,16 @@
 S OF ANY
-%0D
 %0A * KIND
@@ -769,17 +769,16 @@
  for the
-%0D
 %0A * spec
@@ -828,17 +828,16 @@
 itations
-%0D
 %0A * unde
@@ -854,16 +854,13 @@
 nse.
-%0D
 %0A */
-%0D%0A%0D
+%0A
 %0Aimp
@@ -912,17 +912,16 @@
 ference;
-%0D
 %0Aimport 
@@ -983,16 +983,13 @@
 ion;
-%0D%0A%0D
+%0A
 %0A/**
-%0D
 %0A * 
@@ -1013,14 +1013,12 @@
 ace.
-%0D
 %0A * 
-%0D
 %0A * 
@@ -1080,17 +1080,16 @@
 loof%3C/a%3E
-%0D
 %0A * @ver
@@ -1101,14 +1101,12 @@
 $Id$
-%0D
 %0A */
-%0D
 %0Apub
@@ -1133,22 +1133,19 @@
 rser
-%0D
 %0A%7B
-%0D%0A%0D
+%0A
 %0A    /**
 %0D%0A  
@@ -1140,17 +1140,16 @@
 %0A    /**
-%0D
 %0A     * 
@@ -1209,25 +1209,24 @@
 with it.
-%0D
 %0A     * 
 %0D%0A     *
@@ -1217,17 +1217,16 @@
 %0A     * 
-%0D
 %0A     * 
@@ -1264,17 +1264,16 @@
 o parse.
-%0D
 %0A     * 
@@ -1337,17 +1337,16 @@
 er null)
-%0D
 %0A     * 
@@ -1413,17 +1413,16 @@
 ath.
-%0D
 %0A     */
 %0D%0A  
@@ -1417,17 +1417,16 @@
 %0A     */
-%0D
 %0A    pub
@@ -1481,17 +1481,16 @@
 g path )
-%0D
 %0A       
@@ -1517,11 +1517,8 @@
 ion;
-%0D%0A%0D
+%0A
 %0A%7D
-%0D
 %0A

set eol-style