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.linux;
 
The partition item stores information about a partition on the local system.

Author(s):
Akihito Nakamura, AIST
Version:
$Id: PartitionItem.java 3046 2013-02-21 09:33:57Z nakamura5akihito@gmail.com $
See also:
OVAL Language
 
 public class PartitionItem
     extends ItemType
 {
 
     //{0..1}
     private EntityItemStringType   mount_point;
     private EntityItemStringType   device;
     private EntityItemStringType   uuid;
     private EntityItemStringType   fs_type;
     private EntityItemStringType   mount_options;
     private EntityItemIntType      total_space;
     private EntityItemIntType      space_used;
     private EntityItemIntType      space_left;



    
Constructor.
 
     public PartitionItem()
     {
         this( 0 );
     }
 
 
     public PartitionItem(
                     final int id
                     )
     {
         superid );
 
 //        _oval_platform_type = OvalPlatformType.linux;
 //        _oval_component_type = OvalComponentType.partition;
          = .;
     }



    
 
     public void setMountPoint(
                     final EntityItemStringType mount_point
                     )
     {
         this. = mount_point;
     }
 
 
     {
         return ;
     }



    
 
     public void setDevice(
                     final EntityItemStringType device
                     )
     {
         this. = device;
     }
    {
        return ;
    }



    
    public void setUuid(
                    final EntityItemStringType uuid
                    )
    {
        this. = uuid;
    }
    public EntityItemStringType getUuid()
    {
        return ;
    }



    
    public void setFsType(
                    final EntityItemStringType fs_type
                    )
    {
        this. = fs_type;
    }
    {
        return ;
    }



    
    public void setMountOptions(
                    final EntityItemStringType mount_options
                    )
    {
        this. = mount_options;
    }
    {
        return ;
    }



    
    public void setTotalSpace(
                    final EntityItemIntType total_space
                    )
    {
        this. = total_space;
    }
    {
        return ;
    }



    
    public void setSpaceUsed(
                    final EntityItemIntType space_used
                    )
    {
        this. = space_used;
    }
    {
        return ;
    }



    
    public void setSpaceLeft(
                    final EntityItemIntType space_left
                    )
    {
        this. = space_left;
    }
    {
        return ;
    }
    //**************************************************************
    //  java.lang.Object
    //**************************************************************
    @Override
    public String toString()
    {
        return "partition_item[" + super.toString()
                        + ", mount_point="      + getMountPoint()
                        + ", device="           + getDevice()
                        + ", uuid="             + getUuid()
                        + ", fs_type="          + getFsType()
                        + ", mount_options="    + getMountOptions()
                        + ", total_space="      + getTotalSpace()
                        + ", space_used="       + getSpaceUsed()
                        + ", space_left="       + getSpaceLeft()
             + "]";
    }
//partitionItem
New to GrepCode? Check out our FAQ X