# com.bea.content.virtual
VirtualNode Class

public class VirtualNode
extends `Object`
implements `Serializable`

A Virtual Node represents an element in a virtual hieararchy.

Hierarchy
  `Object`
  `VirtualNode`

All Implemented Interfaces
  `Serializable`

## Field Summary

`protected `String`` | `assignedToRoles` String
`protected `String`` | `assignedToUser` String
`protected `Version`` | `currentVersion` Version
`protected `ID`` | `id` ID
`protected boolean` | `isLocked` boolean
`protected `String`` | `name` String
`protected `String`` | `objectClassId` String

## Constructor Summary

VirtualNode()

## Method Summary

`public `String`[]` | `getAssignedToRoles`() Gets the role the Node is assigned to.
`public `String`` | `getAssignedToUser`()
`public `Version`` | `getCurrentVersion`() Gets the latest version, if the user requesting the operation has a working version of the Node then that will be returned.
`public `ID`` | `getId`() Gets the id, including the repository name and uid.
`public `String`` | `getName`()
`public `String`` | `getObjectClassId`()
`public boolean` | `isLocked`() Gets the user id who has the lock.
`public void` | `setObjectClassId`(`String` objectClassId)
`public `String`` | `toString`() Returns the attributes of this Node in a String.

Methods from class `java.lang.`Object``
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

## Field Detail

### assignedToRoles

    protected String assignedToRoles

### assignedToUser

    protected String assignedToUser

### currentVersion

    protected Version currentVersion

### id

    protected ID id

### isLocked

    protected boolean isLocked

### name

    protected String name

### objectClassId

    protected String objectClassId

## Constructor Detail

### VirtualNode

    public VirtualNode()

## Method Detail

### getAssignedToRoles() Method

    public String[] getAssignedToRoles()

Gets the role the Node is assigned to.

### getAssignedToUser() Method

    public String getAssignedToUser()

### getCurrentVersion() Method

    public Version getCurrentVersion()

Gets the latest version, if the user requesting the operation has a working version of the Node then that will be returned.

### getId() Method

    public ID getId()

Gets the id, including the repository name and uid.

### getName() Method

    public String getName()

### getObjectClassId() Method

    public String getObjectClassId()

### isLocked() Method

    public boolean isLocked()

Gets the user id who has the lock. Returns null if the Node is not locked.

### setObjectClassId(String) Method

    public void setObjectClassId(String objectClassId)

### toString() Method

    public String toString()

Returns the attributes of this Node in a String.

Overrides
  `Object.toString()`