All Packages Class Hierarchy This Package Previous Next Index
Class bea.jolt.JoltDefinition
java.lang.Object
|
+----bea.jolt.JoltDefAttrs
|
+----bea.jolt.JoltDefinition
- public class JoltDefinition
- extends JoltDefAttrs
- implements Definition
This class represents the definition of a Jolt object which can be both
a service and an asynchronous message.
- See Also:
- JoltRemoteService, JoltMessage
-
JoltDefinition(String)
- This constructor takes a string definition and converts it
into an object.
-
JoltDefinition(String, String)
- This contstructor builds a new definition.
-
addParam(String, JoltParam, JoltParam)
- Add parameter to the hash table and the linked list.
-
getKeys()
- Enumerates the property keys.
-
getName()
- Get the name of the definition (e.g.
-
getParam(String)
- Get the parameter object for the name.
-
getParams()
- Enumerates the parameter list.
-
getProperty(String)
- Get a property element of the definition.
-
getType()
- Get the type of definition.
-
getTypeName()
- Get the key token to the repository.
-
getVersion()
- Get the version number of the definition.
-
numParams()
- Get the number of parameters in the definition.
-
putProperty(String, String)
- Put a property element for the definition.
-
toString()
- Build the definition string from this object.
JoltDefinition
public JoltDefinition(String name,
String typeName)
- This contstructor builds a new definition.
- Parameters:
- name - The service name
- typeName - The key to the repository.
JoltDefinition
public JoltDefinition(String svcdef) throws DefinitionException
- This constructor takes a string definition and converts it
into an object.
- Parameters:
- svcdef - The definition in a string.
- Throws: DefinitionException
- Maformed definition.
getName
public String getName()
- Get the name of the definition (e.g. the service name) for this
object.
- Returns:
- The definition name.
getVersion
public int getVersion()
- Get the version number of the definition.
- Returns:
- The definition version number.
getTypeName
public String getTypeName()
- Get the key token to the repository.
getType
public int getType()
- Get the type of definition.
- Returns:
- The type of the definition.
- See Also:
- SERVICE, QUEUE
numParams
public int numParams()
- Get the number of parameters in the definition.
- Returns:
- the number of parameters.
getParams
public Enumeration getParams()
- Enumerates the parameter list.
- Returns:
- Enumeration of the parameter.
getParam
public JoltParam getParam(String name) throws NoSuchFieldError
- Get the parameter object for the name.
- Parameters:
- name - the parameter name.
- Returns:
- the parameter object
- Throws: NoSuchFieldError
- This field doesn't exist.
getProperty
public String getProperty(String name)
- Get a property element of the definition.
- Parameters:
- name - the property name.
- Returns:
- the property value.
putProperty
public void putProperty(String name,
String val)
- Put a property element for the definition.
- Parameters:
- name - the property name.
- val - the property value.
getKeys
public Enumeration getKeys()
- Enumerates the property keys.
- Returns:
- the enumeration of the property keys.
toString
public String toString()
- Build the definition string from this object.
- Returns:
- The definition string.
- Overrides:
- toString in class Object
addParam
public JoltParam addParam(String nm,
JoltParam param,
JoltParam prev)
- Add parameter to the hash table and the linked list.
This method returns the current param which must be passed
back as the "prev" in the subsequent call. The very first
time to call this method, "prev" must be null.
- Parameters:
- nm - the name of the parameter
- param - the parameter object to be added
- prev - the previous parameter object
- Returns:
- The added parameter object.
All Packages Class Hierarchy This Package Previous Next Index