KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > team > core > IStringMapping


1 /*******************************************************************************
2  * Copyright (c) 2000, 2006 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  *******************************************************************************/

11
12 package org.eclipse.team.core;
13
14
15 /**
16  * A simple interface for mappings from a string (usually a file name or a file extension)
17  * and a content type (typically <code>Team.TEXT</code>, <code>Team.BINARY</code> or
18  * <code>Team.UNKNOWN</code>.
19  * <p>
20  * This interface is not intended to be implemented by clients.
21  *
22  * @since 3.1
23  */

24 public interface IStringMapping {
25     
26     /**
27      * The string part of the mapping
28      *
29      * @return the string
30      *
31      * @since 3.1
32      */

33     String JavaDoc getString();
34     
35     /**
36      * The content type associated with the string
37      *
38      * @return the content type
39      *
40      * @since 3.1
41      */

42     int getType();
43 }
44
Popular Tags