Package org.chenile.owiz.config.impl
Class CommandAttachmentDelegatorRule<InputType>
java.lang.Object
org.apache.commons.digester.Rule
org.chenile.owiz.config.impl.CommandAttachmentDelegatorRule<InputType>
public class CommandAttachmentDelegatorRule<InputType>
extends org.apache.commons.digester.Rule
Custom digester rule to process either the command or attach Descriptor.
We don't know if the tag is a command or an attachment. This rule finds that out
and delegates it to the respective rules for handling commands or attachments.
- Author:
- raja
-
Field Summary
Modifier and TypeFieldDescriptionprivate HandleAttachment<InputType>
private HandleCommand<InputType>
private HandleRegisteredCommand<InputType>
Fields inherited from class org.apache.commons.digester.Rule
digester, namespaceURI
-
Constructor Summary
ConstructorDescriptionCommandAttachmentDelegatorRule
(IDGenerator idGenerator, Map<String, CustomCommandTagDescriptor> commandTagMap, Map<String, CustomAttachmentTagDescriptor> attachmentTagMap) -
Method Summary
Modifier and TypeMethodDescriptionvoid
begin
(String namespace, String xmlElementName, Attributes attributes) void
void
setDigester
(org.apache.commons.digester.Digester digester) Methods inherited from class org.apache.commons.digester.Rule
begin, body, body, end, finish, getDigester, getNamespaceURI, setNamespaceURI
-
Field Details
-
handleAttachment
-
handleCommand
-
handleRegisteredCommand
-
-
Constructor Details
-
CommandAttachmentDelegatorRule
public CommandAttachmentDelegatorRule(IDGenerator idGenerator, Map<String, CustomCommandTagDescriptor> commandTagMap, Map<String, CustomAttachmentTagDescriptor> attachmentTagMap)
-
-
Method Details
-
setDigester
public void setDigester(org.apache.commons.digester.Digester digester) - Overrides:
setDigester
in classorg.apache.commons.digester.Rule
-
end
- Overrides:
end
in classorg.apache.commons.digester.Rule
- Throws:
Exception
-
begin
public void begin(String namespace, String xmlElementName, Attributes attributes) throws OwizConfigException - Overrides:
begin
in classorg.apache.commons.digester.Rule
- Throws:
OwizConfigException
-