blob: 48194aee506854ede3482c3876e27516e46913ab [file] [log] [blame]
david_williamscfdb2cd2004-11-11 08:37:49 +00001/*******************************************************************************
2 * Copyright (c) 2001, 2004 IBM Corporation and others.
3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the Eclipse Public License v1.0
5 * which accompanies this distribution, and is available at
6 * http://www.eclipse.org/legal/epl-v10.html
7 *
8 * Contributors:
9 * IBM Corporation - initial API and implementation
10 * Jens Lukowski/Innoopract - initial renaming/restructuring
11 *
12 *******************************************************************************/
david_williams4ad020f2005-04-18 08:00:30 +000013package org.eclipse.wst.sse.core.internal.provisional.document;
david_williamscfdb2cd2004-11-11 08:37:49 +000014
15import org.eclipse.jface.text.IDocument;
david_williamsdce4ddd2005-03-18 05:35:37 +000016import org.eclipse.wst.sse.core.internal.encoding.EncodingMemento;
david_williamscfdb2cd2004-11-11 08:37:49 +000017
david_williams7a65dc22005-04-09 02:19:50 +000018/**
19 * This interface is strictly to define important "document properties" not
20 * found in IDocument, but not central to "StructuredDocument".
21 *
22 * Its not to be be implmented by clients.
23 *
david_williams6cb26392005-06-24 20:13:29 +000024 * @plannedfor 1.0
david_williams7a65dc22005-04-09 02:19:50 +000025 */
david_williamscfdb2cd2004-11-11 08:37:49 +000026
27public interface IEncodedDocument extends IDocument {
28
david_williams7a65dc22005-04-09 02:19:50 +000029 /**
30 * Returns the encoding memento for this document.
31 *
32 * @return the encoding memento for this document.
33 */
david_williamscfdb2cd2004-11-11 08:37:49 +000034 EncodingMemento getEncodingMemento();
35
david_williams7a65dc22005-04-09 02:19:50 +000036 /**
37 * Returns the preferred line delimiter for this document.
38 */
39 String getPreferredLineDelimiter();
david_williamscfdb2cd2004-11-11 08:37:49 +000040
david_williams7a65dc22005-04-09 02:19:50 +000041 /**
42 * Sets the encoding memento for this document.
43 *
44 * Is not to be called by clients, only document creation classes.
45 *
46 * @param localEncodingMemento
47 */
david_williamscfdb2cd2004-11-11 08:37:49 +000048 void setEncodingMemento(EncodingMemento localEncodingMemento);
49
david_williams7a65dc22005-04-09 02:19:50 +000050 /**
51 * Sets the preferredLineDelimiter. Is not to be called by clients, only
52 * document creation classes.
53 *
54 * @param probableLineDelimiter
55 */
56 void setPreferredLineDelimiter(String probableLineDelimiter);
david_williamscfdb2cd2004-11-11 08:37:49 +000057
58}