Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
License Agreement. Rich Faces - Natural Ajax for Java Server Faces (JSF) Copyright (C) 2007 Exadel, Inc. This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License version 2.1 as published by the Free Software Foundation. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
 package org.ajax4jsf.templatecompiler.elements.html.attribute;
Processing template simple HTLM-attributes.

Author(s): (latest modification by $Author: alexsmirnov $)
$Revision: $ $Date: 2007/02/26 20:48:55 $
 public class HtmlAttribute implements Attribute {
 	final private static String regexAttributeName = "x:(.*)";
 	final private static Pattern patternAttributeName = Pattern
 	private String name;
 	private String value;
 	private boolean isNoRewrite;

 	public HtmlAttribute(String attributeNameString attributeValue) {
 		Matcher mather = .matcher(attributeName);
 		if (mather.find()) {
 			this. =;
 			this. = true;
 		} else {
 			this. = attributeName;
 			this. = false;
 		this. = attributeValue;

 	public String getName() {
 		return this.;

 	public String getValue() {
 		return this.;

 	public boolean isNoRewrite() {
 		return this.;

copy values from

 	public void copyValues(final Attribute src) {
 		if (src instanceof HtmlAttribute) {
 			if (!isNoRewrite()) {
 				this. = ((HtmlAttributesrc).getValue();
 				this. = ((HtmlAttributesrc).isNoRewrite();

	public String getCode() {
		return null;
New to GrepCode? Check out our FAQ X