1 package org.apache.maven.artifact.repository.metadata; 2 3 /* 4 * Copyright 2001-2005 The Apache Software Foundation. 5 * 6 * Licensed under the Apache License, Version 2.0 (the "License"); 7 * you may not use this file except in compliance with the License. 8 * You may obtain a copy of the License at 9 * 10 * http://www.apache.org/licenses/LICENSE-2.0 11 * 12 * Unless required by applicable law or agreed to in writing, software 13 * distributed under the License is distributed on an "AS IS" BASIS, 14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 * See the License for the specific language governing permissions and 16 * limitations under the License. 17 */ 18 19 import org.apache.maven.artifact.metadata.ArtifactMetadata; 20 import org.apache.maven.artifact.repository.ArtifactRepository; 21 22 /** 23 * Describes repository directory metadata. 24 * 25 * @author <a HREF="mailto:brett@apache.org">Brett Porter</a> 26 * @version $Id: RepositoryMetadata.java 280237 2005-09-12 02:11:12Z brett $ 27 * @todo not happy about the store method - they use "this" 28 */ 29 public interface RepositoryMetadata 30 extends ArtifactMetadata 31 { 32 /** 33 * Set the repository the metadata was located in. 34 * 35 * @param remoteRepository the repository 36 */ 37 void setRepository( ArtifactRepository remoteRepository ); 38 39 /** 40 * Get the repository metadata associated with this marker. 41 * 42 * @return the metadata, or <code>null</code> if none loaded 43 */ 44 Metadata getMetadata(); 45 46 /** 47 * Set the metadata contents. 48 * 49 * @param metadata the metadata 50 */ 51 void setMetadata( Metadata metadata ); 52 53 /** 54 * Whether this represents a snapshot. 55 * 56 * @return if it is a snapshot 57 */ 58 boolean isSnapshot(); 59 } 60