|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.schmant.arg.AbstractArgumentInterpreter org.schmant.task.template.xml.XmlArgumentInterpreter
InterpretAsXmlSourceStrategy
instead.
@Deprecated public final class XmlArgumentInterpreter
Support for interpreting XML arguments. This works in the same way as
ArgumentInterpreter
.
The implementation of this class may change in the future as new innovative ways of interpreting untyped arguments are discovered.
All the decisions that the methods in this class make are logged to trace
(FINEST) level by calling the AbstractArgumentInterpreter.trace(List, String)
method.
Another XmlArgumentInterpreter
implementation can be used by setting
the org.schmant.arg.xmlArgumentInterpreter
system property to the
fully qualified class name of that implementation. Implementations are
required to have a no-argument constructor.
ArgumentInterpreter
Constructor Summary | |
---|---|
protected |
XmlArgumentInterpreter()
Deprecated. |
Method Summary | |
---|---|
static XmlArgumentInterpreter |
getInstance()
Deprecated. |
Source |
getSource(Object o)
Deprecated. Use InterpretAsXmlSourceStrategy instead. |
Methods inherited from class org.schmant.arg.AbstractArgumentInterpreter |
---|
trace |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected XmlArgumentInterpreter()
Method Detail |
---|
@Deprecated public static XmlArgumentInterpreter getInstance()
@Deprecated public Source getSource(Object o)
InterpretAsXmlSourceStrategy
instead.
javax.xml.transform.Source
. This
method can interpret the following object types:
javax.xml.transform.Source
org.schmant.support.FutureProperty
. The future property is
run through this method to create the result.org.w3c.dom.Document
(a DOMSource
is created)ArgumentInterpreter.getReadableFile(Object)
can
interpret (a StreamSource
is created). This uses the interpreter
instance returned from ArgumentInterpreter.getInstance()
.
o
- The argument to interpret.
ArgumentInterpretationException
- On interpretation errors.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |