# Class: com.pnfsoftware.jeb.client.api.UnitFragmentPosition

Position in a unit fragment.

## Constructor: UnitFragmentPosition
- parameter: `unit`, type: `com.pnfsoftware.jeb.core.units.IUnit`
- parameter: `fragment`, type: `com.pnfsoftware.jeb.client.api.IUnitFragment`
- parameter: `doc`, type: `com.pnfsoftware.jeb.core.output.IGenericDocument`
- parameter: `address`, type: `java.lang.String`
- parameter: `item`, type: `com.pnfsoftware.jeb.core.output.IItem`

Description: Create a position descriptor.
parameter: unit: unit associated with the position
parameter: fragment: fragment associated with the position
parameter: doc: optional document rendered by the fragment
parameter: address: optional active unit address
parameter: item: optional active item

## Method: getAddress
- return type: `java.lang.String`

Description: Get the active address in the unit fragment.
return: optional active address in the unit fragment \(in which case the unit likely inherits         [IAddressableUnit](IAddressableUnit)\)

## Method: getDoc
- return type: `com.pnfsoftware.jeb.core.output.IGenericDocument`

Description: Get the document rendered by the fragment.
return: optional document \(some fragments render unit information directly, without making         use of documents\)

## Method: getFragment
- return type: `com.pnfsoftware.jeb.client.api.IUnitFragment`

Description: Get the UI fragment associated with this position.
return: non\-null UI fragment

## Method: getItem
- return type: `com.pnfsoftware.jeb.core.output.IItem`

Description: Get the active item in the unit fragment.
return: optional active item in the unit fragment \(in which case the unit likely inherits         [IAddressableUnit](IAddressableUnit)\)

## Method: getUnit
- return type: `com.pnfsoftware.jeb.core.units.IUnit`

Description: Get the unit associated with this position.
return: non\-null unit

## Method: toString
- return type: `java.lang.String`


