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 rpmverify state defines the different information that can be used to evaluate the specified rpm.

Deprecated:
Deprecated as of version 5.10: Replaced by the rpmverifyfile state and rpmverifypackage state and will be removed in version 6.0 of the language.
Author(s):
Akihito Nakamura, AIST
Version:
$Id: RpmVerifyState.java 3046 2013-02-21 09:33:57Z nakamura5akihito@gmail.com $
See also:
OVAL Language
 
 public class RpmVerifyState
     extends StateType
 {
 
     //{0..1}
     private EntityStateStringType           name;
     private EntityStateStringType           filepath;
     private EntityStateBoolType             configuration_file;
     private EntityStateBoolType             documentation_file;
     private EntityStateBoolType             ghost_file;
     private EntityStateBoolType             license_file;
     private EntityStateBoolType             readme_file;



    
Constructor.
 
     public RpmVerifyState()
     {
         thisnull, 0 );
     }
 
 
     public RpmVerifyState(
                     final String id,
                     final int version
                     )
     {
         thisidversionnull );
     }
 
 
     public RpmVerifyState(
                     final String id,
                     final int version,
                     final String comment
                     )
     {
         superidversioncomment );
 
 //        _oval_platform_type = OvalPlatformType.linux;
 //        _oval_component_type = OvalComponentType.rpmverify;
          = .;
     }



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



    
    public void setFilepath(
                    final EntityStateStringType filepath
                    )
    {
        this. = filepath;
    }
    {
        return ;
    }



    
    public void setSizeDiffers(
                    final EntityStateRpmVerifyResultType size_differs
                    )
    {
        this. = size_differs;
    }
    {
        return ;
    }



    
    public void setModeDiffers(
                    final EntityStateRpmVerifyResultType mode_differs
                    )
    {
        this. = mode_differs;
    }
    {
        return ;
    }



    
    public void setMd5Differs(
                    final EntityStateRpmVerifyResultType md5_differs
                    )
    {
        this. = md5_differs;
    }
    {
        return ;
    }



    
    public void setDeviceDiffers(
                    final EntityStateRpmVerifyResultType device_differs
                    )
    {
        this. = device_differs;
    }
    {
        return ;
    }



    
    public void setLinkMismatch(
                    final EntityStateRpmVerifyResultType link_mismatch
                    )
    {
        this. = link_mismatch;
    }
    {
        return ;
    }



    
    public void setOwnershipDiffers(
                    final EntityStateRpmVerifyResultType ownership_differs
                    )
    {
        this. = ownership_differs;
    }
    {
        return ;
    }



    
    public void setGroupDiffers(
                    final EntityStateRpmVerifyResultType group_differs
                    )
    {
        this. = group_differs;
    }
    {
        return ;
    }



    
    public void setMtimeDiffers(
                    final EntityStateRpmVerifyResultType mtime_differs
                    )
    {
        this. = mtime_differs;
    }
    {
        return ;
    }



    
    public void setCapabilitiesDiffer(
                    final EntityStateRpmVerifyResultType capabilities_differ
                    )
    {
        this. = capabilities_differ;
    }
    {
        return ;
    }



    
    public void setConfigurationFile(
                    final EntityStateBoolType configuration_file
                    )
    {
        this. = configuration_file;
    }
    {
        return ;
    }



    
    public void setDocumentationFile(
                    final EntityStateBoolType documentation_file
                    )
    {
        this. = documentation_file;
    }
    {
        return ;
    }



    
    public void setGhostFile(
                    final EntityStateBoolType ghost_file
                    )
    {
        this. = ghost_file;
    }
    {
        return ;
    }



    
    public void setLicenseFile(
                    final EntityStateBoolType license_file
                    )
    {
        this. = license_file;
    }
    {
        return ;
    }



    
    public void setReadmeFile(
                    final EntityStateBoolType readme_file
                    )
    {
        this. = readme_file;
    }
    {
        return ;
    }
    //*********************************************************************
    //  DefinitionsElement
    //*********************************************************************
    @Override
    {
        Collection<ElementRef>  ref_list = new ArrayList<ElementRef>();
        ref_list.addgetName() );
        ref_list.addgetFilepath() );
        ref_list.addgetSizeDiffers() );
        ref_list.addgetModeDiffers() );
        ref_list.addgetMd5Differs() );
        ref_list.addgetDeviceDiffers() );
        ref_list.addgetLinkMismatch() );
        ref_list.addgetOwnershipDiffers() );
        ref_list.addgetGroupDiffers() );
        ref_list.addgetMtimeDiffers() );
        ref_list.addgetCapabilitiesDiffer() );
        ref_list.addgetConfigurationFile() );
        ref_list.addgetDocumentationFile() );
        ref_list.addgetGhostFile() );
        ref_list.addgetLicenseFile() );
        ref_list.addgetReadmeFile() );
        return ref_list;
    }
    //**************************************************************
    //  java.lang.Object
    //**************************************************************
    @Override
    public int hashCode()
    {
        return super.hashCode();
    }
    @Override
    public boolean equals(
                    final Object obj
                    )
    {
        if (!(obj instanceof RpmVerifyState)) {
            return false;
        }
        return super.equalsobj );
    }
    @Override
    public String toString()
    {
        return "rpmverify_state[" + super.toString()
                        + ", name="                 + getName()
                        + ", filepath="             + getFilepath()
                        + ", size_differs="         + getSizeDiffers()
                        + ", mode_differs="         + getModeDiffers()
                        + ", md5_differs="          + getMd5Differs()
                        + ", device_differs="       + getDeviceDiffers()
                        + ", link_mismatch="        + getLinkMismatch()
                        + ", ownership_differs="    + getOwnershipDiffers()
                        + ", group_differs="        + getGroupDiffers()
                        + ", mtime_differs="        + getMtimeDiffers()
                        + ", capabilities_differ="  + getCapabilitiesDiffer()
                        + ", configuration_file="   + getConfigurationFile()
                        + ", documentation_file="   + getDocumentationFile()
                        + ", ghost_file="           + getGhostFile()
                        + ", license_file="         + getLicenseFile()
                        + ", readme_file="          + getReadmeFile()
             + "]";
    }
//RpmVerifyState
New to GrepCode? Check out our FAQ X