Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   =================== DO NOT EDIT THIS FILE ====================
   Generated by Modello 1.4.1 on 2012-04-27 06:11:26,
   any modifications will be overwritten.
   ==============================================================
   */
  
  package org.sonatype.nexus.rest.model;

Repository content class definition.

Version:
$Revision$ $Date$
 
 @SuppressWarnings"all" )
 @javax.xml.bind.annotation.XmlType( name = "repository-content-class-list-resource" )
     implements java.io.Serializable
 {
 
       //--------------------------/
      //- Class/Member Variables -/
     //--------------------------/
 
    
The content class.
 
     private String contentClass;

    
The name of the content class.
 
     private String name;

    
Flag stating if this content class can be placed in group.
 
     private boolean groupable = false;

    
Field compatibleTypes.
 
     @javax.xml.bind.annotation.XmlElementWrapper( name = "compatibleTypes" )
     @javax.xml.bind.annotation.XmlElement( name = "compatibleType" )
     private java.util.List<StringcompatibleTypes;
 
 
       //-----------/
      //- Methods -/
     //-----------/
 
    
Method addCompatibleType.

Parameters:
string
 
     public void addCompatibleTypeString string )
     {
         getCompatibleTypes().addstring );
     } //-- void addCompatibleType( String )
 
    
Method getCompatibleTypes.

Returns:
List
 
     public java.util.List<StringgetCompatibleTypes()
     {
         if ( this. == null )
         {
             this. = new java.util.ArrayList<String>();
         }
 
         return this.;
     } //-- java.util.List<String> getCompatibleTypes()
 
    
Get the content class.

Returns:
String
 
     public String getContentClass()
     {
         return this.;
     } //-- String getContentClass()
 
    
Get the name of the content class.

Returns:
String
 
     public String getName()
     {
         return this.;
     } //-- String getName()
 
    
Get flag stating if this content class can be placed in group.

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

    
Method removeCompatibleType.

Parameters:
string
    public void removeCompatibleTypeString string )
    {
        getCompatibleTypes().removestring );
    } //-- void removeCompatibleType( String )

    
Set the other content classes this content class is compatible with.

Parameters:
compatibleTypes
    public void setCompatibleTypesjava.util.List<StringcompatibleTypes )
    {
        this. = compatibleTypes;
    } //-- void setCompatibleTypes( java.util.List )

    
Set the content class.

Parameters:
contentClass
    public void setContentClassString contentClass )
    {
        this. = contentClass;
    } //-- void setContentClass( String )

    
Set flag stating if this content class can be placed in group.

Parameters:
groupable
    public void setGroupableboolean groupable )
    {
        this. = groupable;
    } //-- void setGroupable( boolean )

    
Set the name of the content class.

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