Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
SIX OVAL - http://code.google.com/p/six-oval/ Copyright (C) 2010 National Institute of Advanced Industrial Science and Technology (AIST) Registration Number: H22PRO-1124 Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
 
 package jp.go.aist.six.oval.model.linux;
 
The RpmVerifyBehaviors defines a set of behaviors that for controlling how installed rpms are verified.

Deprecated:
Deprecated as of version 5.10: Replaced by the RpmVerifyFileBehaviors and the RpmVerifyPackageBehaviors and will be removed in version 6.0 of the language.
Author(s):
Akihito Nakamura, AIST
Version:
$Id: RpmVerifyBehaviors.java 3046 2013-02-21 09:33:57Z nakamura5akihito@gmail.com $
See also:
OVAL Language
 
 public class RpmVerifyBehaviors
     implements OvalObject
 {
 
     public static final Boolean  DEFAULT_NODEPS         = .;
     public static final Boolean  DEFAULT_NODIGEST       = .;
     public static final Boolean  DEFAULT_NOFILES        = .;
     public static final Boolean  DEFAULT_NOSCRIPTS      = .;
     public static final Boolean  DEFAULT_NOSIGNATURE    = .;
     public static final Boolean  DEFAULT_NOLINKTO       = .;
     public static final Boolean  DEFAULT_NOMD5          = .;
     public static final Boolean  DEFAULT_NOSIZE         = .;
     public static final Boolean  DEFAULT_NOUSER         = .;
     public static final Boolean  DEFAULT_NOGROUP        = .;
     public static final Boolean  DEFAULT_NOMTIME        = .;
     public static final Boolean  DEFAULT_NOMODE         = .;
     public static final Boolean  DEFAULT_NORDEV         = .;
     public static final Boolean  DEFAULT_NOCONFIGFILES  = .;
     public static final Boolean  DEFAULT_NOGHOSTFILES   = .;
 
     //{optional, default='false'}
     private Boolean  nodeps;
     private Boolean  nodigest;
     private Boolean  nofiles;
     private Boolean  noscripts;
     private Boolean  nosignature;
     private Boolean  nolinkto;
     private Boolean  nomd5;
     private Boolean  nosize;
     private Boolean  nouser;
     private Boolean  nogroup;
     private Boolean  nomtime;
     private Boolean  nomode;
     private Boolean  nordev;
     private Boolean  noconfigfiles;
     private Boolean  noghostfiles;




    
Constructor.
 
     public RpmVerifyBehaviors()
     {
     }



    
 
     public void setNodeps(
                     final Boolean nodeps
                     )
     {
         this. = nodeps;
     }
 
 
     public Boolean getNodeps()
     {
         return ;
     }
    public static final Boolean nodeps(
                    final RpmVerifyBehaviors behaviors
                    )
    {
        Boolean  nodeps = behaviors.getNodeps();
        return (nodeps == null ?  : nodeps);
    }



    
    public void setNodigest(
                    final Boolean nodigest
                    )
    {
        this. = nodigest;
    }
    public Boolean getNodigest()
    {
        return ;
    }
    public static final Boolean nodigest(
                    final RpmVerifyBehaviors behaviors
                    )
    {
        Boolean  nodigest = behaviors.getNodigest();
        return (nodigest == null ?  : nodigest);
    }



    
    public void setNofiles(
                    final Boolean nofiles
                    )
    {
        this. = nofiles;
    }
    public Boolean getNofiles()
    {
        return ;
    }
    public static final Boolean nofiles(
                    final RpmVerifyBehaviors behaviors
                    )
    {
        Boolean  nofiles = behaviors.getNofiles();
        return (nofiles == null ?  : nofiles);
    }



    
    public void setNoscripts(
                    final Boolean noscripts
                    )
    {
        this. = noscripts;
    }
    public Boolean getNoscripts()
    {
        return ;
    }
    public static final Boolean noscripts(
                    final RpmVerifyBehaviors behaviors
                    )
    {
        Boolean  noscripts = behaviors.getNoscripts();
        return (noscripts == null ?  : noscripts);
    }



    
    public void setNosignature(
                    final Boolean nosignature
                    )
    {
        this. = nosignature;
    }
    public Boolean getNosignature()
    {
        return ;
    }
    public static final Boolean nosignature(
                    final RpmVerifyBehaviors behaviors
                    )
    {
        Boolean  nosignature = behaviors.getNosignature();
        return (nosignature == null ?  : nosignature);
    }



    
    public void setNolinkto(
                    final Boolean nolinkto
                    )
    {
        this. = nolinkto;
    }
    public Boolean getNolinkto()
    {
        return ;
    }
    public static final Boolean nolinkto(
                    final RpmVerifyBehaviors behaviors
                    )
    {
        Boolean  nolinkto = behaviors.getNolinkto();
        return (nolinkto == null ?  : nolinkto);
    }



    
    public void setNomd5(
                    final Boolean nomd5
                    )
    {
        this. = nomd5;
    }
    public Boolean getNomd5()
    {
        return ;
    }
    public static final Boolean nomd5(
                    final RpmVerifyBehaviors behaviors
                    )
    {
        Boolean  nomd5 = behaviors.getNomd5();
        return (nomd5 == null ?  : nomd5);
    }



    
    public void setNosize(
                    final Boolean nosize
                    )
    {
        this. = nosize;
    }
    public Boolean getNosize()
    {
        return ;
    }
    public static final Boolean nosize(
                    final RpmVerifyBehaviors behaviors
                    )
    {
        Boolean  nosize = behaviors.getNosize();
        return (nosize == null ?  : nosize);
    }



    
    public void setNouser(
                    final Boolean nouser
                    )
    {
        this. = nouser;
    }
    public Boolean getNouser()
    {
        return ;
    }
    public static final Boolean nouser(
                    final RpmVerifyBehaviors behaviors
                    )
    {
        Boolean  nouser = behaviors.getNouser();
        return (nouser == null ?  : nouser);
    }



    
    public void setNogroup(
                    final Boolean nogroup
                    )
    {
        this. = nogroup;
    }
    public Boolean getNogroup()
    {
        return ;
    }
    public static final Boolean nogroup(
                    final RpmVerifyBehaviors behaviors
                    )
    {
        Boolean  nogroup = behaviors.getNogroup();
        return (nogroup == null ?  : nogroup);
    }



    
    public void setNomtime(
                    final Boolean nomtime
                    )
    {
        this. = nomtime;
    }
    public Boolean getNomtime()
    {
        return ;
    }
    public static final Boolean nomtime(
                    final RpmVerifyBehaviors behaviors
                    )
    {
        Boolean  nomtime = behaviors.getNomtime();
        return (nomtime == null ?  : nomtime);
    }



    
    public void setNomode(
                    final Boolean nomode
                    )
    {
        this. = nomode;
    }
    public Boolean getNomode()
    {
        return ;
    }
    public static final Boolean nomode(
                    final RpmVerifyBehaviors behaviors
                    )
    {
        Boolean  nomode = behaviors.getNomtime();
        return (nomode == null ?  : nomode);
    }



    
    public void setNordev(
                    final Boolean nordev
                    )
    {
        this. = nordev;
    }
    public Boolean getNordev()
    {
        return ;
    }
    public static final Boolean nordev(
                    final RpmVerifyBehaviors behaviors
                    )
    {
        Boolean  nordev = behaviors.getNordev();
        return (nordev == null ?  : nordev);
    }



    
    public void setNoconfigfiles(
                    final Boolean noconfigfiles
                    )
    {
        this. = noconfigfiles;
    }
    public Boolean getNoconfigfiles()
    {
        return ;
    }
    public static final Boolean noconfigfiles(
                    final RpmVerifyBehaviors behaviors
                    )
    {
        Boolean  noconfigfiles = behaviors.getNordev();
        return (noconfigfiles == null ?  : noconfigfiles);
    }



    
    public void setNoghostfiles(
                    final Boolean noghostfiles
                    )
    {
        this. = noghostfiles;
    }
    public Boolean getNoghostfiles()
    {
        return ;
    }
    public static final Boolean noghostfiles(
                    final RpmVerifyBehaviors behaviors
                    )
    {
        Boolean  noghostfiles = behaviors.getNordev();
        return (noghostfiles == null ?  : noghostfiles);
    }
    //**************************************************************
    //  java.lang.Object
    //**************************************************************
    @Override
    public int hashCode()
    {
        final int  prime = 37;
        int  result = 17;
        result = prime * result + nodepsthis ).hashCode();
        result = prime * result + nodigestthis ).hashCode();
        result = prime * result + nofilesthis ).hashCode();
        result = prime * result + noscriptsthis ).hashCode();
        result = prime * result + nosignaturethis ).hashCode();
        result = prime * result + nolinktothis ).hashCode();
        result = prime * result + nomd5this ).hashCode();
        result = prime * result + nosizethis ).hashCode();
        result = prime * result + nouserthis ).hashCode();
        result = prime * result + nogroupthis ).hashCode();
        result = prime * result + nomtimethis ).hashCode();
        result = prime * result + nomodethis ).hashCode();
        result = prime * result + nordevthis ).hashCode();
        result = prime * result + noconfigfilesthis ).hashCode();
        result = prime * result + noghostfilesthis ).hashCode();
        return result;
    }
    @Override
    public boolean equals(
                    final Object obj
                    )
    {
        if (this == obj) {
            return true;
        }
        if (!(obj instanceof RpmVerifyBehaviors)) {
            return false;
        }
        if (super.equalsobj )) {
            RpmVerifyBehaviors  other = (RpmVerifyBehaviors)obj;
            if (nodepsthis ) == nodepsother )
                            && nodigestthis ) == nodigestother )
                            && nofilesthis ) == nofilesother )
                            && noscriptsthis ) == noscriptsother )
                            && nosignaturethis ) == nosignatureother )
                            && nolinktothis ) == nolinktoother )
                            && nomd5this ) == nomd5other )
                            && nosizethis ) == nosizeother )
                            && nouserthis ) == nouserother )
                            && nogroupthis ) == nogroupother )
                            && nomtimethis ) == nomtimeother )
                            && nomodethis ) == nomodeother )
                            && nordevthis ) == nordevother )
                            && noconfigfilesthis ) == noconfigfilesother )
                            && noghostfilesthis ) == noghostfilesother )
                            ) {
                return true;
            }
        }
        return false;
    }
    @Override
    public String toString()
    {
        return super.toString()
                        + ", nodeps="           + getNodeps()
                        + ", nodigest="         + getNodigest()
                        + ", nofiles="          + getNofiles()
                        + ", noscripts="        + getNoscripts()
                        + ", nosignature="      + getNosignature()
                        + ", nolinkto="         + getNolinkto()
                        + ", nomd5="            + getNomd5()
                        + ", nosize="           + getNosize()
                        + ", nouser="           + getNouser()
                        + ", nogroup="          + getNogroup()
                        + ", nomtime="          + getNomtime()
                        + ", nomode="           + getNomode()
                        + ", nordev="           + getNordev()
                        + ", noconfigfiles="    + getNoconfigfiles()
                        + ", noghostfiles="     + getNoghostfiles()
                        ;
    }
//RpmVerifyBehaviors
New to GrepCode? Check out our FAQ X