# Class: com.pnfsoftware.jeb.core.units.impl.AbstractCommentManager

An comment manager to be used by [IInteractiveUnit](IInteractiveUnit). It supports dual\-addressing: regular string address \(per the interactive unit specifications\), and custom address \(methods for custom addressing are suffixed by `2`\). The conversion methods are to be provided by the subclass. 

 Specialized subclasses exist.

## Constructor: AbstractCommentManager
- parameter: `unit`, type: `U`


## Static Field: COMMENT_FLAG_FAVORITE
Type: `int`

Constant value: `4096`

## Static Field: INLINE
Type: `int`

Constant value: `0`
Description: Constant used to identify an item's primary comment inlined with the item \(for rendering purposes\).

## Static Field: PRE
Type: `int`

Constant value: `-1`
Description: Constant used to identify an item's primary comment located above/before the item \(for rendering purposes\).

## Method: addMetaComment
- parameter: `address`, type: `java.lang.String`
- parameter: `str`, type: `java.lang.String`
- parameter: `notify`, type: `boolean`
- return type: `boolean`


## Method: addMetaComment
- parameter: `address`, type: `java.lang.String`
- parameter: `c`, type: `com.pnfsoftware.jeb.core.units.impl.MetaComment`
- parameter: `notify`, type: `boolean`
- return type: `boolean`


## Method: addMetaComment2
- parameter: `coord`, type: `C`
- parameter: `str`, type: `java.lang.String`
- parameter: `notify`, type: `boolean`
- return type: `boolean`


## Method: addMetaComment2
- parameter: `coord`, type: `C`
- parameter: `c`, type: `com.pnfsoftware.jeb.core.units.impl.MetaComment`
- parameter: `notify`, type: `boolean`
- return type: `boolean`


## Method: addressToCoord
- parameter: `address`, type: `java.lang.String`
- return type: `C`


## Method: coordToAddress
- parameter: `coord`, type: `C`
- return type: `java.lang.String`


## Method: formatComments
- parameter: `address`, type: `java.lang.String`
- parameter: `includePre`, type: `boolean`
- parameter: `flagsMustHave`, type: `int`
- parameter: `flagsCantHave`, type: `int`
- return type: `java.lang.String`


## Method: formatComments2
- parameter: `coord`, type: `C`
- parameter: `includePre`, type: `boolean`
- parameter: `flagsMustHave`, type: `int`
- parameter: `flagsCantHave`, type: `int`
- return type: `java.lang.String`


## Method: formatMetaComment
- parameter: `c`, type: `com.pnfsoftware.jeb.core.units.impl.MetaComment`
- return type: `java.lang.String`


## Method: formatMetaFlags
- parameter: `flags`, type: `int`
- return type: `java.lang.String`


## Method: getComment
- parameter: `address`, type: `java.lang.String`
- return type: `com.pnfsoftware.jeb.core.units.impl.Comment`


## Method: getComment2
- parameter: `coord`, type: `C`
- return type: `com.pnfsoftware.jeb.core.units.impl.Comment`


## Method: getComments
- return type: `java.util.Map<java.lang.String,com.pnfsoftware.jeb.core.units.impl.Comment>`


## Method: getComments2
- return type: `java.util.Map<C,com.pnfsoftware.jeb.core.units.impl.Comment>`


## Method: getInlineComment
- parameter: `address`, type: `java.lang.String`
- return type: `java.lang.String`


## Method: getInlineComment2
- parameter: `coord`, type: `C`
- return type: `java.lang.String`


## Method: getMetaCommentObjects
- parameter: `address`, type: `java.lang.String`
- parameter: `flagsMustHave`, type: `int`
- parameter: `flagsCantHave`, type: `int`
- return type: `java.util.Collection<java.lang.String>`


## Method: getMetaCommentObjects2
- parameter: `coord`, type: `C`
- parameter: `flagsMustHave`, type: `int`
- parameter: `flagsCantHave`, type: `int`
- return type: `java.util.Collection<java.lang.String>`


## Method: getMetaComments
- parameter: `address`, type: `java.lang.String`
- return type: `java.util.Collection<com.pnfsoftware.jeb.core.units.impl.MetaComment>`


## Method: getMetaComments
- parameter: `address`, type: `java.lang.String`
- parameter: `flagsMustHave`, type: `int`
- parameter: `flagsCantHave`, type: `int`
- return type: `java.util.Collection<com.pnfsoftware.jeb.core.units.impl.MetaComment>`


## Method: getMetaComments2
- parameter: `coord`, type: `C`
- return type: `java.util.Collection<com.pnfsoftware.jeb.core.units.impl.MetaComment>`


