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 autoreleasedGBParagraphSpecialItem
instance of te given type. -
+ specialItemWithType:stringValue:
Returns new autoreleasedGBParagraphSpecialItem
instance of te given type.
Values
-
– registerParagraph:
Registers the given paragraph. -
specialItemDescription
The description of the special item in the form ofGBCommentParagraph
. property -
specialItemType
The type of the special item. property
Other Methods
-
– isWarningSpecialItem
ReturnsYES
if this is warning special item. This is only used to simplify output generation! -
– isBugSpecialItem
ReturnsYES
if this is bug special item. This is only used to simplify output generation! -
– isExampleSpecialItem
ReturnsYES
if this is example special item. This is only used to simplify output generation! -
– descriptionStringValue
String value as used in debug description.
Properties
Class Methods
specialItemWithType:
Returns new autoreleased GBParagraphSpecialItem
instance of te given type.
+ (id)specialItemWithType:(GBSpecialItemType)type
Parameters
- 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.h
specialItemWithType:stringValue:
Returns new autoreleased GBParagraphSpecialItem
instance of te given type.
+ (id)specialItemWithType:(GBSpecialItemType)type stringValue:(NSString *)value
Parameters
- 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.h
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 -> GBParagraphSpecialItem.m
isBugSpecialItem
Returns YES
if this is bug special item. This is only used to simplify output generation!
- (BOOL)isBugSpecialItem
Declared In
GBParagraphItem.h@72 -> GBParagraphSpecialItem.m
isExampleSpecialItem
Returns YES
if this is example special item. This is only used to simplify output generation!
- (BOOL)isExampleSpecialItem
Declared In
GBParagraphItem.h@75 -> GBParagraphSpecialItem.m