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: a9ec4a10a673891a4c33c533c2e25f2e60ad7d42 (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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
/*******************************************************************************
 * Copyright (c) 2004, 2006 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.wst.xml.core.internal.search.matching;

import java.util.HashMap;
import java.util.Map;
import org.xml.sax.Attributes;

public class SAXSearchElement{
	Attributes attributes;
	String elementName;
	String elementNamespace;
	Map namespaceMap = new HashMap(); // Map of string prefix keys and namespace
	String targetNamespace = ""; //$NON-NLS-1$
	String parentName;
    int depth = -1;
	
	public SAXSearchElement() {
		super();
	}
	public Attributes getAttributes() {
		return attributes;
	}
	public String getElementName() {
		return elementName;
	}
	public String getElementNamespace() {
		return elementNamespace;
	}
	public Map getNamespaceMap() {
		return namespaceMap;
	}
	public String getTargetNamespace() {
		return targetNamespace;
	}
	public void setAttributes(Attributes attributes) {
		this.attributes = attributes;
	}
	public void setElementName(String elementName) {
		this.elementName = elementName;
	}
	public void setElementNamespace(String elementNamespace) {
		this.elementNamespace = elementNamespace;
	}
	public void setNamespaceMap(Map namespaceMap) {
		this.namespaceMap = namespaceMap;
	}
	public void setTargetNamespace(String targetNamespace) {
		this.targetNamespace = targetNamespace;
	}
  public int getDepth()
  {
    return depth;
  }
  public void setDepth(int depth)
  {
    this.depth = depth;
  }
public String getParentName() {
	return parentName;
}
public void setParentName(String parentName) {
	this.parentName = parentName;
}
	
	
	
	
}

Back to the top