## Method: getMetaComments2
- parameter: `coord`, type: `C`
- parameter: `flagsMustHave`, type: `int`
- parameter: `flagsCantHave`, type: `int`
- return type: `java.util.Collection<com.pnfsoftware.jeb.core.units.impl.MetaComment>`


## Method: getPreComment
- parameter: `address`, type: `java.lang.String`
- return type: `java.lang.String`


## Method: getPreComment2
- parameter: `coord`, type: `C`
- return type: `java.lang.String`


## Method: getPrimary
- parameter: `address`, type: `java.lang.String`
- parameter: `position`, type: `int`
- return type: `java.lang.String`

Description: 
parameter: address: 
parameter: position: one of [#INLINE](#INLINE) or [#PRE](#PRE)
return: 

## Method: getPrimary2
- parameter: `coord`, type: `C`
- parameter: `position`, type: `int`
- return type: `java.lang.String`

Description: 
parameter: coord: 
parameter: position: one of [#INLINE](#INLINE) or [#PRE](#PRE)
return: 

## Method: getPrimaryMap
- parameter: `position`, type: `int`
- return type: `java.util.Map<java.lang.String,java.lang.String>`

Description: 
parameter: position: one of [#INLINE](#INLINE) or [#PRE](#PRE)
return: 

## Method: getPrimaryMap2
- parameter: `position`, type: `int`
- return type: `java.util.Map<C,java.lang.String>`

Description: 
parameter: position: one of [#INLINE](#INLINE) or [#PRE](#PRE)
return: 

## Method: getUnit
- return type: `U`


## Method: putAll
- parameter: `map`, type: `java.util.Map<C,com.pnfsoftware.jeb.core.units.impl.Comment>`


## Method: removeMetaComment
- parameter: `address`, type: `java.lang.String`
- parameter: `c`, type: `com.pnfsoftware.jeb.core.units.impl.MetaComment`
- parameter: `notify`, type: `boolean`
- return type: `boolean`


## Method: removeMetaComment2
- parameter: `coord`, type: `C`
- parameter: `c`, type: `com.pnfsoftware.jeb.core.units.impl.MetaComment`
- parameter: `notify`, type: `boolean`
- return type: `boolean`


## Method: setComment
- parameter: `address`, type: `java.lang.String`
- parameter: `comment`, type: `com.pnfsoftware.jeb.core.units.impl.Comment`
- parameter: `notify`, type: `boolean`
- return type: `boolean`


## Method: setComment2
- parameter: `coord`, type: `C`
- parameter: `comment`, type: `com.pnfsoftware.jeb.core.units.impl.Comment`
- parameter: `notify`, type: `boolean`
- return type: `boolean`


## Method: setInlineComment
- parameter: `address`, type: `java.lang.String`
- parameter: `value`, type: `java.lang.String`
- return type: `boolean`


## Method: setInlineComment
- parameter: `address`, type: `java.lang.String`
- parameter: `value`, type: `java.lang.String`
- parameter: `notify`, type: `boolean`
- return type: `boolean`


## Method: setInlineComment2
- parameter: `coord`, type: `C`
- parameter: `value`, type: `java.lang.String`
- return type: `boolean`


## Method: setInlineComment2
- parameter: `coord`, type: `C`
- parameter: `value`, type: `java.lang.String`
- parameter: `notify`, type: `boolean`
- return type: `boolean`


## Method: setPreComment
- parameter: `address`, type: `java.lang.String`
- parameter: `value`, type: `java.lang.String`
- return type: `boolean`


## Method: setPreComment
- parameter: `address`, type: `java.lang.String`
- parameter: `value`, type: `java.lang.String`
- parameter: `notify`, type: `boolean`
- return type: `boolean`


## Method: setPreComment2
- parameter: `coord`, type: `C`
- parameter: `value`, type: `java.lang.String`
- return type: `boolean`


## Method: setPreComment2
- parameter: `coord`, type: `C`
- parameter: `value`, type: `java.lang.String`
- parameter: `notify`, type: `boolean`
- return type: `boolean`


## Method: setPrimary
- parameter: `address`, type: `java.lang.String`
- parameter: `value`, type: `java.lang.String`
- parameter: `position`, type: `int`
- parameter: `notify`, type: `boolean`
- return type: `boolean`

Description: 
parameter: address: 
parameter: value: 
parameter: position: one of [#INLINE](#INLINE) or [#PRE](#PRE)
parameter: notify: 
return: 

## Method: setPrimary2
- parameter: `coord`, type: `C`
- parameter: `value`, type: `java.lang.String`
- parameter: `position`, type: `int`
- parameter: `notify`, type: `boolean`
- return type: `boolean`

Description: 
parameter: coord: 
parameter: value: 
parameter: position: one of [#INLINE](#INLINE) or [#PRE](#PRE)
parameter: notify: 
return: 

