Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: adf551c21892c4a6cfe891a8e20a42b276c27211 (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
/*******************************************************************************
 * Copyright (c) 2004 IBM Corporation and others.
 * 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:
 *     IBM Corporation - initial API and implementation
 *******************************************************************************/
package org.eclipse.jst.jsp.core.modelquery;



import org.eclipse.jst.jsp.core.contentmodel.tld.TaglibSupport;
import org.eclipse.wst.common.contentmodel.modelquery.ModelQuery;
import org.eclipse.wst.common.contentmodel.util.CMDocumentCache;
import org.eclipse.wst.sse.core.modelquery.ModelQueryAdapterImpl;
import org.eclipse.wst.xml.uriresolver.util.IdResolver;


public class JSPModelQueryAdapterImpl extends ModelQueryAdapterImpl {

	TaglibSupport support = null;

	public JSPModelQueryAdapterImpl(CMDocumentCache cmDocumentCache, ModelQuery modelQuery, TaglibSupport support, IdResolver idResolver) {
		super(cmDocumentCache, modelQuery, idResolver);
		this.support = support;
	}

	public void release() {
		super.release();
		if (support != null)
			support.setStructuredDocument(null);
	}

	/**
	 * @see com.ibm.sse.model.modelquery.ModelQueryAdapter#setIdResolver(IdResolver)
	 */
	public void setIdResolver(IdResolver newIdResolver) {
		super.setIdResolver(newIdResolver);
		// new location, everything's stale unless the model's been rebuilt
		support.clearCMDocumentCache();
	}

}

Back to the top