Cap Document
 All Classes Functions Properties
Instance Methods | Class Methods | Properties | List of all members
CapDocument Class Reference

#import <CapDocument.h>

Inheritance diagram for CapDocument:

Instance Methods

(id) - initWithFilePath:
 類別建構. More...
 
(void) - load:
 讀取Cap檔案. More...
 
(BOOL) - isValid
 檢查資料驗證是否通過. More...
 
(CapValidateResult *) - Validate
 驗證CapDocument物件. More...
 
(NSString *) - toJson
 將Cap物件轉為Json. More...
 
(NSString *) - toGeoRssItem
 將Cap物件轉為GeoRss. More...
 
(NSString *) - toKml
 將Cap物件轉為Kml. More...
 
(NSString *) - toCap
 將Cap物件轉為Cap. More...
 

Class Methods

(CapValidateResult *) + Validate:
 驗證Cap檔案. More...
 

Properties

NSString * xmlns
 
NSString * identifier
 警報識別碼.
 
NSString * sender
 來源者識別碼.
 
NSString * sent
 發送日期與時間.
 
NSString * status
 類別狀態碼.
 
NSString * msgType
 指令類別碼.
 
NSString * source
 來源簡述.
 
NSString * scope
 接收者範圍.
 
NSString * restriction
 說明接受者條件.
 
NSString * addresses
 接收者列表.
 
NSMutableArray * code
 特殊處理代碼.
 
NSString * note
 描述說明.
 
NSString * references
 相關的識別碼.
 
NSString * incidents
 相關資訊列表.
 
NSMutableArray * info
 Info.
 

Detailed Description

CapDocument.h CapDocument

Created by snowdaily on 2014/3/17. Copyright (c) 2014年 NCDR. All rights reserved.

Method Documentation

- (id) initWithFilePath: (NSString*)  filePath

類別建構.

Parameters
filePath檔案路徑.
Returns
CapDocument.
- (BOOL) isValid

檢查資料驗證是否通過.

Returns
驗證結果.
- (void) load: (NSString*)  filePath

讀取Cap檔案.

Parameters
filePath檔案路徑.
- (NSString *) toCap

將Cap物件轉為Cap.

Returns
Cap字串
- (NSString *) toGeoRssItem

將Cap物件轉為GeoRss.

Returns
GeoRss字串.
- (NSString *) toJson

將Cap物件轉為Json.

Returns
Json字串
- (NSString *) toKml

將Cap物件轉為Kml.

Returns
Kml字串
- (CapValidateResult *) Validate

驗證CapDocument物件.

Returns
驗證結果.
+ (CapValidateResult *) Validate: (NSString*)  filePath

驗證Cap檔案.

Parameters
filePath檔案路徑.
Returns
驗證結果.

The documentation for this class was generated from the following files: