DocumentHandler
| Modifier and Type | Field and Description |
|---|---|
| private String | |
| private DocumentHandler | |
| private ElementHandler |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected void | addArgument(Object
the value of the element that contained in this one argument)Adds the argument that is used to calculate the value of this element. |
| public void | addAttribute(String
the attribute name name, String the attribute value value)Parses attributes of the element. |
| public void | |
| public void | |
| protected Object | |
| public final DocumentHandler | Returns: the owner document handlerReturns the document handler that creates this element handler. |
| public final ElementHandler | |
| protected abstract ValueObject | |
| protected final Object | Returns: the value of the variablethe identifier id)Returns the value of the variable with specified identifier. |
| protected boolean | Returns: true if the value of this element can be used
as an argument of the element that contained in this one,
false otherwiseTests whether the value of this element can be used as an argument of the element that contained in this one. |
| pack-priv final void | setOwner(DocumentHandler
the owner document handler owner)Sets the document handler that creates this element handler. |
| pack-priv final void | setParent(ElementHandler
the parent element handler parent)Sets the element handler that contains this one. |
| public void |
| id | back to summary |
|---|---|
| private String id | |
| owner | back to summary |
|---|---|
| private DocumentHandler owner | |
| parent | back to summary |
|---|---|
| private ElementHandler parent | |
| ElementHandler | back to summary |
|---|---|
| public ElementHandler() | |
| addArgument | back to summary |
|---|---|
| protected void addArgument(Object argument) Adds the argument that is used to calculate the value of this element. By default, no arguments are acceptable.
| |
| addAttribute | back to summary |
|---|---|
| public void addAttribute(String name, String value) Parses attributes of the element. By default, the following attribute is supported:
| |
| addCharacter | back to summary |
|---|---|
| public void addCharacter(char ch) Adds the character that contained in this element. By default, only whitespaces are acceptable.
| |
| endElement | back to summary |
|---|---|
| public void endElement() This method is called after parsing of the element's body. By default, it calculates the value of this element. The following tasks are executing for any non-void value:
| |
| getContextBean | back to summary |
|---|---|
| protected Object getContextBean() Returns the value of the parent element.
| |
| getOwner | back to summary |
|---|---|
| public final DocumentHandler getOwner() Returns the document handler that creates this element handler.
| |
| getParent | back to summary |
|---|---|
| public final ElementHandler getParent() Returns the element handler that contains this one.
| |
| getValueObject | back to summary |
|---|---|
| protected abstract ValueObject getValueObject() Returns the value of this element.
| |
| getVariable | back to summary |
|---|---|
| protected final Object getVariable(String id) Returns the value of the variable with specified identifier. | |
| isArgument | back to summary |
|---|---|
| protected boolean isArgument() Tests whether the value of this element can be used as an argument of the element that contained in this one.
| |
| setOwner | back to summary |
|---|---|
| pack-priv final void setOwner(DocumentHandler owner) Sets the document handler that creates this element handler. The owner document handler should be set after instantiation. Such approach is used to simplify the extensibility.
| |
| setParent | back to summary |
|---|---|
| pack-priv final void setParent(ElementHandler parent) Sets the element handler that contains this one. The parent element handler should be set after instantiation. Such approach is used to simplify the extensibility.
| |
| startElement | back to summary |
|---|---|
| public void startElement() This method is called before parsing of the element's body. All attributes are parsed at this point. By default, do nothing. | |