org.schmant.task.template.xml
Class XmlArgumentInterpreter

java.lang.Object
  extended by org.schmant.arg.AbstractArgumentInterpreter
      extended by org.schmant.task.template.xml.XmlArgumentInterpreter

Deprecated. Use InterpretAsXmlSourceStrategy instead.

@Deprecated
public final class XmlArgumentInterpreter
extends AbstractArgumentInterpreter

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.

Since:
0.5
Author:
Karl Gustafsson
See Also:
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

XmlArgumentInterpreter

protected XmlArgumentInterpreter()
Deprecated. 
Method Detail

getInstance

@Deprecated
public static XmlArgumentInterpreter getInstance()
Deprecated. 


getSource

@Deprecated
public Source getSource(Object o)
Deprecated. Use InterpretAsXmlSourceStrategy instead.

Interpret the argument as a javax.xml.transform.Source. This method can interpret the following object types:

Parameters:
o - The argument to interpret.
Returns:
A source.
Throws:
ArgumentInterpretationException - On interpretation errors.