using Umbraco.Core.Models.EntityBase;
namespace Umbraco.Core.Models
{
///
/// Defines a File
///
/// Used for Scripts, Stylesheets and Templates
public interface IFile : IAggregateRoot
{
///
/// Gets the Name of the File including extension
///
string Name { get; }
///
/// Gets the Alias of the File, which is the name without the extension
///
string Alias { get; }
///
/// Gets or sets the Path to the File from the root of the site
///
string Path { get; set; }
///
/// Gets or sets the Content of a File
///
string Content { get; set; }
///
/// Boolean indicating whether the file could be validated
///
/// True if file is valid, otherwise false
bool IsValid();
}
}