---
title: "HandleCodes"
url: "https://reference.aspose.com/cad/java/com.aspose.cad.fileformats.cad.dwg.acdbobjects/handlecodes/"
product: "Aspose.CAD for Java"
description: "Handles codes"
---


Handles codes

## Constructors

| Constructor | Description |
| --- | --- |
| [HandleCodes()](#HandleCodes) | Initializes a new instance of the HandleCodes class. |

## Fields

| Field | Description |
| --- | --- |
| [SOFT_OWNERSHIP_REFERENCE](#SOFT_OWNERSHIP_REFERENCE) | Soft ownership reference: the owner does not need the owned object. The owned object cannot exist by itself. Code - 2 |
| [HARD_OWNERSHIP_REFERENCE](#HARD_OWNERSHIP_REFERENCE) | Hard ownership reference: the owner needs the owned object. The owned object cannot exist by itself. Code - 3 |
| [SOFT_POINTER_REFERENCE](#SOFT_POINTER_REFERENCE) | Soft pointer reference: the referencing object does not need the referenced object and vice versa. Code - 4 |
| [HARD_POINTER_REFERENCE](#HARD_POINTER_REFERENCE) | Hard pointer reference: the referencing object needs the referenced object, but both are owned by another object. Code - 5 |
| [HANDLE_PLUS_ONE_REFERENCE](#HANDLE_PLUS_ONE_REFERENCE) | The handle plus one reference. Code - 6 |
| [HANDLE_MINUS_ONE_REFERENCE](#HANDLE_MINUS_ONE_REFERENCE) | The handle minus one reference. Code - 8 |
| [HANDLE_PLUS_OFFSET_REFERENCE](#HANDLE_PLUS_OFFSET_REFERENCE) | The handle plus offset reference. Code - 10 (0xA) |
| [HANDLE_MINUS_OFFSET_REFERENCE](#HANDLE_MINUS_OFFSET_REFERENCE) | The handle minus offset reference. Code - 12 (0xC) |

### HandleCodes() {#HandleCodes}
```java
public HandleCodes()
```

Initializes a new instance of the HandleCodes class.

### SOFT_OWNERSHIP_REFERENCE {#SOFT_OWNERSHIP_REFERENCE}
```java
public static int SOFT_OWNERSHIP_REFERENCE
```

Soft ownership reference: the owner does not need the owned object. The owned object cannot exist by itself. Code - 2

**Returns:** int

### HARD_OWNERSHIP_REFERENCE {#HARD_OWNERSHIP_REFERENCE}
```java
public static int HARD_OWNERSHIP_REFERENCE
```

Hard ownership reference: the owner needs the owned object. The owned object cannot exist by itself. Code - 3

**Returns:** int

### SOFT_POINTER_REFERENCE {#SOFT_POINTER_REFERENCE}
```java
public static int SOFT_POINTER_REFERENCE
```

Soft pointer reference: the referencing object does not need the referenced object and vice versa. Code - 4

**Returns:** int

### HARD_POINTER_REFERENCE {#HARD_POINTER_REFERENCE}
```java
public static int HARD_POINTER_REFERENCE
```

Hard pointer reference: the referencing object needs the referenced object, but both are owned by another object. Code - 5

**Returns:** int

### HANDLE_PLUS_ONE_REFERENCE {#HANDLE_PLUS_ONE_REFERENCE}
```java
public static int HANDLE_PLUS_ONE_REFERENCE
```

The handle plus one reference. Code - 6

**Returns:** int

### HANDLE_MINUS_ONE_REFERENCE {#HANDLE_MINUS_ONE_REFERENCE}
```java
public static int HANDLE_MINUS_ONE_REFERENCE
```

The handle minus one reference. Code - 8

**Returns:** int

### HANDLE_PLUS_OFFSET_REFERENCE {#HANDLE_PLUS_OFFSET_REFERENCE}
```java
public static int HANDLE_PLUS_OFFSET_REFERENCE
```

The handle plus offset reference. Code - 10 (0xA)

**Returns:** int

### HANDLE_MINUS_OFFSET_REFERENCE {#HANDLE_MINUS_OFFSET_REFERENCE}
```java
public static int HANDLE_MINUS_OFFSET_REFERENCE
```

The handle minus offset reference. Code - 12 (0xC)

**Returns:** int

