﻿/*

Copyright Robert Vesse 2009-11
rvesse@vdesign-studios.com

------------------------------------------------------------------------

This file is part of dotNetRDF.

dotNetRDF is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

dotNetRDF is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with dotNetRDF.  If not, see <http://www.gnu.org/licenses/>.

------------------------------------------------------------------------

dotNetRDF may alternatively be used under the LGPL or MIT License

http://www.gnu.org/licenses/lgpl.html
http://www.opensource.org/licenses/mit-license.php

If these licenses are not suitable for your intended use please contact
us at the above stated email address to discuss alternative
terms.

*/

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace VDS.RDF.Writing.Formatting
{
    /// <summary>
    /// Interface for Formatters which can format Namespace Information
    /// </summary>
    public interface INamespaceFormatter
    {
        /// <summary>
        /// Formats Namespace Information as a String
        /// </summary>
        /// <param name="prefix">Namespae Prefix</param>
        /// <param name="namespaceUri">Namespace URI</param>
        /// <returns></returns>
        String FormatNamespace(String prefix, Uri namespaceUri);
    }

    /// <summary>
    /// Interface for Formatters which can format Base URI Information
    /// </summary>
    public interface IBaseUriFormatter
    {
        /// <summary>
        /// Formats Base URI Information as a String
        /// </summary>
        /// <param name="u">Base URI</param>
        /// <returns></returns>
        String FormatBaseUri(Uri u);
    }
}
