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 Response object for a content resource request, contains the typical 'data' parameter, which is a list of the content items requested.

Version:
$Revision$ $Date$
@SuppressWarnings"all" )
@javax.xml.bind.annotation.XmlRootElement( name = "content" )
    extends NexusResponse
    implements java.io.Serializable
      //--------------------------/
     //- Class/Member Variables -/
    //--------------------------/

    
Field data.
    @javax.xml.bind.annotation.XmlElementWrapper( name = "data" )
    @javax.xml.bind.annotation.XmlElement( name = "content-item" )
      //-----------/
     //- Methods -/
    //-----------/

    
Method addData.

Parameters:
contentListResource
    public void addDataContentListResource contentListResource )
    {
        getData().addcontentListResource );
    } //-- void addData( ContentListResource )

    
Method getData.

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

    
Method removeData.

Parameters:
contentListResource
    public void removeDataContentListResource contentListResource )
    {
        getData().removecontentListResource );
    } //-- void removeData( ContentListResource )

    
Set list of ContentListResource objects, each of which represents a single item in the repository.

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