diff options
author | Joakim Erdfelt <joakime@apache.org> | 2008-03-16 01:11:40 +0000 |
---|---|---|
committer | Joakim Erdfelt <joakime@apache.org> | 2008-03-16 01:11:40 +0000 |
commit | cea8a7f707ba0b81c3573be4f3bc0ca7d1512bcf (patch) | |
tree | 2507b015c05f1ad7e099d4f885d2ff6c3246753f /archiva-base | |
parent | a2afb006cf8519e392652eb0d9b8066ed8525d5b (diff) | |
download | archiva-cea8a7f707ba0b81c3573be4f3bc0ca7d1512bcf.tar.gz archiva-cea8a7f707ba0b81c3573be4f3bc0ca7d1512bcf.zip |
Adding apache header, fixing javadocs.
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@637499 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-base')
-rw-r--r-- | archiva-base/archiva-repository-layer/src/main/java/org/apache/maven/archiva/repository/content/PathParser.java | 33 |
1 files changed, 29 insertions, 4 deletions
diff --git a/archiva-base/archiva-repository-layer/src/main/java/org/apache/maven/archiva/repository/content/PathParser.java b/archiva-base/archiva-repository-layer/src/main/java/org/apache/maven/archiva/repository/content/PathParser.java index 88fff1e43..5cea93a16 100644 --- a/archiva-base/archiva-repository-layer/src/main/java/org/apache/maven/archiva/repository/content/PathParser.java +++ b/archiva-base/archiva-repository-layer/src/main/java/org/apache/maven/archiva/repository/content/PathParser.java @@ -1,18 +1,43 @@ -/**
+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.
*/
-package org.apache.maven.archiva.repository.content;
import org.apache.maven.archiva.model.ArtifactReference;
import org.apache.maven.archiva.repository.layout.LayoutException;
/**
- * @author ndeloof
- *
+ * 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;
|