public class CreateMessage extends Object
Constructor and Description |
---|
CreateMessage(String commandType)
Get a new request for a AlpacaDocument with a command element within.
|
Modifier and Type | Method and Description |
---|---|
CreateMessage |
appendChildToCommand(Element e)
Add an actual XML element to this command.
|
CreateMessage |
appendChildToCommand(String tagName)
Append an empty tag to a command; this creates an element with no
content.
|
CreateMessage |
appendChildToCommand(String tagName,
String value)
Adds a text-only element to the command.
|
Element |
getElement(String tagName)
Get a new, empty element having the name specified.
|
Element |
getNilElement(String tagName) |
Element |
getTextElement(String tagName,
String value)
Get a new, text element having the name and text value specified, BUT do
not attach it to the request.
|
String |
toString() |
public CreateMessage(String commandType) throws co.ecg.alpaca.toolkit.exception.AlpacaException
commandType
- The name of the commandco.ecg.alpaca.toolkit.exception.AlpacaException
public Element getElement(String tagName)
<pre>
<foo/>
</pre>
is a simple empty element with tagName "foo".
public Element getTextElement(String tagName, String value)
<pre>
<foo>bar</foo>
</pre>
is a simple empty element with tagName "foo" and value "bar".
public CreateMessage appendChildToCommand(String tagName, String value)
<command xsi:type="getUserInfo">
<userId>dilbert</userId>
</command>
public CreateMessage appendChildToCommand(String tagName)
public CreateMessage appendChildToCommand(Element e)
Copyright © 2016. All rights reserved.