MBList Class Reference
Inherits from | MBEntity : NSObject |
Conforms to | NSFastEnumeration |
Declared in | MBList.h MBList.m |
Tasks
Other Methods
-
Count
property -
Offset
property -
TargetType
property -
– elementCount
-
– elementAtIndex:
Other Methods
-
– init
-
– parseElement:
Parse XML Element that represents this object.
-
– ElementName
Element Name
-
– countByEnumeratingWithState:objects:count:
Instance Methods
ElementName
Element Name
- (NSString *)ElementName
Discussion
Element Name
Returnes the element name for this instance.
Declared In
MBEntity.h
countByEnumeratingWithState:objects:count:
- (NSUInteger)countByEnumeratingWithState:(NSFastEnumerationState *)state objects:(id __unsafe_unretained [ ])buffer count:(NSUInteger)len
parseElement:
Parse XML Element that represents this object.
- (void)parseElement:(NSXMLElement *)element
Parameters
- element
NSXMLElement (DDXMLElement on iOS) that corresponds to this object
Discussion
Parse XML Element that represents this object.
This method will iterate through every attribute and element in the XML data
that corresponds to this object. It will call set<key>:
for every attribute
and element where key is the the the local name of the attribute or element.
If set<key>:
is not defined by the subclass, the attribute or element will
be added to ExtraAttributes or ExtraElements. Using @synthesize
is fine for
attributes as the passed value will always be an NSString or NSNull type but
is not adequate for elements because the value passed will be the
NSXMLElement (DDXMLElement on iOS) for that element.
Declared In
MBEntity.h