All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.adobe.xfa.text.markup.XMLParser Maven / Gradle / Ivy

There is a newer version: 2024.11.18751.20241128T090041Z-241100
Show newest version
package com.adobe.xfa.text.markup;

import org.xml.sax.Attributes;

/**
 * @exclude from published api.
 */

abstract class XMLParserBase {
	public void processText (String sText) {
		XMLParserImpl oImpl = new XMLParserImpl (this);
		oImpl.processText (sText);
	}

	abstract public void onStartTag (String name, Attributes attributes);
	abstract public void onEndTag (String name);
	abstract public void onContent (String content);
}

/**
 * @exclude from published api.
 */

public abstract class XMLParser extends XMLParserBase {
	public void onStartTag (String name, Attributes attributes) {
		onStartTag (name);
		int size = attributes.getLength();
		for (int i = 0; i < size; i++) {
			String attrName = attributes.getLocalName (i);
			String attrValue = attributes.getValue (i);
			onAttribute (attrName, attrValue);
		}
		
	}
	abstract public void onStartTag (String name);
	abstract public void onAttribute (String name, String value);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy