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;
 

Deprecated:
Deprecated as of version 5.9: Replaced by the pwpolicy59 state and will be removed in a future version of the language.
Author(s):
Akihito Nakamura, AIST
Version:
$Id: PwPolicyState.java 3046 2013-02-21 09:33:57Z nakamura5akihito@gmail.com $
See also:
OVAL Language
 
 public class PwPolicyState
     extends StateType
 {
 
     //{0..1}
     private EntityStateStringType   username;
     private EntityStateStringType   userpass;
     private EntityStateStringType   directory_node;
     private EntityStateIntType      maxChars;
     private EntityStateIntType      maxFailedLoginAttempts;
     private EntityStateIntType      minChars;
     private EntityStateBoolType     passwordCannotBeName;
     private EntityStateBoolType     requiresAlpha;
     private EntityStateBoolType     requiresNumeric;



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



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



    
    public void setUserpass(
                    final EntityStateStringType userpass
                    )
    {
        this. = userpass;
    }
    {
        return ;
    }



    
    public void setDirectoryNode(
                    final EntityStateStringType directory_node
                    )
    {
        this. = directory_node;
    }
    {
        return ;
    }



    
    public void setMaxChars(
                    final EntityStateIntType maxChars
                    )
    {
        this. = maxChars;
    }
    {
        return ;
    }



    
    public void setMaxFailedLoginAttempts(
                    final EntityStateIntType maxFailedLoginAttempts
                    )
    {
        this. = maxFailedLoginAttempts;
    }
    {
        return ;
    }



    
    public void setMinChars(
                    final EntityStateIntType minChars
                    )
    {
        this. = minChars;
    }
    {
        return ;
    }



    
    public void setPasswordCannotBeName(
                    final EntityStateBoolType passwordCannotBeName
                    )
    {
        this. = passwordCannotBeName;
    }
    {
        return ;
    }



    
    public void setRequiresAlpha(
                    final EntityStateBoolType requiresAlpha
                    )
    {
        this. = requiresAlpha;
    }
    {
        return ;
    }



    
    public void setRequiresNumeric(
                    final EntityStateBoolType requiresNumeric
                    )
    {
        this. = requiresNumeric;
    }
    {
        return ;
    }
    //*********************************************************************
    //  DefinitionsElement
    //*********************************************************************
    @Override
    {
        Collection<ElementRef>  ref_list = new ArrayList<ElementRef>();
        ref_list.addgetUsername() );
        ref_list.addgetUserpass() );
        ref_list.addgetDirectoryNode() );
        ref_list.addgetMaxChars() );
        ref_list.addgetMaxFailedLoginAttempts() );
        ref_list.addgetMinChars() );
        ref_list.addgetPasswordCannotBeName() );
        ref_list.addgetRequiresAlpha() );
        ref_list.addgetRequiresNumeric() );
        return ref_list;
    }
    //**************************************************************
    //  java.lang.Object
    //**************************************************************
    @Override
    public int hashCode()
    {
        return super.hashCode();
    }
    @Override
    public boolean equals(
                    final Object obj
                    )
    {
        if (!(obj instanceof PwPolicyState)) {
            return false;
        }
        return super.equalsobj );
    }
    @Override
    public String toString()
    {
        return "pwpolicy_state[" + super.toString()
             + ", username="                + getUsername()
             + ", userpass="                + getUserpass()
             + ", directory_node="          + getDirectoryNode()
             + ", maxChars="                + getMaxChars()
             + ", maxFailedLoginAttempts="  + getMaxFailedLoginAttempts()
             + ", minChars="                + getMinChars()
             + ", passwordCannotBeName="    + getPasswordCannotBeName()
             + ", requiresAlpha="           + getRequiresAlpha()
             + ", requiresNumeric="         + getRequiresNumeric()
             + "]";
    }
//
New to GrepCode? Check out our FAQ X