public class PutAttributeDirective
extends org.apache.velocity.runtime.directive.Directive
Put an attribute in enclosing attribute container tag.
Enclosing attribute container tag can be :
PutAttributeTagParent
interface. Exception is thrown if no appropriate tag can be found.
Put tag can have following atributes :
Value can also come from tag body. Tag body is taken into account only if value is not set by one of the tag attributes. In this case Attribute type is "string", unless tag body define another type.
Constructor and Description |
---|
PutAttributeDirective() |
Modifier and Type | Method and Description |
---|---|
String |
getName() |
int |
getType() |
boolean |
render(org.apache.velocity.context.InternalContextAdapter context,
Writer writer,
org.apache.velocity.runtime.parser.node.Node node) |
public String getName()
getName
in class org.apache.velocity.runtime.directive.Directive
public int getType()
getType
in class org.apache.velocity.runtime.directive.Directive
public boolean render(org.apache.velocity.context.InternalContextAdapter context, Writer writer, org.apache.velocity.runtime.parser.node.Node node) throws IOException
render
in class org.apache.velocity.runtime.directive.Directive
IOException
Copyright © 2001-2017 The Apache Software Foundation. All Rights Reserved.