using System;
using System.Runtime.Serialization;
using Umbraco.Core.Models.Entities;
namespace Umbraco.Core.Models
{
///
/// Defines a Template File (Masterpage or Mvc View)
///
public interface ITemplate : IFile, IRememberBeingDirty, ICanBeDirty
{
///
/// Gets the Name of the File including extension
///
new string Name { get; set; }
///
/// Gets the Alias of the File, which is the name without the extension
///
new string Alias { get; set; }
///
/// Returns true if the template is used as a layout for other templates (i.e. it has 'children')
///
bool IsMasterTemplate { get; }
///
/// returns the master template alias
///
string MasterTemplateAlias { get; }
///
/// Set the mastertemplate
///
///
void SetMasterTemplate(ITemplate masterTemplate);
}
}