public class JoltDefinition extends JoltDefAttrs
JoltRemoteService
,
JoltMessage
AVLIST, BINARY, BOE, BOOLEAN, BOP, BYTE, CONVERSATION, DOUBLE, EOE, EOP, EVENT, FLOAT, IBUFTYPE, INTEGER, IVIEWNAME, LONG, MANDATORY, NOACC, OBUFTYPE, OPTIONAL, OVIEWNAME, PARMACC, PARMDESC, PARMFID, PARMFINDEX, PARMFNAME, PARMLEN, PARMNAME, PARMOCC, PARMSTATUS, PARMSUBTYPE, PARMTYPE, QSPACE, QUEUE, RDONLY, RDWR, SERVICE, SHORT, STRING, VERSION, VIEW32, WRONLY
Constructor and Description |
---|
JoltDefinition(java.lang.String svcdef)
This constructor takes a string definition and converts it
into an object.
|
JoltDefinition(java.lang.String name,
java.lang.String typeName)
This contstructor builds a new definition.
|
Modifier and Type | Method and Description |
---|---|
JoltParam |
addParam(java.lang.String nm,
JoltParam param,
JoltParam prev)
Add parameter to the hash table and the linked list.
|
java.util.Enumeration |
getKeys()
Enumerates the property keys.
|
java.lang.String |
getName()
Get the name of the definition (e.g.
|
JoltParam |
getParam(java.lang.String name)
Get the parameter object for the name.
|
java.util.Enumeration |
getParams()
Enumerates the parameter list.
|
java.lang.String |
getProperty(java.lang.String name)
Get a property element of the definition.
|
int |
getType()
Get the type of definition.
|
java.lang.String |
getTypeName()
Get the key token to the repository.
|
int |
getVersion()
Get the version number of the definition.
|
int |
numParams()
Get the number of parameters in the hash (which excludes duplicate
parameter definitions).
|
int |
numParamsInList()
Get the number of parameters in the list (which includes duplicate
parameter definitions).
|
void |
putProperty(java.lang.String name,
java.lang.String val)
Put a property element for the definition.
|
java.lang.String |
toString()
Build the definition string from this object.
|
getInteger
public JoltDefinition(java.lang.String name, java.lang.String typeName)
name
- The service nametypeName
- The key to the repository.public JoltDefinition(java.lang.String svcdef) throws DefinitionException
svcdef
- The definition in a string.DefinitionException
- Malformed definition.public java.lang.String getName()
public int getVersion()
public java.lang.String getTypeName()
public int getType()
Request.SERVICE
,
Request.QUEUE
public int numParams()
public int numParamsInList()
public java.util.Enumeration getParams()
public JoltParam getParam(java.lang.String name) throws java.lang.NoSuchFieldError
name
- the parameter name.java.lang.NoSuchFieldError
- This field does not exist.public java.lang.String getProperty(java.lang.String name)
name
- the property name.public void putProperty(java.lang.String name, java.lang.String val)
name
- the property name.val
- the property value.public java.util.Enumeration getKeys()
public java.lang.String toString()
toString
in class java.lang.Object
public JoltParam addParam(java.lang.String nm, JoltParam param, JoltParam prev)
nm
- the name of the parameterparam
- the parameter object to be addedprev
- the previous parameter object