Skip to main content

This CGIT instance is deprecated, and repositories have been moved to Gitlab or Github. See the repository descriptions for specific locations.

summaryrefslogtreecommitdiffstats
blob: 5d9590ea87be26a7223a2b86b68280eed49ff474 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
/*******************************************************************************
 * Copyright (c) 2009 Jesper Steen Moeller
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     Jesper Steen Moeller - Added XML Catalogs 1.1 support
 *     
 *******************************************************************************/
package org.eclipse.wst.xml.core.internal.catalog;

import org.eclipse.wst.xml.core.internal.catalog.provisional.ICatalogElement;
import org.eclipse.wst.xml.core.internal.catalog.provisional.IRewriteEntry;

public class RewriteEntry extends TypedCatalogElement implements IRewriteEntry, Cloneable 
{
	String startString;
	String rewritePrefix;

	protected RewriteEntry(int anEntryType) 
	{
		super(ICatalogElement.TYPE_REWRITE, anEntryType);
	}

	public String getStartString() 
	{
		return startString;
	}

	public void setStartString(String startString) 
	{
		this.startString = startString;
	}

	public String getRewritePrefix() 
	{
		return rewritePrefix;
	}

	public void setRewritePrefix(String rewritePrefix) 
	{
		this.rewritePrefix = rewritePrefix;
	}

	public Object clone() 
	{
		RewriteEntry entry = (RewriteEntry) super.clone();
		entry.setRewritePrefix(rewritePrefix);
		entry.setStartString(startString);
		return entry;
	}
}

Back to the top