
org.apache.commons.jelly.impl.ExpressionAttribute Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of commons-jelly Show documentation
Show all versions of commons-jelly Show documentation
Jelly is a Java and XML based scripting engine. Jelly combines the best ideas from JSTL, Velocity, DVSL, Ant and Cocoon all together in a simple yet powerful scripting engine.
The newest version!
package org.apache.commons.jelly.impl;
import org.apache.commons.jelly.expression.Expression;
/**
* Attribute as an expression of {@link TagScript}.
*
* @see TagScript
*/
public class ExpressionAttribute {
public ExpressionAttribute(String name, Expression exp) {
this(name,"","",exp);
}
public ExpressionAttribute(String name, String prefix, String nsURI, Expression exp) {
this.name = name;
this.prefix = prefix;
this.nsURI = nsURI;
this.exp = exp;
}
/**
* Local name of this attribute.
*/
public String name;
public String prefix;
public String nsURI;
public Expression exp;
public String qname() {
if (nsURI.length()>0)
return prefix+':'+name;
else
return name;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy