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
-
+ orderedParagraphListItemReturns new autoreleased list item withorderedset toYES. -
+ unorderedParagraphListItemReturns new autoreleased list item withorderedset toNO.
Values
-
- registerItem:Registers the given item by adding it to the end ofitemsarray. -
isOrderedSpecifies whether the list is ordered (YES) or unordered (NO). -
listItemsArray of all list items as instances ofGBCommentParagraphin the same order as in comment text.
Other Methods
-
- isOrderedListItemReturnsYESif this is ordered list item. This is only used to simplify output generation! -
- isUnorderedListItemReturnsYESif this is unordered list item. This is only used to simplify output generation! -
- stringValueItem's string value. -
- descriptionStringValueString value as used in debug description.
Extension Methods
-
+ orderedParagraphListItemReturns new autoreleased list item withorderedset toYES. -
+ unorderedParagraphListItemReturns new autoreleased list item withorderedset toNO. -
- registerItem:Registers the given item by adding it to the end ofitemsarray. -
isOrderedSpecifies whether the list is ordered (YES) or unordered (NO). -
listItemsArray of all list items as instances ofGBCommentParagraphin the same order as in comment text. -
- isOrderedListItemReturnsYESif this is ordered list item. This is only used to simplify output generation! -
- isUnorderedListItemReturnsYESif this is unordered list item. This is only used to simplify output generation! -
- stringValueItem's string value. -
- descriptionStringValueString value as used in debug description.
Class Methods
orderedParagraphListItem
Returns new autoreleased list item with ordered set to YES.
+ (id)orderedParagraphListItemDiscussion
Returns new autoreleased list item with ordered set to YES.
This is equivalent to initializing with designated initialized ( init) and setting ordered property value of initializaed object to YES.
Declared In
GBParagraphListItem.hunorderedParagraphListItem
Returns new autoreleased list item with ordered set to NO.
+ (id)unorderedParagraphListItemDiscussion
Returns new autoreleased list item with ordered set to NO.
This is equivalent to initializing with designated initialized ( init) and setting ordered property value of initializaed object to NO.
Declared In
GBParagraphListItem.hInstance Methods
descriptionStringValue
String value as used in debug description.
- (NSString *)descriptionStringValueDiscussion
String value as used in debug description.
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
GBParagraphListItem.misOrderedListItem
Returns YES if this is ordered list item. This is only used to simplify output generation!
- (BOOL)isOrderedListItemDeclared In
GBParagraphListItem.misUnorderedListItem
Returns YES if this is unordered list item. This is only used to simplify output generation!
- (BOOL)isUnorderedListItemDeclared In
GBParagraphListItem.mregisterItem:
Registers the given item by adding it to the end of items array.
- (void)registerItem:(GBCommentParagraph *)itemParameters
- item
-
GBCommentParagraphto register.
Exceptions
- NSException
- Thrown if the given item is
nil.
Declared In
GBParagraphListItem.hProperties
isOrdered
Specifies whether the list is ordered ( YES) or unordered ( NO).
@property (assign) BOOL isOrderedDeclared In
GBParagraphListItem.hlistItems
Array of all list items as instances of GBCommentParagraph in the same order as in comment text.
@property (readonly) NSArray *listItemsDeclared In
GBParagraphListItem.h