Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /*
  =================== DO NOT EDIT THIS FILE ====================
  Generated by Modello 1.4.1 on 2011-04-25 14:05:00,
  any modifications will be overwritten.
  ==============================================================
  */
 
 package org.sonatype.nexus.rest.model;

REST Request object to persist list of mirrors associated with a repository, contains the typical 'data' parameter, which is the list of mirrors.

Version:
$Revision$ $Date$
@SuppressWarnings"all" )
@com.thoughtworks.xstream.annotations.XStreamAlias( value = "mirror-list-request" )
@javax.xml.bind.annotation.XmlRootElement( name = "mirror-list-request" )
    extends NexusResponse
    implements java.io.Serializable
      //--------------------------/
     //- Class/Member Variables -/
    //--------------------------/

    
Field data.
    @javax.xml.bind.annotation.XmlElementWrapper( name = "data" )
    @javax.xml.bind.annotation.XmlElement( name = "mirrorResource" )
    private java.util.List<MirrorResourcedata;
      //-----------/
     //- Methods -/
    //-----------/

    
Method addData.

Parameters:
mirrorResource
    public void addDataMirrorResource mirrorResource )
    {
        getData().addmirrorResource );
    } //-- void addData( MirrorResource )

    
Method getData.

Returns:
List
    public java.util.List<MirrorResourcegetData()
    {
        if ( this. == null )
        {
            this. = new java.util.ArrayList<MirrorResource>();
        }
        return this.;
    } //-- java.util.List<MirrorResource> getData()

    
Method removeData.

Parameters:
mirrorResource
    public void removeDataMirrorResource mirrorResource )
    {
        getData().removemirrorResource );
    } //-- void removeData( MirrorResource )

    
Set list of mirrors.

Parameters:
data
    public void setDatajava.util.List<MirrorResourcedata )
    {
        this. = data;
    } //-- void setData( java.util.List )
New to GrepCode? Check out our FAQ X