Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /*
  =================== DO NOT EDIT THIS FILE ====================
  Generated by Modello 1.0.2 on 2009-12-09 08:13:16,
  any modifications will be overwritten.
  ==============================================================
  */
 
 package org.sonatype.security.rest.model;

Class PrivilegeListResourceResponse.

Version:
$Revision$ $Date$
    implements java.io.Serializable
      //--------------------------/
     //- Class/Member Variables -/
    //--------------------------/

    
Field data.
      //-----------/
     //- Methods -/
    //-----------/

    
Method addData.

Parameters:
privilegeStatusResource
    public void addDataPrivilegeStatusResource privilegeStatusResource )
    {
        if ( !(privilegeStatusResource instanceof PrivilegeStatusResource) )
        {
            throw new ClassCastException"PrivilegeListResourceResponse.addData(privilegeStatusResource) parameter must be instanceof " + PrivilegeStatusResource.class.getName() );
        }
        getData().addprivilegeStatusResource );
    } //-- void addData( PrivilegeStatusResource )

    
Method getData.

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

    
Method removeData.

Parameters:
privilegeStatusResource
    public void removeDataPrivilegeStatusResource privilegeStatusResource )
    {
        if ( !(privilegeStatusResource instanceof PrivilegeStatusResource) )
        {
            throw new ClassCastException"PrivilegeListResourceResponse.removeData(privilegeStatusResource) parameter must be instanceof " + PrivilegeStatusResource.class.getName() );
        }
        getData().removeprivilegeStatusResource );
    } //-- void removeData( PrivilegeStatusResource )

    
Set the data field.

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