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.windows;
 
The process state defines the different metadata associate with a Windows process.

Deprecated:
Deprecated as of version 5.8: Replaced by the process58 object and will be removed in a future version of the language.
Author(s):
Akihito Nakamura, AIST
Version:
$Id: ProcessState.java 3046 2013-02-21 09:33:57Z nakamura5akihito@gmail.com $
See also:
OVAL Language
 
 public class ProcessState
     extends StateType
 {
 
     //{0..1}
     private EntityStateStringType   command_line;
     private EntityStateIntType      pid;
     private EntityStateIntType      ppid;
     private EntityStateStringType   priority;
     private EntityStateStringType   image_path;
     private EntityStateStringType   current_dir;



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



    
 
     public void setCommandLine(
                     final EntityStateStringType command_line
                     )
     {
         this. = command_line;
     }
    {
        return ;
    }



    
    public void setPid(
                    final EntityStateIntType pid
                    )
    {
        this. = pid;
    }
    public EntityStateIntType getPid()
    {
        return ;
    }



    
    public void setPpid(
                    final EntityStateIntType ppid
                    )
    {
        this. = ppid;
    }
    public EntityStateIntType getPpid()
    {
        return ;
    }



    
    public void setPriority(
                    final EntityStateStringType priority
                    )
    {
        this. = priority;
    }
    {
        return ;
    }



    
    public void setImagePath(
                    final EntityStateStringType image_path
                    )
    {
        this. = image_path;
    }
    {
        return ;
    }



    
    public void setCurrentDir(
                    final EntityStateStringType current_dir
                    )
    {
        this. = current_dir;
    }
    {
        return ;
    }
    //*********************************************************************
    //  DefinitionsElement
    //*********************************************************************
    @Override
    {
        Collection<ElementRef>  ref_list = new ArrayList<ElementRef>();
        ref_list.addgetCommandLine() );
        ref_list.addgetPid() );
        ref_list.addgetPpid() );
        ref_list.addgetPriority() );
        ref_list.addgetImagePath() );
        ref_list.addgetCurrentDir() );
        return ref_list;
    }
    //**************************************************************
    //  java.lang.Object
    //**************************************************************
    @Override
    public int hashCode()
    {
        return super.hashCode();
    }
    @Override
    public boolean equals(
                    final Object obj
                    )
    {
        if (!(obj instanceof ProcessState)) {
            return false;
        }
        return super.equalsobj );
    }
    @Override
    public String toString()
    {
        return "process_state[" + super.toString()
             + ", command_line="        + getCommandLine()
             + ", pid="                 + getPid()
             + ", ppid="                + getPpid()
             + ", priority="            + getPriority()
             + ", image_path="          + getImagePath()
             + ", current_dir="         + getCurrentDir()
             + "]";
    }
//ProcessState
New to GrepCode? Check out our FAQ X