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.macos;
 
The accountinfo state defines the different information that can be used to evaluate the specified accounts.

Author(s):
Akihito Nakamura, AIST
Version:
$Id: AccountInfoState.java 3046 2013-02-21 09:33:57Z nakamura5akihito@gmail.com $
See also:
OVAL Language
 
 public class AccountInfoState
     extends StateType
 {
 
     //{0..1}
     private EntityStateStringType   username;
     private EntityStateStringType   password;
     private EntityStateIntType      uid;
     private EntityStateIntType      gid;
     private EntityStateStringType   realname;
     private EntityStateStringType   home_dir;
     private EntityStateStringType   login_shell;




    
Constructor.
 
     public AccountInfoState()
     {
         thisnull, 0 );
     }
 
 
     public AccountInfoState(
                     final String id,
                     final int version
                     )
     {
         thisidversionnull );
     }
 
 
     public AccountInfoState(
                     final String id,
                     final int version,
                     final String comment
                     )
     {
         superidversioncomment );
 
          = .;
     }



    
 
     public void setUsername(
                     final EntityStateStringType username
                     )
     {
         this. = username;
     }
 
 
     {
        return ;
    }



    
    public void setPassword(
                    final EntityStateStringType password
                    )
    {
        this. = password;
    }
    {
        return ;
    }



    
    public void setUid(
                    final EntityStateIntType uid
                    )
    {
        this. = uid;
    }
    public EntityStateIntType getUid()
    {
        return ;
    }



    
    public void setGid(
                    final EntityStateIntType gid
                    )
    {
        this. = gid;
    }
    public EntityStateIntType getGid()
    {
        return ;
    }



    
    public void setRealname(
                    final EntityStateStringType realname
                    )
    {
        this. = realname;
    }
    {
        return ;
    }



    
    public void setHomeDir(
                    final EntityStateStringType home_dir
                    )
    {
        this. = home_dir;
    }
    {
        return ;
    }



    
    public void setLoginShell(
                    final EntityStateStringType login_shell
                    )
    {
        this. = login_shell;
    }
    {
        return ;
    }
    //*********************************************************************
    //  DefinitionsElement
    //*********************************************************************
    @Override
    {
        Collection<ElementRef>  ref_list = new ArrayList<ElementRef>();
        ref_list.addgetUsername() );
        ref_list.addgetPassword() );
        ref_list.addgetUid() );
        ref_list.addgetGid() );
        ref_list.addgetRealname() );
        ref_list.addgetHomeDir() );
        ref_list.addgetLoginShell() );
        return ref_list;
    }
    //**************************************************************
    //  java.lang.Object
    //**************************************************************
    @Override
    public int hashCode()
    {
        return super.hashCode();
    }
    @Override
    public boolean equals(
                    final Object obj
                    )
    {
        if (!(obj instanceof AccountInfoState)) {
            return false;
        }
        return super.equalsobj );
    }
    @Override
    public String toString()
    {
        return "password_state[" + super.toString()
             + ", username="    + getUsername()
             + ", password="    + getPassword()
             + ", uid="         + getUid()
             + ", gid="         + getGid()
             + ", realname="    + getRealname()
             + ", home_dir="    + getHomeDir()
             + ", login_shell=" + getLoginShell()
             + "]";
    }
//
New to GrepCode? Check out our FAQ X