
**Inheritance:**
java.lang.Object
```
public class OleObject
```

Represents an OLE object which can be inserter into Gantt Chart View of an MPP file.
## Constructors

| Constructor | Description |
| --- | --- |
| [OleObject()](#OleObject--) | Initializes a new instance of the [OleObject](../../com.aspose.tasks/oleobject) class. |
## Methods

| Method | Description |
| --- | --- |
| [getApplicationName()](#getApplicationName--) | Gets the application name to open the embedded object with. |
| [getContent()](#getContent--) | Gets the embedded file's data; null if no data was embedded. |
| [getDisplayAsIcon()](#getDisplayAsIcon--) | Gets a flag indicating that OLE object should be shown either as an icon or as its regular picture. |
| [getFileFormat()](#getFileFormat--) | Gets the file format of the embedded object. |
| [getFullPath()](#getFullPath--) | Gets the full path of the inserted object. |
| [getId()](#getId--) | Gets the object id. |
| [getLabel()](#getLabel--) | Gets the label of the inserted object. |
| [getLinked()](#getLinked--) | Gets a value indicating whether the project file contains only a link to the actual data stored at the link source. |
| [getName()](#getName--) | Gets the name of the instance of the OLE object. |
| [getTemporaryFile()](#getTemporaryFile--) | Gets the path to the temporary file of the inserted object. |
| [getView()](#getView--) | Gets the instance of the `View`([getView()](../../com.aspose.tasks/oleobject\#getView--)/[setView(View)](../../com.aspose.tasks/oleobject\#setView-View-)) class the inserted object belongs to. |
| [setApplicationName(String value)](#setApplicationName-java.lang.String-) | Sets the application name to open the embedded object with. |
| [setContent(byte[] value)](#setContent-byte---) | Sets the embedded file's data; null if no data was embedded. |
| [setDisplayAsIcon(boolean value)](#setDisplayAsIcon-boolean-) | Sets a flag indicating that OLE object should be shown either as an icon or as its regular picture. |
| [setFileFormat(String value)](#setFileFormat-java.lang.String-) | Sets the file format of the embedded object. |
| [setFullPath(String value)](#setFullPath-java.lang.String-) | Sets the full path of the inserted object. |
| [setId(int value)](#setId-int-) | Sets the object id. |
| [setLabel(String value)](#setLabel-java.lang.String-) | Sets the label of the inserted object. |
| [setName(String value)](#setName-java.lang.String-) | Sets the name of the instance of the OLE object. |
| [setTemporaryFile(String value)](#setTemporaryFile-java.lang.String-) | Sets the path to the temporary file of the inserted object. |
| [setView(View value)](#setView-com.aspose.tasks.View-) | Sets the instance of the `View`([getView()](../../com.aspose.tasks/oleobject\#getView--)/[setView(View)](../../com.aspose.tasks/oleobject\#setView-View-)) class the inserted object belongs to. |
### OleObject() {#OleObject--}
```
public OleObject()
```


Initializes a new instance of the [OleObject](../../com.aspose.tasks/oleobject) class.

### getApplicationName() {#getApplicationName--}
```
public final String getApplicationName()
```


Gets the application name to open the embedded object with.

**Returns:**
java.lang.String - the application name to open the embedded object with.
### getContent() {#getContent--}
```
public final byte[] getContent()
```


Gets the embedded file's data; null if no data was embedded.

**Returns:**
byte[] - the embedded file's data; null if no data was embedded.
### getDisplayAsIcon() {#getDisplayAsIcon--}
```
public final boolean getDisplayAsIcon()
```


Gets a flag indicating that OLE object should be shown either as an icon or as its regular picture.

**Returns:**
boolean - a flag indicating that OLE object should be shown either as an icon or as its regular picture.
### getFileFormat() {#getFileFormat--}
```
public final String getFileFormat()
```


Gets the file format of the embedded object.

**Returns:**
java.lang.String - the file format of the embedded object.
### getFullPath() {#getFullPath--}
```
public final String getFullPath()
```


Gets the full path of the inserted object.

**Returns:**
java.lang.String - the full path of the inserted object.
### getId() {#getId--}
```
public final int getId()
```


Gets the object id.

**Returns:**
int - the object id.
### getLabel() {#getLabel--}
```
public final String getLabel()
```


Gets the label of the inserted object.

**Returns:**
java.lang.String - the label of the inserted object.
### getLinked() {#getLinked--}
```
public final boolean getLinked()
```


Gets a value indicating whether the project file contains only a link to the actual data stored at the link source.

**Returns:**
boolean - a value indicating whether the project file contains only a link to the actual data stored at the link source.
### getName() {#getName--}
```
public final String getName()
```


Gets the name of the instance of the OLE object.

**Returns:**
java.lang.String - the name of the instance of the OLE object.
### getTemporaryFile() {#getTemporaryFile--}
```
public final String getTemporaryFile()
```


Gets the path to the temporary file of the inserted object.

**Returns:**
java.lang.String - the path to the temporary file of the inserted object.
### getView() {#getView--}
```
public final View getView()
```


Gets the instance of the `View`([getView()](../../com.aspose.tasks/oleobject\#getView--)/[setView(View)](../../com.aspose.tasks/oleobject\#setView-View-)) class the inserted object belongs to.

**Returns:**
[View](../../com.aspose.tasks/view) - the instance of the `View`([getView()](../../com.aspose.tasks/oleobject\#getView--)/[setView(View)](../../com.aspose.tasks/oleobject\#setView-View-)) class the inserted object belongs to.
### setApplicationName(String value) {#setApplicationName-java.lang.String-}
```
public final void setApplicationName(String value)
```


Sets the application name to open the embedded object with.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | java.lang.String | the application name to open the embedded object with. |

### setContent(byte[] value) {#setContent-byte---}
```
public final void setContent(byte[] value)
```


Sets the embedded file's data; null if no data was embedded.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | byte[] | the embedded file's data; null if no data was embedded. |

### setDisplayAsIcon(boolean value) {#setDisplayAsIcon-boolean-}
```
public final void setDisplayAsIcon(boolean value)
```


Sets a flag indicating that OLE object should be shown either as an icon or as its regular picture.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | boolean | a flag indicating that OLE object should be shown either as an icon or as its regular picture. |

### setFileFormat(String value) {#setFileFormat-java.lang.String-}
```
public final void setFileFormat(String value)
```


Sets the file format of the embedded object.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | java.lang.String | the file format of the embedded object. |

### setFullPath(String value) {#setFullPath-java.lang.String-}
```
public final void setFullPath(String value)
```


Sets the full path of the inserted object.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | java.lang.String | the full path of the inserted object. |

### setId(int value) {#setId-int-}
```
public final void setId(int value)
```


Sets the object id.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | int | the object id. |

### setLabel(String value) {#setLabel-java.lang.String-}
```
public final void setLabel(String value)
```


Sets the label of the inserted object.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | java.lang.String | the label of the inserted object. |

### setName(String value) {#setName-java.lang.String-}
```
public final void setName(String value)
```


Sets the name of the instance of the OLE object.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | java.lang.String | the name of the instance of the OLE object. |

### setTemporaryFile(String value) {#setTemporaryFile-java.lang.String-}
```
public final void setTemporaryFile(String value)
```


Sets the path to the temporary file of the inserted object.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | java.lang.String | the path to the temporary file of the inserted object. |

### setView(View value) {#setView-com.aspose.tasks.View-}
```
public final void setView(View value)
```


Sets the instance of the `View`([getView()](../../com.aspose.tasks/oleobject\#getView--)/[setView(View)](../../com.aspose.tasks/oleobject\#setView-View-)) class the inserted object belongs to.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | [View](../../com.aspose.tasks/view) | the instance of the `View`([getView()](../../com.aspose.tasks/oleobject\#getView--)/[setView(View)](../../com.aspose.tasks/oleobject\#setView-View-)) class the inserted object belongs to. |

