| Modifier and Type | Field and Description |
|---|---|
| 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. |
| Access | Constructor and Description |
|---|---|
| public | ObjectCreateRule(String
Java class name of the object to be created className)Construct an object create rule with the specified class name. |
| public | ObjectCreateRule(String
Java class name of the object to be created className, String Attribute name which, if present, contains an
override of the class name to create attributeName)Construct an object create rule with the specified class name and an optional attribute name containing an override. |
| Modifier and Type | Method and Description |
|---|---|
| public void | begin(String
the namespace URI of the matching element, or an
empty string if the parser is not namespace aware or the element has
no namespace namespace, String the local name if the parser is namespace aware, or just
the element name otherwise name, Attributes The attribute list for this element attributes)Overrides org. Process the beginning of this element. |
| public void | end(String
the namespace URI of the matching element, or an
empty string if the parser is not namespace aware or the element has
no namespace namespace, String the local name if the parser is namespace aware, or just
the element name otherwise name)Overrides org. Process the end of this element. |
| protected String | Returns: the class nameThe attribute list for this element attributes)Return the actual class name of the class to be instantiated. |
| public String |
| attributeName | back to summary |
|---|---|
| protected String attributeName The attribute containing an override class name if it is present. | |
| className | back to summary |
|---|---|
| protected String className The Java class name of the object to be created. | |
| ObjectCreateRule | back to summary |
|---|---|
| public ObjectCreateRule(String className) Construct an object create rule with the specified class name.
| |
| ObjectCreateRule | back to summary |
|---|---|
| public ObjectCreateRule(String className, String attributeName) Construct an object create rule with the specified class name and an optional attribute name containing an override. | |
| begin | back to summary |
|---|---|
| public void begin(String namespace, String name, Attributes attributes) throws Exception Overrides org. Process the beginning of this element.
| |
| end | back to summary |
|---|---|
| public void end(String namespace, String name) throws Exception Overrides org. Process the end of this element.
| |
| getRealClassName | back to summary |
|---|---|
| protected String getRealClassName(Attributes attributes) Return the actual class name of the class to be instantiated.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Render a printable version of this Rule.
| |