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 sharedresourceeffectiverights_state defines the different rights that can be associated with a given sharedresourceeffectiverights_object.

Author(s):
Akihito Nakamura, AIST
Version:
$Id: SharedResourceEffectiveRightsState.java 3046 2013-02-21 09:33:57Z nakamura5akihito@gmail.com $
See also:
OVAL Language
 
     extends StateType
 {
 
     //{0..1}
     private EntityStateStringType   netname;
     private EntityStateStringType   trustee_sid;
     private EntityStateBoolType     standard_delete;
     private EntityStateBoolType     standard_read_control;
     private EntityStateBoolType     standard_write_dac;
     private EntityStateBoolType     standard_write_owner;
     private EntityStateBoolType     standard_syncronize;
     private EntityStateBoolType     access_system_security;
     private EntityStateBoolType     generic_read;
     private EntityStateBoolType     generic_write;
     private EntityStateBoolType     generic_execute;
     private EntityStateBoolType     generic_all;



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



    
 
     public void setNetname(
                     final EntityStateStringType netname
                     )
     {
         this. = netname;
     }
    {
        return ;
    }



    
    public void setTrusteeSid(
                    final EntityStateStringType trustee_sid
                    )
    {
        this. = trustee_sid;
    }
    {
        return ;
    }



    
    public void setStandardDelete(
                    final EntityStateBoolType standard_delete
                    )
    {
        this. = standard_delete;
    }
    {
        return ;
    }



    
    public void setStandardReadControl(
                    final EntityStateBoolType standard_read_control
                    )
    {
        this. = standard_read_control;
    }
    {
        return ;
    }



    
    public void setStandardWriteDac(
                    final EntityStateBoolType standard_write_dac
                    )
    {
        this. = standard_write_dac;
    }
    {
        return ;
    }



    
    public void setStandardWriteOwner(
                    final EntityStateBoolType standard_write_owner
                    )
    {
        this. = standard_write_owner;
    }
    {
        return ;
    }



    
    public void setStandardSyncronize(
                    final EntityStateBoolType standard_syncronize
                    )
    {
        this. = standard_syncronize;
    }
    {
        return ;
    }



    
    public void setAccessSystemSecurity(
                    final EntityStateBoolType access_system_security
                    )
    {
        this. = access_system_security;
    }
    {
        return ;
    }



    
    public void setGenericRead(
                    final EntityStateBoolType generic_read
                    )
    {
        this. = generic_read;
    }
    {
        return ;
    }



    
    public void setGenericWrite(
                    final EntityStateBoolType generic_write
                    )
    {
        this. = generic_write;
    }
    {
        return ;
    }



    
    public void setGenericExecute(
                    final EntityStateBoolType generic_execute
                    )
    {
        this. = generic_execute;
    }
    {
        return ;
    }



    
    public void setGenericAll(
                    final EntityStateBoolType generic_all
                    )
    {
        this. = generic_all;
    }
    {
        return ;
    }
    //*********************************************************************
    //  DefinitionsElement
    //*********************************************************************
    @Override
    {
        Collection<ElementRef>  ref_list = new ArrayList<ElementRef>();
        ref_list.addgetNetname() );
        ref_list.addgetTrusteeSid() );
        ref_list.addgetStandardDelete() );
        ref_list.addgetStandardReadControl() );
        ref_list.addgetStandardWriteDac() );
        ref_list.addgetStandardWriteOwner() );
        ref_list.addgetStandardSyncronize() );
        ref_list.addgetAccessSystemSecurity() );
        ref_list.addgetGenericRead() );
        ref_list.addgetGenericWrite() );
        ref_list.addgetGenericExecute() );
        ref_list.addgetGenericAll() );
        return ref_list;
    }
    //**************************************************************
    //  java.lang.Object
    //**************************************************************
    @Override
    public int hashCode()
    {
        return super.hashCode();
    }
    @Override
    public boolean equals(
                    final Object obj
                    )
    {
        if (!(obj instanceof SharedResourceEffectiveRightsState)) {
            return false;
        }
        return super.equalsobj );
    }
    @Override
    public String toString()
    {
        return "fileeffectiverights53_state[" + super.toString()
             + ", netname="                 + getNetname()
             + ", trustee_sid="             + getTrusteeSid()
             + ", standard_delete="         + getStandardDelete()
             + ", standard_read_control="   + getStandardReadControl()
             + ", standard_write_dac="      + getStandardWriteDac()
             + ", standard_write_owner="    + getStandardWriteOwner()
             + ", standard_syncronize="     + getStandardSyncronize()
             + ", access_system_security="  + getAccessSystemSecurity()
             + ", generic_read="            + getGenericRead()
             + ", generic_write="           + getGenericWrite()
             + ", generic_execute="         + getGenericExecute()
             + ", generic_all="             + getGenericAll()
             + "]";
    }
//
New to GrepCode? Check out our FAQ X