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;

Configuration validation status.

Version:
$Revision$ $Date$
 
 @SuppressWarnings"all" )
 @javax.xml.bind.annotation.XmlType( name = "status-configuration-validation-response" )
     implements java.io.Serializable
 {
 
       //--------------------------/
      //- Class/Member Variables -/
     //--------------------------/
 
    
Flag that states if the nexus configuration is valid.
 
     private boolean valid = false;

    
Flag that states if nexus had to modify the nexus configuration.
 
     private boolean modified = false;

    
Field validationErrors.
 
     @javax.xml.bind.annotation.XmlElementWrapper( name = "validationErrors" )
     @javax.xml.bind.annotation.XmlElement( name = "error" )
     private java.util.List<StringvalidationErrors;

    
Field validationWarnings.
 
     @javax.xml.bind.annotation.XmlElementWrapper( name = "validationWarnings" )
     @javax.xml.bind.annotation.XmlElement( name = "warning" )
     private java.util.List<StringvalidationWarnings;
 
 
       //-----------/
      //- Methods -/
     //-----------/
 
    
Method addValidationError.

Parameters:
string
 
     public void addValidationErrorString string )
     {
         getValidationErrors().addstring );
     } //-- void addValidationError( String )
 
    
Method addValidationWarning.

Parameters:
string
 
     public void addValidationWarningString string )
     {
         getValidationWarnings().addstring );
     } //-- void addValidationWarning( String )
 
    
Method getValidationErrors.

Returns:
List
 
     public java.util.List<StringgetValidationErrors()
     {
         if ( this. == null )
         {
             this. = new java.util.ArrayList<String>();
         }
 
         return this.;
     } //-- java.util.List<String> getValidationErrors()
 
    
Method getValidationWarnings.

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

    
Get flag that states if nexus had to modify the nexus configuration.

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

    
Get flag that states if the nexus configuration is valid.

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

    
Method removeValidationError.

Parameters:
string
    public void removeValidationErrorString string )
    {
        getValidationErrors().removestring );
    } //-- void removeValidationError( String )

    
Method removeValidationWarning.

Parameters:
string
    public void removeValidationWarningString string )
    {
        getValidationWarnings().removestring );
    } //-- void removeValidationWarning( String )

    
Set flag that states if nexus had to modify the nexus configuration.

Parameters:
modified
    public void setModifiedboolean modified )
    {
        this. = modified;
    } //-- void setModified( boolean )

    
Set flag that states if the nexus configuration is valid.

Parameters:
valid
    public void setValidboolean valid )
    {
        this. = valid;
    } //-- void setValid( boolean )

    
Set list of configuration validation errors.

Parameters:
validationErrors
    public void setValidationErrorsjava.util.List<StringvalidationErrors )
    {
        this. = validationErrors;
    } //-- void setValidationErrors( java.util.List )

    
Set list of configuration validation warnings.

Parameters:
validationWarnings
    public void setValidationWarningsjava.util.List<StringvalidationWarnings )
    {
        this. = validationWarnings;
    } //-- void setValidationWarnings( java.util.List )
New to GrepCode? Check out our FAQ X