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 PrivilegeTypeResource.

Version:
$Revision$ $Date$
 
 public class PrivilegeTypeResource
     implements java.io.Serializable
 {
 
       //--------------------------/
      //- Class/Member Variables -/
     //--------------------------/
 
    
Field id.
 
     private String id;

    
Field name.
 
     private String name;

    
Field properties.
 
 
 
       //-----------/
      //- Methods -/
     //-----------/
 
    
Method addProperty.

Parameters:
privilegeTypePropertyResource
 
     public void addPropertyPrivilegeTypePropertyResource privilegeTypePropertyResource )
     {
         if ( !(privilegeTypePropertyResource instanceof PrivilegeTypePropertyResource) )
         {
             throw new ClassCastException"PrivilegeTypeResource.addProperties(privilegeTypePropertyResource) parameter must be instanceof " + PrivilegeTypePropertyResource.class.getName() );
         }
         getProperties().addprivilegeTypePropertyResource );
     } //-- void addProperty( PrivilegeTypePropertyResource )
 
    
Get the id field.

Returns:
String
 
     public String getId()
     {
         return this.;
     } //-- String getId()
 
    
Get the name field.

Returns:
String
 
     public String getName()
     {
         return this.;
     } //-- String getName()
 
    
Method getProperties.

Returns:
List
 
     {
         if ( this. == null )
         {
             this. = new java.util.ArrayList<PrivilegeTypePropertyResource>();
         }
 
         return this.;
     } //-- java.util.List<PrivilegeTypePropertyResource> getProperties()
 
    
Method removeProperty.

Parameters:
privilegeTypePropertyResource
 
     public void removePropertyPrivilegeTypePropertyResource privilegeTypePropertyResource )
     {
         if ( !(privilegeTypePropertyResource instanceof PrivilegeTypePropertyResource) )
        {
            throw new ClassCastException"PrivilegeTypeResource.removeProperties(privilegeTypePropertyResource) parameter must be instanceof " + PrivilegeTypePropertyResource.class.getName() );
        }
        getProperties().removeprivilegeTypePropertyResource );
    } //-- void removeProperty( PrivilegeTypePropertyResource )

    
Set the id field.

Parameters:
id
    public void setIdString id )
    {
        this. = id;
    } //-- void setId( String )

    
Set the name field.

Parameters:
name
    public void setNameString name )
    {
        this. = name;
    } //-- void setName( String )

    
Set the properties field.

Parameters:
properties
    public void setPropertiesjava.util.List<PrivilegeTypePropertyResourceproperties )
    {
        this. = properties;
    } //-- void setProperties( java.util.List )
New to GrepCode? Check out our FAQ X