GBParagraphListItem Class Reference
Inherits from | GBParagraphItem : NSObject |
Declared in | GBParagraphListItem.h GBParagraphListItem.m |
Overview
Handles ordered and unordered lists for a GBCommentParagraph
.
Lists are containers for list items which are instances of GBCommentParagraph
. This allows us to form a tree structure with nested lists and other paragraph items. Lists can be ordered or unordered, the type can be determined by testing the value of isOrdered
property.
Tasks
Initialization & disposal
-
+ orderedParagraphListItem
Returns new autoreleased list item withordered
set toYES
. -
+ unorderedParagraphListItem
Returns new autoreleased list item withordered
set toNO
.
Values
-
– registerItem:
Registers the given item by adding it to the end ofitems
array. -
isOrdered
Specifies whether the list is ordered (YES
) or unordered (NO
). property -
listItems
Array of all list items as instances ofGBCommentParagraph
in the same order as in comment text. property
Other Methods
-
– isOrderedListItem
ReturnsYES
if this is ordered list item. This is only used to simplify output generation! -
– isUnorderedListItem
ReturnsYES
if this is unordered list item. This is only used to simplify output generation! -
– stringValue
Item's string value. -
– descriptionStringValue
String value as used in debug description.
Properties
Class Methods
Instance Methods
descriptionStringValue
String value as used in debug description.
- (NSString *)descriptionStringValue
Discussion
By default this returns string value trimmed to a predefined maximum length, but subclasses can override to provide their specific implementation. This is only used for debugging purposes and should not be used for any output generation! See description
method implementation for details.
Sending this message is equivalent to sending descriptionForStringValue:
to receiver and passing it stringValue
as the parameter.
Declared In
GBParagraphItem.h@48 -> GBParagraphListItem.m
isOrderedListItem
Returns YES
if this is ordered list item. This is only used to simplify output generation!
- (BOOL)isOrderedListItem
Declared In
GBParagraphItem.h@63 -> GBParagraphListItem.m
isUnorderedListItem
Returns YES
if this is unordered list item. This is only used to simplify output generation!
- (BOOL)isUnorderedListItem
Declared In
GBParagraphItem.h@66 -> GBParagraphListItem.m