Cap Document
 All Classes Functions Properties
CapDocument.h
1 
9 #import <Foundation/Foundation.h>
10 #import "CapValidateResult.h"
11 
12 @interface CapDocument : NSObject
13 
14 @property(strong, nonatomic) NSString *xmlns;
15 
17 @property(strong, nonatomic) NSString *identifier;
18 
20 @property(strong, nonatomic) NSString *sender;
21 
23 @property(strong, nonatomic) NSString *sent;
24 
26 @property(strong, nonatomic) NSString *status;
27 
29 @property(strong, nonatomic) NSString *msgType;
30 
32 @property(strong, nonatomic) NSString *source;
33 
35 @property(strong, nonatomic) NSString *scope;
36 
38 @property(strong, nonatomic) NSString *restriction;
39 
41 @property(strong, nonatomic) NSString *addresses;
42 
44 @property(strong, nonatomic, readonly) NSMutableArray *code;
45 
47 @property(strong, nonatomic) NSString *note;
48 
50 @property(strong, nonatomic) NSString *references;
51 
53 @property(strong, nonatomic) NSString *incidents;
54 
56 @property(strong, nonatomic, readonly) NSMutableArray *info;
57 
65 -(id)initWithFilePath:(NSString*)filePath;
66 
72 -(void)load:(NSString*)filePath;
73 
79 -(BOOL)isValid;
80 
87 
95 +(CapValidateResult*)Validate:(NSString*)filePath;
96 
102 -(NSString*)toJson;
103 
109 -(NSString*)toGeoRssItem;
110 
116 -(NSString*)toKml;
117 
123 -(NSString*)toCap;
124 
125 @end
NSString * sent
發送日期與時間.
Definition: CapDocument.h:23
NSString * sender
來源者識別碼.
Definition: CapDocument.h:20
Definition: CapDocument.h:12
NSString * toJson()
將Cap物件轉為Json.
Definition: CapDocument.m:132
NSString * scope
接收者範圍.
Definition: CapDocument.h:35
BOOL isValid()
檢查資料驗證是否通過.
Definition: CapDocument.m:100
NSString * toCap()
將Cap物件轉為Cap.
Definition: CapDocument.m:355
NSString * source
來源簡述.
Definition: CapDocument.h:32
CapValidateResult * Validate()
驗證CapDocument物件.
Definition: CapDocument.m:110
NSMutableArray * code
特殊處理代碼.
Definition: CapDocument.h:44
NSString * identifier
警報識別碼.
Definition: CapDocument.h:17
NSString * toGeoRssItem()
將Cap物件轉為GeoRss.
Definition: CapDocument.m:145
NSString * toKml()
將Cap物件轉為Kml.
Definition: CapDocument.m:190
NSString * references
相關的識別碼.
Definition: CapDocument.h:50
Definition: CapValidateResult.h:11
NSString * addresses
接收者列表.
Definition: CapDocument.h:41
NSString * msgType
指令類別碼.
Definition: CapDocument.h:29
NSString * incidents
相關資訊列表.
Definition: CapDocument.h:53
NSString * status
類別狀態碼.
Definition: CapDocument.h:26
NSMutableArray * info
Info.
Definition: CapDocument.h:56
NSString * note
描述說明.
Definition: CapDocument.h:47
NSString * restriction
說明接受者條件.
Definition: CapDocument.h:38