GBParagraphSpecialItem Class Reference
| Inherits from | GBParagraphItem : NSObject |
| Declared in | GBParagraphSpecialItem.h GBParagraphSpecialItem.m |
Overview
Handles special paragraph items such as warnings and bugs.
Special items are containers for GBCommentParagraph which are formatted differently to catch user's attention. There can be several types of special items, to determine the type, use the value of specialItemType property.
Tasks
Initialization & disposal
-
+ specialItemWithType:Returns new autoreleasedGBParagraphSpecialIteminstance of te given type. -
+ specialItemWithType:stringValue:Returns new autoreleasedGBParagraphSpecialIteminstance of te given type.
Values
-
– registerParagraph:Registers the given paragraph. -
specialItemDescriptionThe description of the special item in the form ofGBCommentParagraph. property -
specialItemTypeThe type of the special item. property
Other Methods
-
– isWarningSpecialItemReturnsYESif this is warning special item. This is only used to simplify output generation! -
– isBugSpecialItemReturnsYESif this is bug special item. This is only used to simplify output generation! -
– isExampleSpecialItemReturnsYESif this is example special item. This is only used to simplify output generation! -
– descriptionStringValueString value as used in debug description.
Properties
Class Methods
specialItemWithType:
Returns new autoreleased GBParagraphSpecialItem instance of te given type.
+ (id)specialItemWithType:(GBSpecialItemType)typeParameters
- type
- The type of the special item.
Return Value
Returns initialized instance.
Discussion
Sending this message to the class is equivalent of:
GBParagraphSpecialItem *item = [[[GBParagraphSpecialItem alloc] init] autorelease]; item.specialItemType = type;
See Also
Declared In
GBParagraphSpecialItem.hspecialItemWithType:stringValue:
Returns new autoreleased GBParagraphSpecialItem instance of te given type.
+ (id)specialItemWithType:(GBSpecialItemType)type stringValue:(NSString *)valueParameters
- type
- The type of the special item.
- value
- The desired string value.
Return Value
Returns initialized instance.
Discussion
Sending this message to the class is equivalent of:
GBParagraphSpecialItem *item = [[[GBParagraphSpecialItem alloc] init] autorelease]; item.specialItemType = type; item.stringValue = value;
See Also
Declared In
GBParagraphSpecialItem.hInstance Methods
descriptionStringValue
String value as used in debug description.
- (NSString *)descriptionStringValueDiscussion
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 -> GBParagraphSpecialItem.misBugSpecialItem
Returns YES if this is bug special item. This is only used to simplify output generation!
- (BOOL)isBugSpecialItemDeclared In
GBParagraphItem.h@72 -> GBParagraphSpecialItem.misExampleSpecialItem
Returns YES if this is example special item. This is only used to simplify output generation!
- (BOOL)isExampleSpecialItemDeclared In
GBParagraphItem.h@75 -> GBParagraphSpecialItem.m