Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.apache.maven.artifact.repository.metadata;
 
 /*
  * 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.
 */
Describes repository directory metadata.

Author(s):
Brett Porter
Todo:
not happy about the store method - they use "this"
public interface RepositoryMetadata
    int RELEASE = 1;
    int SNAPSHOT = 2;
    int RELEASE_OR_SNAPSHOT =  | ;

    
Get the repository the metadata was located in.

Returns:
the repository
Set the repository the metadata was located in.

Parameters:
remoteRepository the repository
    void setRepositoryArtifactRepository remoteRepository );

    
Get the repository metadata associated with this marker.

Returns:
the metadata, or null if none loaded
    Metadata getMetadata();

    
Set the metadata contents.

Parameters:
metadata the metadata
    void setMetadataMetadata metadata );

    
Whether this represents a snapshot.

Returns:
if it is a snapshot
    boolean isSnapshot();

    
Gets the artifact quality this metadata refers to. One of RELEASE, SNAPSHOT or RELEASE_OR_SNAPSHOT.

Returns:
The artifact quality this metadata refers to.
    int getNature();

    
Gets the policy that applies to this metadata regarding the specified repository.

Parameters:
repository The repository for which to determine the policy, must not be null.
Returns:
The policy, never null.
New to GrepCode? Check out our FAQ X