blob: ed612fa0f0cc0b0ce13ca9317f2b8803e36b6a5d [file] [log] [blame]
/*
* Copyright 1999-2005 The Apache Software Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
package org.apache.lenya.cms.repo;
import org.apache.lenya.xml.Schema;
/**
* @version $Id:$
*/
public interface DocumentType {
/**
* Returns the name of this document type.
* @return A string value.
*/
String getName();
/**
* @return The source URI of the RelaxNG schema.
*/
Schema getSchema();
/**
* @return If documents belonging to this document type should be validated upon writing.
*/
boolean isValidating();
/**
* @return The mime type of the document type.
* @throws RepositoryException if an error occurs.
*/
String getMimeType() throws RepositoryException;
/**
* @return All supported formats.
*/
String[] getFormats();
/**
* @param format The format.
* @return The URI to get the formatted content at.
*/
String getFormatURI(String format);
}