Inherits from NSObject
Declared in GBCommentParagraph.h
GBCommentParagraph.m

Overview

Describes a paragraph for a GBComment.

A paragraph is simply an array of items. It can contain the following objects: GBParagraphTextItem, GBParagraphDecoratorItem, GBParagraphLinkItem, GBParagraphListItem, GBParagraphSpecialItem.

Tasks

Initialization & disposal

Paragraph values

  • – registerItem: Registers the given paragraph item by adding it to the end of items list.
  •   paragraphItems The list of all paragraph items in the order of registration. property

Input values

  •   stringValue Paragraph's raw string value as declared in source code. property

Properties

paragraphItems

The list of all paragraph items in the order of registration.

@property (readonly) NSArray *paragraphItems

Discussion

Each object is a subclass of GBParagraphItem.

Declared In

GBCommentParagraph.h

stringValue

Paragraph's raw string value as declared in source code.

@property (readonly) NSString *stringValue

Declared In

GBCommentParagraph.h

Class Methods

paragraph

Returns autoreleased paragraph instance.

+ (id)paragraph

Declared In

GBCommentParagraph.h

Instance Methods

registerItem:

Registers the given paragraph item by adding it to the end of items list.

- (void)registerItem:(GBParagraphItem *)item

Parameters

item
The item to register.

Exceptions

NSException
Thrown if nil is passed.

Declared In

GBCommentParagraph.h