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 rpmverifypackage_state defines the different information that can be used to verify the integrity of installed RPMs.

Author(s):
Akihito Nakamura, AIST
Version:
$Id: RpmVerifyPackageState.java 3046 2013-02-21 09:33:57Z nakamura5akihito@gmail.com $
See also:
OVAL Language
 
 public class RpmVerifyPackageState
     extends StateType
 {
 
     //{0..1}
     private EntityStateStringType           name;
     private EntityStateAnySimpleType        epoch;
     private EntityStateAnySimpleType        version;
     private EntityStateAnySimpleType        release;
     private EntityStateStringType           arch;
 
     private EntityStateBoolType             dependency_check_passed;
     private EntityStateBoolType             digest_check_passed;
     private EntityStateBoolType             verification_script_successful;
     private EntityStateBoolType             signature_check_passed;



    
Constructor.
 
     public RpmVerifyPackageState()
     {
         thisnull, 0 );
     }
 
 
     public RpmVerifyPackageState(
                     final String id,
                     final int version
                     )
     {
         superidversion );
 
          = .;
     }



    
 
     public void setName(
                     final EntityStateStringType name
                     )
     {
         this. = name;
     }
 
 
     public EntityStateStringType getName()
     {
         return ;
     }



    
 
    public void setEpoch(
                    final EntityStateAnySimpleType epoch
                    )
    {
        this. = epoch;
    }
    {
        return ;
    }



    
    public void setVersion(
                    final EntityStateAnySimpleType version
                    )
    {
        this. = version;
    }
    {
        return ;
    }



    
    public void setRelease(
                    final EntityStateAnySimpleType release
                    )
    {
        this. = release;
    }
    {
        return ;
    }



    
    public void setArch(
                    final EntityStateStringType arch
                    )
    {
        this. = arch;
    }
    {
        return ;
    }



    
    public void setDependencyCheckPassed(
                    final EntityStateBoolType dependency_check_passed
                    )
    {
        this. = dependency_check_passed;
    }
    {
        return ;
    }



    
    public void setDigestCheckPassed(
                    final EntityStateBoolType digest_check_passed
                    )
    {
        this. = digest_check_passed;
    }
    {
        return ;
    }



    
    public void setVerificationScriptSuccessful(
                    final EntityStateBoolType verification_script_successful
                    )
    {
        this. = verification_script_successful;
    }
    {
        return ;
    }



    
    public void setSignatureCheckPassed(
                    final EntityStateBoolType signature_check_passed
                    )
    {
        this. = signature_check_passed;
    }
    {
        return ;
    }
    //*********************************************************************
    //  DefinitionsElement
    //*********************************************************************
    @Override
    {
        Collection<ElementRef>  ref_list = new ArrayList<ElementRef>();
        ref_list.addgetName() );
        ref_list.addgetEpoch() );
        ref_list.addgetVersion() );
        ref_list.addgetRelease() );
        ref_list.addgetArch() );
        ref_list.addgetDependencyCheckPassed() );
        ref_list.addgetDigestCheckPassed() );
        ref_list.addgetVerificationScriptSuccessful() );
        ref_list.addgetSignatureCheckPassed() );
        return ref_list;
    }
    // **************************************************************
    // java.lang.Object
    // **************************************************************
    @Override
    public int hashCode()
    {
        return super.hashCode();
    }
    @Override
    public boolean equals(
                    final Object obj
                    )
    {
        if (!(obj instanceof RpmVerifyPackageState)) {
            return false;
        }
        return super.equalsobj );
    }
    @Override
    public String toString()
    {
        return "rpmverifypackage_state[" + super.toString()
                        + ", name="                 + getName()
                        + ", epoch="                + getEpoch()
                        + ", version="              + getVersion()
                        + ", release="              + getRelease()
                        + ", arch="                 + getArch()
                        + ", configuration_file="   + getDependencyCheckPassed()
                        + ", documentation_file="   + getDigestCheckPassed()
                        + ", ghost_file="           + getVerificationScriptSuccessful()
                        + ", license_file="         + getSignatureCheckPassed()
                        + "]";
    }
//
New to GrepCode? Check out our FAQ X