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.independent;
 
The environmentvariable state contains three entities that are used to check the name of the specified environment variable, the process ID of the process from which the environment variable was retrieved, and the value associated with the environment variable.

Author(s):
Akihito Nakamura, AIST
Version:
$Id: EnvironmentVariable58State.java 3046 2013-02-21 09:33:57Z nakamura5akihito@gmail.com $
See also:
OVAL Language
 
     extends StateType
 {
 
     private EntityStateIntType  pid;
     //{0..1}
 
     private EntityStateStringType  name;
     //{0..1}
 
     private EntityStateAnySimpleType  value;
     //{0..1}
 


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



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



    
    public void setName(
                    final EntityStateStringType pattern
                    )
    {
         = pattern;
    }
    {
        return ;
    }



    
    public void setValue(
                    final EntityStateAnySimpleType value
                    )
    {
        this. = value;
    }
    {
        return ;
    }
    //*********************************************************************
    //  DefinitionsElement
    //*********************************************************************
    @Override
    {
        Collection<ElementRef>  ref_list = new ArrayList<ElementRef>();
        ref_list.addgetPid() );
        ref_list.addgetName() );
        ref_list.addgetValue() );
        return ref_list;
    }
    //**************************************************************
    //  java.lang.Object
    //**************************************************************
    @Override
    public int hashCode()
    {
        return super.hashCode();
    }
    @Override
    public boolean equals(
                    final Object obj
                    )
    {
        if (!(obj instanceof EnvironmentVariable58State)) {
            return false;
        }
        return super.equalsobj );
    }
    @Override
    public String toString()
    {
        return "environmentvariable58_state[" + super.toString()
                        + ", pid="       + getPid()
                        + ", name="      + getName()
                        + ", value="     + getValue()
                        + "]";
    }
// EnvironmentVariable58State
New to GrepCode? Check out our FAQ X