org.obe.client.api.repository
Class ToolAgentMetaData
java.lang.Object
org.obe.client.api.repository.AbstractMetaData
org.obe.client.api.repository.ToolAgentMetaData
- All Implemented Interfaces:
- java.io.Serializable
- Direct Known Subclasses:
- DocumentHandlerMetaData, DummyToolMetaData, JavaMethodMetaData, NativeExecutableMetaData, NoImplementationToolAgentMetaData, ScriptMetaData, UpdateProcessAttributesMetaData, WebServiceMetaData, XFormMetaData, XMLRPCServiceMetaData
- public abstract class ToolAgentMetaData
- extends AbstractMetaData
Describes a user-defined tool agent. Different tool types extend this class
with the additional meta data required to instantiate the tool agent itself.
- Author:
- Adrian Price
- See Also:
- Serialized Form
Constructor Summary |
protected |
ToolAgentMetaData()
|
protected |
ToolAgentMetaData(java.lang.String id,
java.lang.String displayName,
java.lang.String description,
java.lang.String docUrl,
java.lang.String author,
boolean threadsafe)
Constructs tool meta-data. |
Methods inherited from class org.obe.client.api.repository.AbstractMetaData |
createInstance, getAuthor, getDescription, getDisplayName, getDocUrl, getId, getImplClass, getImplCtorSig, getThreadsafe, getType, isThreadsafe, setAuthor, setDescription, setDisplayName, setDocUrl, setId, setThreadsafe, setType |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
_formalParameters
protected FormalParameter[] _formalParameters
ToolAgentMetaData
protected ToolAgentMetaData()
ToolAgentMetaData
protected ToolAgentMetaData(java.lang.String id,
java.lang.String displayName,
java.lang.String description,
java.lang.String docUrl,
java.lang.String author,
boolean threadsafe)
- Constructs tool meta-data.
- Parameters:
id
- The tool ID.displayName
- The display name.description
- Textual description of this tool.docUrl
- URL for documentation.author
- Author's name.threadsafe
- true
if instances of
impClass
createInstance
public java.lang.Object createInstance(org.xml.sax.EntityResolver entityResolver)
throws RepositoryException
- Specified by:
createInstance
in class AbstractMetaData
- Throws:
RepositoryException
createInstance
public java.lang.Object createInstance(org.xml.sax.EntityResolver entityResolver,
java.lang.Object args)
throws RepositoryException
- Overrides:
createInstance
in class AbstractMetaData
- Throws:
RepositoryException
getFormalParameter
public FormalParameter[] getFormalParameter()
setFormalParameter
public void setFormalParameter(FormalParameter[] formalParameters)
init
public void init()
- Provides an opportunity for metadata classes to perform post-load
initialization. The
ToolAgentFactory
calls this method on
each ToolAgentMetaData
object registered with it as part
of the final phase of initialization. Client code should not call
this method.
introspect
public abstract ToolAgentMetaData introspect(ExternalReference extRef,
org.xml.sax.EntityResolver entityResolver)
throws RepositoryException
- Introspects a reference to an externally defined tool or service. If the
associated tool agent type can handle the reference, the method returns
the meta-data required to instantiate such a tool agent.
- Parameters:
extRef
- The external tool reference.entityResolver
-
- Returns:
- Configured tool meta-data, or
null
if this tool type
cannot handle this reference.
- Throws:
RepositoryException
toString
public java.lang.String toString()
- Overrides:
toString
in class AbstractMetaData
OBE-1.0 Copyright (c) 2002-2006 Adrian Price. All Rights Reserved.