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;

A Content Item definition, including all data needed to properly access the item, and understand the item.

Version:
$Revision$ $Date$
 
 @SuppressWarnings"all" )
 @javax.xml.bind.annotation.XmlType( name = "content-list-resource" )
 public class ContentListResource
     implements java.io.Serializable
 {
 
       //--------------------------/
      //- Class/Member Variables -/
     //--------------------------/
 
    
The URI that can be used to directly access this item in the future.
 
     private String resourceURI;

    
The relative path in relation to the root of the repository.
 
     private String relativePath;

    
A name of the content item.
 
     private String text;

    
Flag that states whether the content item is a file item (if true), otherwise it is a folder item, and can use the resourceURI to retrieve the contained content.
 
     private boolean leaf = false;

    
Timestamp the item was last modified.
 
     private java.util.Date lastModified;

    
Size of the item on the disk.
 
     private long sizeOnDisk = 0L;
 
 
       //-----------/
      //- Methods -/
     //-----------/
 
    
Get timestamp the item was last modified.

Returns:
Date
 
     public java.util.Date getLastModified()
     {
         return this.;
     } //-- java.util.Date getLastModified()
 
    
Get the relative path in relation to the root of the repository.

Returns:
String
 
     public String getRelativePath()
     {
         return this.;
     } //-- String getRelativePath()
 
    
Get the URI that can be used to directly access this item in the future.

Returns:
String
 
     public String getResourceURI()
     {
         return this.;
     } //-- String getResourceURI()
 
    
Get size of the item on the disk.

Returns:
long
    public long getSizeOnDisk()
    {
        return this.;
    } //-- long getSizeOnDisk()

    
Get a name of the content item.

Returns:
String
    public String getText()
    {
        return this.;
    } //-- String getText()

    
Get flag that states whether the content item is a file item (if true), otherwise it is a folder item, and can use the resourceURI to retrieve the contained content.

Returns:
boolean
    public boolean isLeaf()
    {
        return this.;
    } //-- boolean isLeaf()

    
Set timestamp the item was last modified.

Parameters:
lastModified
    public void setLastModifiedjava.util.Date lastModified )
    {
        this. = lastModified;
    } //-- void setLastModified( java.util.Date )

    
Set flag that states whether the content item is a file item (if true), otherwise it is a folder item, and can use the resourceURI to retrieve the contained content.

Parameters:
leaf
    public void setLeafboolean leaf )
    {
        this. = leaf;
    } //-- void setLeaf( boolean )

    
Set the relative path in relation to the root of the repository.

Parameters:
relativePath
    public void setRelativePathString relativePath )
    {
        this. = relativePath;
    } //-- void setRelativePath( String )

    
Set the URI that can be used to directly access this item in the future.

Parameters:
resourceURI
    public void setResourceURIString resourceURI )
    {
        this. = resourceURI;
    } //-- void setResourceURI( String )

    
Set size of the item on the disk.

Parameters:
sizeOnDisk
    public void setSizeOnDisklong sizeOnDisk )
    {
        this. = sizeOnDisk;
    } //-- void setSizeOnDisk( long )

    
Set a name of the content item.

Parameters:
text
    public void setTextString text )
    {
        this. = text;
    } //-- void setText( String )
New to GrepCode? Check out our FAQ X