Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  // =================== DO NOT EDIT THIS FILE ====================
  // Generated by Modello 1.7,
  // any modifications will be overwritten.
  // ==============================================================
  
  package org.sonatype.nexus.plugins.capabilities.internal.config.persistence;

The root element of Nexus configuration.

Version:
$Revision$ $Date$
 
 @SuppressWarnings"all" )
 public class Configuration
 {
 
       //--------------------------/
      //- Class/Member Variables -/
     //--------------------------/
 
    
The version of the persisted model.
 
     private String version = "2.0.0";

    
Field capabilities.
 
     private java.util.List<CCapabilitycapabilities;

    
Field modelEncoding.
 
     private String modelEncoding = "UTF-8";
 
 
       //-----------/
      //- Methods -/
     //-----------/
 
    
Method addCapability.

Parameters:
cCapability
 
     public void addCapabilityCCapability cCapability )
     {
         getCapabilities().addcCapability );
     } //-- void addCapability( CCapability )
 
    
Method clone.

Returns:
Configuration
 
     public Configuration clone()
     {
         try
         {
             Configuration copy = (Configurationsuper.clone();
 
             if ( this. != null )
             {
                 copy.capabilities = new java.util.ArrayList<CCapability>();
                 for ( CCapability item : this. )
                 {
                     copy.capabilities.add( ( (CCapabilityitem).clone() );
                 }
             }
 
             return copy;
         }
         catch ( java.lang.Exception ex )
         {
             throw (java.lang.RuntimeExceptionnew java.lang.UnsupportedOperationExceptiongetClass().getName()
                 + " does not support clone()" ).initCauseex );
         }
     } //-- Configuration clone()
 
    
Method getCapabilities.

Returns:
List
 
     {
         if ( this. == null )
         {
             this. = new java.util.ArrayList<CCapability>();
         }
 
         return this.;
     } //-- java.util.List<CCapability> getCapabilities()
 
    
Get the modelEncoding field.

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

    
Get the version of the persisted model.

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

    
Method removeCapability.

Parameters:
cCapability
    public void removeCapabilityCCapability cCapability )
    {
        getCapabilities().removecCapability );
    } //-- void removeCapability( CCapability )

    
Set currently defined capabilities.

Parameters:
capabilities
    public void setCapabilitiesjava.util.List<CCapabilitycapabilities )
    {
        this. = capabilities;
    } //-- void setCapabilities( java.util.List )

    
Set the modelEncoding field.

Parameters:
modelEncoding
    public void setModelEncodingString modelEncoding )
    {
        this. = modelEncoding;
    } //-- void setModelEncoding( String )

    
Set the version of the persisted model.

Parameters:
version
    public void setVersionString version )
    {
        this. = version;
    } //-- void setVersion( String )
    
    public static final String MODEL_VERSION = "2.0.0";
New to GrepCode? Check out our FAQ X