Class ToolSpec

java.lang.Object
org.apache.cxf.tools.common.toolspec.ToolSpec

public class ToolSpec extends Object
  • Constructor Details

  • Method Details

    • getDocumentBuilder

      public ExtendedDocumentBuilder getDocumentBuilder()
    • isValidInputStream

      public boolean isValidInputStream(String id)
    • getElementById

      public Element getElementById(String id)
    • hasHandler

      public boolean hasHandler()
    • getHandler

      public Tool getHandler() throws ToolException
      Throws:
      ToolException
    • getHandler

      public Tool getHandler(ClassLoader loader) throws ToolException
      Throws:
      ToolException
    • getStreams

      public Element getStreams()
    • getInstreamIds

      public List<String> getInstreamIds()
    • getOutstreamIds

      public List<String> getOutstreamIds()
    • getUsage

      public Element getUsage()
    • transform

      public void transform(InputStream stylesheet, OutputStream out) throws TransformerException
      Throws:
      TransformerException
    • getPipeline

      public Element getPipeline()
    • getUsageForms

      public List<Element> getUsageForms()
    • getStreamRefName

      public String getStreamRefName(String streamId)
      Arguments can have streamref attributes which associate them with a stream. Tools usually request streams and rely on them being ready. If an argument is given a streamref, then the container constructs a stream from the argument value. This would usually be a simple FileInputStream or FileOutputStream. The mechanics of this are left for the container to sort out, but that is the reason why this getter method exists.
    • getParameterDefault

      public String getParameterDefault(String name)
    • getAnnotation

      public String getAnnotation()