/**
 * Appcelerator Titanium Mobile
 * Copyright (c) 2013 by Appcelerator, Inc. All Rights Reserved.
 * Licensed under the terms of the Apache Public License
 * Please see the LICENSE included with this distribution for details.
 */
#import "TiProxy.h"

@interface TiProxyTemplate : TiProxy

@property (nonatomic, readonly) NSString *type;
@property (nonatomic, readonly) NSDictionary *properties;
@property (nonatomic, readonly) NSDictionary *events;
@property (nonatomic, readonly) NSArray *childTemplates;

- (id)initWithViewTemplate:(NSDictionary *)viewTemplate;
- (BOOL)isEmpty;

+ (TiProxyTemplate *)templateFromViewTemplate:(id)viewTemplate;
- (NSDictionary *)prepareDataItem:(NSDictionary *)dataItem;
@end
