Class ToolSpec
- java.lang.Object
-
- org.apache.cxf.tools.common.toolspec.ToolSpec
-
public class ToolSpec extends Object
-
-
Constructor Summary
Constructors Constructor Description ToolSpec()ToolSpec(InputStream in)ToolSpec(InputStream in, boolean validate)ToolSpec(Document d)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAnnotation()ExtendedDocumentBuildergetDocumentBuilder()ElementgetElementById(String id)ToolgetHandler()ToolgetHandler(ClassLoader loader)List<String>getInstreamIds()List<String>getOutstreamIds()StringgetParameterDefault(String name)ElementgetPipeline()StringgetStreamRefName(String streamId)Arguments can have streamref attributes which associate them with a stream.ElementgetStreams()ElementgetUsage()List<Element>getUsageForms()booleanhasHandler()booleanisValidInputStream(String id)voidtransform(InputStream stylesheet, OutputStream out)
-
-
-
Constructor Detail
-
ToolSpec
public ToolSpec()
-
ToolSpec
public ToolSpec(InputStream in) throws ToolException
- Throws:
ToolException
-
ToolSpec
public ToolSpec(InputStream in, boolean validate) throws ToolException
- Throws:
ToolException
-
ToolSpec
public ToolSpec(Document d)
-
-
Method Detail
-
getDocumentBuilder
public ExtendedDocumentBuilder getDocumentBuilder()
-
isValidInputStream
public boolean isValidInputStream(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()
-
getUsage
public Element getUsage()
-
transform
public void transform(InputStream stylesheet, OutputStream out) throws TransformerException
- Throws:
TransformerException
-
getPipeline
public Element getPipeline()
-
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.
-
getAnnotation
public String getAnnotation()
-
-