Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.struts.digester
Class ObjectCreateRule

    java.lang.Object
      |
      +--org.apache.struts.digester.Rule
            |
            +--org.apache.struts.digester.ObjectCreateRule

public class ObjectCreateRule
extends Rule

Rule implementation that creates a new object and pushes it onto the object stack. When the element is complete, the object will be popped

Version:
  $Revision: 1.1 $ $Date: 2001/09/17 20:06:45 $
Author:
  Craig McClanahan

Field Summary
`protected java.lang.String` | `attributeName` The attribute containing an override class name if it is present.
`protected java.lang.String` | `className` The Java class name of the object to be created.

Fields inherited from class org.apache.struts.digester.Rule
`digester`

Constructor Summary
`ObjectCreateRule(Digester digester, java.lang.String className)` Construct an object create rule with the specified class name.
`ObjectCreateRule(Digester digester, java.lang.String className, java.lang.String attributeName)` Construct an object create rule with the specified class name and an optional attribute name containing an override.

Method Summary
`void` | `begin(org.xml.sax.AttributeList attributes)` Process the beginning of this element.
`void` | `end()` Process the end of this element.
`void` | `finish()` Clean up after parsing is complete.

Methods inherited from class org.apache.struts.digester.Rule
`body`

Methods inherited from class java.lang.Object
`, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait`

Field Detail

### attributeName

    protected java.lang.String attributeName

  The attribute containing an override class name if it is present.

### className

    protected java.lang.String className

  The Java class name of the object to be created.

Constructor Detail

### ObjectCreateRule

    public ObjectCreateRule(Digester digester,
                            java.lang.String className)

  Construct an object create rule with the specified class name.
  Parameters:
    `digester` - The associated Digester
    `className` - Java class name of the object to be created

### ObjectCreateRule

    public ObjectCreateRule(Digester digester,
                            java.lang.String className,
                            java.lang.String attributeName)

  Construct an object create rule with the specified class name and an optional attribute name containing an override.
  Parameters:
    `digester` - The associated Digester
    `className` - Java class name of the object to be created
    `attributeName` - Attribute name which, if present, contains an override of the class name to create

Method Detail

### begin

    public void begin(org.xml.sax.AttributeList attributes)
               throws java.lang.Exception

  Process the beginning of this element.
  Overrides:
    `begin` in class `Rule`
  Parameters:
    `attributes` - The attribute list of this element

### end

    public void end()
             throws java.lang.Exception

  Process the end of this element.
  Overrides:
    `end` in class `Rule`

### finish

    public void finish()
                throws java.lang.Exception

  Clean up after parsing is complete.
  Overrides:
    `finish` in class `Rule`

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2000-2001 - Apache Software Foundation