| java.lang.Object org.apache.tomcat.util.digester.Rule org.apache.tomcat.util.digester.ObjectCreateRule
ObjectCreateRule | public class ObjectCreateRule extends Rule (Code) | | Rule implementation that creates a new object and pushes it
onto the object stack. When the element is complete, the
object will be popped
|
Field Summary | |
protected String | attributeName The attribute containing an override class name if it is present. | protected String | className The Java class name of the object to be created. |
Constructor Summary | |
public | ObjectCreateRule(Digester digester, String className) Construct an object create rule with the specified class name. | public | ObjectCreateRule(Digester digester, Class clazz) Construct an object create rule with the specified class. | public | ObjectCreateRule(Digester digester, String className, String attributeName) Construct an object create rule with the specified class name and an
optional attribute name containing an override. | public | ObjectCreateRule(Digester digester, String attributeName, Class clazz) Construct an object create rule with the specified class and an
optional attribute name containing an override. | public | ObjectCreateRule(String className) Construct an object create rule with the specified class name. | public | ObjectCreateRule(Class clazz) Construct an object create rule with the specified class. | public | ObjectCreateRule(String className, String attributeName) Construct an object create rule with the specified class name and an
optional attribute name containing an override. | public | ObjectCreateRule(String attributeName, Class clazz) Construct an object create rule with the specified class and an
optional attribute name containing an override. |
Method Summary | |
public void | begin(Attributes attributes) Process the beginning of this element. | public void | end() Process the end of this element. | public String | toString() Render a printable version of this Rule. |
attributeName | protected String attributeName(Code) | | The attribute containing an override class name if it is present.
|
className | protected String className(Code) | | The Java class name of the object to be created.
|
ObjectCreateRule | public ObjectCreateRule(String className)(Code) | | Construct an object create rule with the specified class name.
Parameters: className - Java class name of the object to be created |
ObjectCreateRule | public ObjectCreateRule(Class clazz)(Code) | | Construct an object create rule with the specified class.
Parameters: clazz - Java class name of the object to be created |
ObjectCreateRule | public ObjectCreateRule(String className, String attributeName)(Code) | | Construct an object create rule with the specified class name and an
optional attribute name containing an override.
Parameters: className - Java class name of the object to be created Parameters: attributeName - Attribute name which, if present, contains anoverride of the class name to create |
ObjectCreateRule | public ObjectCreateRule(String attributeName, Class clazz)(Code) | | Construct an object create rule with the specified class and an
optional attribute name containing an override.
Parameters: attributeName - Attribute name which, if present, contains an Parameters: clazz - Java class name of the object to be createdoverride of the class name to create |
begin | public void begin(Attributes attributes) throws Exception(Code) | | Process the beginning of this element.
Parameters: attributes - The attribute list of this element |
end | public void end() throws Exception(Code) | | Process the end of this element.
|
toString | public String toString()(Code) | | Render a printable version of this Rule.
|
|
|