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 volume item enumerates various attributes about a particular volume mounted to a machine.

Author(s):
Akihito Nakamura, AIST
Version:
$Id: VolumeItem.java 3046 2013-02-21 09:33:57Z nakamura5akihito@gmail.com $
See also:
OVAL Language
 
 public class VolumeItem
     extends ItemType
 {
 
     //{0..1}
     private EntityItemStringType       rootpath;
     private EntityItemStringType       file_system;
     private EntityItemStringType       name;
     private EntityItemDriveTypeType    drive_type;
     private EntityItemIntType          volume_max_component_length;
     private EntityItemIntType          serial_number;
     private EntityItemBoolType         file_case_sensitive_search;
     private EntityItemBoolType         file_case_preserved_names;
     private EntityItemBoolType         file_unicode_on_disk;
     private EntityItemBoolType         file_persistent_acls;
     private EntityItemBoolType         file_file_compression;
     private EntityItemBoolType         file_volume_quotas;
     private EntityItemBoolType         file_supports_sparse_files;
     private EntityItemBoolType         file_supports_reparse_points;
     private EntityItemBoolType         file_supports_remote_storage;
     private EntityItemBoolType         file_volume_is_compressed;
     private EntityItemBoolType         file_supports_object_ids;
     private EntityItemBoolType         file_supports_encryption;
     private EntityItemBoolType         file_named_streams;
     private EntityItemBoolType         file_read_only_volume;



    
Constructor.
 
     public VolumeItem()
     {
         this( 0 );
     }
 
 
     public VolumeItem(
                     final int id
                     )
     {
         thisidnull );
     }
 
 
     public VolumeItem(
                     final int id,
                     final StatusEnumeration status
                     )
     {
         superidstatus );
 
 //        _oval_platform_type = OvalPlatformType.windows;
 //        _oval_component_type = OvalComponentType.volume;
          = .;
          = .;
     }



    
    public void setRootpath(
                    final EntityItemStringType rootpath
                    )
    {
        this. = rootpath;
    }
    {
        return ;
    }



    
    public void setFileSystem(
                    final EntityItemStringType file_system
                    )
    {
        this. = file_system;
    }
    {
        return ;
    }



    
    public void setName(
                    final EntityItemStringType name
                    )
    {
        this. = name;
    }
    public EntityItemStringType getName()
    {
        return ;
    }



    
    public void setDriveType(
                    final EntityItemDriveTypeType drive_type
                    )
    {
        this. = drive_type;
    }
    {
        return ;
    }



    
    public void setVolumeMaxComponentLength(
                    final EntityItemIntType volume_max_component_length
                    )
    {
        this. = volume_max_component_length;
    }
    {
        return ;
    }



    
    public void setSerialNumber(
                    final EntityItemIntType serial_number
                    )
    {
        this. = serial_number;
    }
    {
        return ;
    }



    
    public void setFileCaseSensitiveSearch(
                    final EntityItemBoolType file_case_sensitive_search
                    )
    {
        this. = file_case_sensitive_search;
    }
    {
        return ;
    }



    
    public void setFileCasePreservedNames(
                    final EntityItemBoolType file_case_preserved_names
                    )
    {
        this. = file_case_preserved_names;
    }
    {
        return ;
    }



    
    public void setFileUnicodeOnDisk(
                    final EntityItemBoolType file_unicode_on_disk
                    )
    {
        this. = file_unicode_on_disk;
    }
    {
        return ;
    }



    
    public void setFilePersistentAcls(
                    final EntityItemBoolType file_persistent_acls
                    )
    {
        this. = file_persistent_acls;
    }
    {
        return ;
    }



    
    public void setFileFileCompression(
                    final EntityItemBoolType file_file_compression
                    )
    {
        this. = file_file_compression;
    }
    {
        return ;
    }



    
    public void setFileVolumeQuotas(
                    final EntityItemBoolType file_volume_quotas
                    )
    {
        this. = file_volume_quotas;
    }
    {
        return ;
    }



    
    public void setFileSupportsSparseFiles(
                    final EntityItemBoolType file_supports_sparse_files
                    )
    {
        this. = file_supports_sparse_files;
    }
    {
        return ;
    }



    
    public void setFileSupportsReparsePoints(
                    final EntityItemBoolType file_supports_reparse_points
                    )
    {
        this. = file_supports_reparse_points;
    }
    {
        return ;
    }



    
    public void setFileSupportsRemoteStorage(
                    final EntityItemBoolType file_supports_remote_storage
                    )
    {
        this. = file_supports_remote_storage;
    }
    {
        return ;
    }



    
    public void setFileVolumeIsCompressed(
                    final EntityItemBoolType file_volume_is_compressed
                    )
    {
        this. = file_volume_is_compressed;
    }
    {
        return ;
    }



    
    public void setFileSupportsObjectIds(
                    final EntityItemBoolType file_supports_object_ids
                    )
    {
        this. = file_supports_object_ids;
    }
    {
        return ;
    }



    
    public void setFileSupportsEncryption(
                    final EntityItemBoolType file_supports_encryption
                    )
    {
        this. = file_supports_encryption;
    }
    {
        return ;
    }



    
    public void setFileNamedStreams(
                    final EntityItemBoolType file_named_streams
                    )
    {
        this. = file_named_streams;
    }
    {
        return ;
    }



    
    public void setFileReadOnlyVolume(
                    final EntityItemBoolType file_read_only_volume
                    )
    {
        this. = file_read_only_volume;
    }
    {
        return ;
    }
    //**************************************************************
    //  java.lang.Object
    //**************************************************************
    @Override
    public int hashCode()
    {
        return super.hashCode();
    }
    @Override
    public boolean equals(
                    final Object obj
                    )
    {
        if (!(obj instanceof VolumeItem)) {
            return false;
        }
        return super.equalsobj );
    }
    @Override
    public String toString()
    {
        return "volume_item[" + super.toString()
                        + ", rootpath="                        + getRootpath()
                        + ", file_system="                     + getFileSystem()
                        + ", name="                            + getName()
                        + ", drive_type="                      + getDriveType()
                        + ", volume_max_component_length="     + getVolumeMaxComponentLength()
                        + ", serial_number="                   + getSerialNumber()
                        + ", file_case_sensitive_search="      + getFileCaseSensitiveSearch()
                        + ", file_case_preserved_names="       + getFileCasePreservedNames()
                        + ", file_unicode_on_disk="            + getFileUnicodeOnDisk()
                        + ", file_persistent_acls="            + getFilePersistentAcls()
                        + ", file_file_compression="           + getFileFileCompression()
                        + ", file_volume_quotas="              + getFileVolumeQuotas()
                        + ", file_supports_sparse_files="      + getFileSupportsSparseFiles()
                        + ", file_supports_reparse_points="    + getFileSupportsReparsePoints()
                        + ", file_supports_remote_storage="    + getFileSupportsRemoteStorage()
                        + ", file_volume_is_compressed="       + getFileVolumeIsCompressed()
                        + ", file_supports_object_ids="        + getFileSupportsObjectIds()
                        + ", file_supports_encryption="        + getFileSupportsEncryption()
                        + ", file_named_streams="              + getFileNamedStreams()
                        + ", file_read_only_volume="           + getFileReadOnlyVolume()
             + "]";
    }
//VolumeItem
New to GrepCode? Check out our FAQ X