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

org.zkoss.zk.ui.metainfo.NamespaceParser Maven / Gradle / Ivy

There is a newer version: 10.0.0-jakarta
Show newest version
/** NamespaceParser.java.

	Purpose:
		
	Description:
		
	History:
		2:18:08 PM Jul 18, 2014, Created by jumperchen

Copyright (C) 2014 Potix Corporation. All Rights Reserved.
 */
package org.zkoss.zk.ui.metainfo;

import org.zkoss.idom.Attribute;

/**
 * A namespace parser to handle the different namespace for the attributes
 * @author jumperchen
 * @since 7.0.3
 */
public interface NamespaceParser {

	/**
	 * Checks whether the namespace URI is used for this Namespace Parser.
	 */
	public boolean isMatched(String nsURI);

	/**
	 * Parses the the content with the current namespace parser.
	 * 
	 * @return true to terminal the next namespace parser processing
	 */
	public boolean parse(Attribute attr, ComponentInfo compInfo,
			PageDefinition pgdef) throws Exception;

	/**
	 * Returns the namespace parser's priority, higher is the first.
	 */
	public int getPriority();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy