org.virtualbox_4_2.IFsObjInfo Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of vboxjws Show documentation
Show all versions of vboxjws Show documentation
VirtualBox Client API 4.2.4
/*
* Copyright (C) 2010-2011 Oracle Corporation
*
* This file is part of the VirtualBox SDK, as available from
* http://www.virtualbox.org. This library is free software; you can
* redistribute it and/or modify it under the terms of the GNU Lesser General
* Public License as published by the Free Software Foundation, in version 2.1
* as it comes in the "COPYING.LIB" file of the VirtualBox SDK distribution.
* This library is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
* License for more details.
*
* IFsObjInfo.java
*
* DO NOT EDIT! This is a generated file.
* Generated from: src/VBox/Main/idl/VirtualBox.xidl (VirtualBox's interface definitions in XML)
* Generator: src/VBox/Main/glue/glue-java.xsl
*/
package org.virtualbox_4_2;
import org.virtualbox_4_2.jaxws.*;
import javax.xml.ws.*;
import java.util.List;
/**
Abstract parent interface for VirtualBox file system object information.
This can be information about a file or a directory, for example.
Interface ID: {4047BA30-7006-4966-AE86-94164E5E20EB}
*/
public class IFsObjInfo extends IUnknown {
public IFsObjInfo(String wrapped, VboxPortType port) {
super(wrapped, port);
}
/**
Time of last access (st_atime).
@return Long
*/
public Long getAccessTime() {
try {
Long retVal = port.iFsObjInfoGetAccessTime(obj);
return retVal;
} catch (InvalidObjectFaultMsg e) {
throw new VBoxException(e, e.getMessage());
} catch (RuntimeFaultMsg e) {
throw new VBoxException(e, e.getMessage());
}
}
/**
Disk allocation size (st_blocks * DEV_BSIZE).
@return Long
*/
public Long getAllocatedSize() {
try {
Long retVal = port.iFsObjInfoGetAllocatedSize(obj);
return retVal;
} catch (InvalidObjectFaultMsg e) {
throw new VBoxException(e, e.getMessage());
} catch (RuntimeFaultMsg e) {
throw new VBoxException(e, e.getMessage());
}
}
/**
Time of file birth (st_birthtime).
@return Long
*/
public Long getBirthTime() {
try {
Long retVal = port.iFsObjInfoGetBirthTime(obj);
return retVal;
} catch (InvalidObjectFaultMsg e) {
throw new VBoxException(e, e.getMessage());
} catch (RuntimeFaultMsg e) {
throw new VBoxException(e, e.getMessage());
}
}
/**
Time of last status change (st_ctime).
@return Long
*/
public Long getChangeTime() {
try {
Long retVal = port.iFsObjInfoGetChangeTime(obj);
return retVal;
} catch (InvalidObjectFaultMsg e) {
throw new VBoxException(e, e.getMessage());
} catch (RuntimeFaultMsg e) {
throw new VBoxException(e, e.getMessage());
}
}
/**
The device number of a character or block device type object (st_rdev).
@return Long
*/
public Long getDeviceNumber() {
try {
Long retVal = port.iFsObjInfoGetDeviceNumber(obj);
return retVal;
} catch (InvalidObjectFaultMsg e) {
throw new VBoxException(e, e.getMessage());
} catch (RuntimeFaultMsg e) {
throw new VBoxException(e, e.getMessage());
}
}
/**
File attributes. Not implemented yet.
@return String
*/
public String getFileAttributes() {
try {
String retVal = port.iFsObjInfoGetFileAttributes(obj);
return retVal;
} catch (InvalidObjectFaultMsg e) {
throw new VBoxException(e, e.getMessage());
} catch (RuntimeFaultMsg e) {
throw new VBoxException(e, e.getMessage());
}
}
/**
The current generation number (st_gen).
@return Long
*/
public Long getGenerationId() {
try {
Long retVal = port.iFsObjInfoGetGenerationId(obj);
return retVal;
} catch (InvalidObjectFaultMsg e) {
throw new VBoxException(e, e.getMessage());
} catch (RuntimeFaultMsg e) {
throw new VBoxException(e, e.getMessage());
}
}
/**
The group the filesystem object is assigned (st_gid).
@return Long
*/
public Long getGID() {
try {
Long retVal = port.iFsObjInfoGetGID(obj);
return retVal;
} catch (InvalidObjectFaultMsg e) {
throw new VBoxException(e, e.getMessage());
} catch (RuntimeFaultMsg e) {
throw new VBoxException(e, e.getMessage());
}
}
/**
The group name.
@return String
*/
public String getGroupName() {
try {
String retVal = port.iFsObjInfoGetGroupName(obj);
return retVal;
} catch (InvalidObjectFaultMsg e) {
throw new VBoxException(e, e.getMessage());
} catch (RuntimeFaultMsg e) {
throw new VBoxException(e, e.getMessage());
}
}
/**
Number of hard links to this filesystem object (st_nlink).
@return Long
*/
public Long getHardLinks() {
try {
Long retVal = port.iFsObjInfoGetHardLinks(obj);
return retVal;
} catch (InvalidObjectFaultMsg e) {
throw new VBoxException(e, e.getMessage());
} catch (RuntimeFaultMsg e) {
throw new VBoxException(e, e.getMessage());
}
}
/**
Time of last data modification (st_mtime).
@return Long
*/
public Long getModificationTime() {
try {
Long retVal = port.iFsObjInfoGetModificationTime(obj);
return retVal;
} catch (InvalidObjectFaultMsg e) {
throw new VBoxException(e, e.getMessage());
} catch (RuntimeFaultMsg e) {
throw new VBoxException(e, e.getMessage());
}
}
/**
The object's name.
@return String
*/
public String getName() {
try {
String retVal = port.iFsObjInfoGetName(obj);
return retVal;
} catch (InvalidObjectFaultMsg e) {
throw new VBoxException(e, e.getMessage());
} catch (RuntimeFaultMsg e) {
throw new VBoxException(e, e.getMessage());
}
}
/**
The unique identifier (within the filesystem) of this filesystem object (st_ino).
@return Long
*/
public Long getNodeId() {
try {
Long retVal = port.iFsObjInfoGetNodeId(obj);
return retVal;
} catch (InvalidObjectFaultMsg e) {
throw new VBoxException(e, e.getMessage());
} catch (RuntimeFaultMsg e) {
throw new VBoxException(e, e.getMessage());
}
}
/**
The device number of the device which this filesystem object resides on (st_dev).
@return Long
*/
public Long getNodeIdDevice() {
try {
Long retVal = port.iFsObjInfoGetNodeIdDevice(obj);
return retVal;
} catch (InvalidObjectFaultMsg e) {
throw new VBoxException(e, e.getMessage());
} catch (RuntimeFaultMsg e) {
throw new VBoxException(e, e.getMessage());
}
}
/**
The logical size (st_size). For normal files this is the size of the file.
For symbolic links, this is the length of the path name contained in the
symbolic link. For other objects this fields needs to be specified.
@return Long
*/
public Long getObjectSize() {
try {
Long retVal = port.iFsObjInfoGetObjectSize(obj);
return retVal;
} catch (InvalidObjectFaultMsg e) {
throw new VBoxException(e, e.getMessage());
} catch (RuntimeFaultMsg e) {
throw new VBoxException(e, e.getMessage());
}
}
/**
The object type. See {@link org.virtualbox_4_2.FsObjType} for more.
@return org.virtualbox_4_2.FsObjType
*/
public org.virtualbox_4_2.FsObjType getType() {
try {
org.virtualbox_4_2.jaxws.FsObjType retVal = port.iFsObjInfoGetType(obj);
return org.virtualbox_4_2.FsObjType.fromValue(retVal.value());
} catch (InvalidObjectFaultMsg e) {
throw new VBoxException(e, e.getMessage());
} catch (RuntimeFaultMsg e) {
throw new VBoxException(e, e.getMessage());
}
}
/**
The user owning the filesystem object (st_uid).
@return Long
*/
public Long getUID() {
try {
Long retVal = port.iFsObjInfoGetUID(obj);
return retVal;
} catch (InvalidObjectFaultMsg e) {
throw new VBoxException(e, e.getMessage());
} catch (RuntimeFaultMsg e) {
throw new VBoxException(e, e.getMessage());
}
}
/**
User flags (st_flags).
@return Long
*/
public Long getUserFlags() {
try {
Long retVal = port.iFsObjInfoGetUserFlags(obj);
return retVal;
} catch (InvalidObjectFaultMsg e) {
throw new VBoxException(e, e.getMessage());
} catch (RuntimeFaultMsg e) {
throw new VBoxException(e, e.getMessage());
}
}
/**
The user name.
@return String
*/
public String getUserName() {
try {
String retVal = port.iFsObjInfoGetUserName(obj);
return retVal;
} catch (InvalidObjectFaultMsg e) {
throw new VBoxException(e, e.getMessage());
} catch (RuntimeFaultMsg e) {
throw new VBoxException(e, e.getMessage());
}
}
public static IFsObjInfo queryInterface(IUnknown obj) {
return obj == null ? null : new IFsObjInfo(obj.getWrapped(), obj.getRemoteWSPort());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy