public class JoltParam extends JoltDefAttrs
JoltDefinition
,
JoltDefAttrs
Modifier and Type | Field and Description |
---|---|
static int |
NOACCESS
The numeric value for access type: NOACCESS
|
static int |
READONLY
The numeric value for access type: READONLY
|
static int |
READWRITE
The numeric value for access type: READWRITE
|
static int |
WRITEONLY
The numeric value for access type: WRITEONLY
|
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 |
---|
JoltParam() |
Modifier and Type | Method and Description |
---|---|
int |
accessType()
Get the access type that is relative to the service.
|
void |
addProperty(java.lang.String name,
java.lang.String val)
Add a parameter property as the name-value pair.
|
JoltDefinition |
getDefinition()
Get the nested definition
|
int |
getID()
Get the field ID of the parameter.
|
java.util.Enumeration |
getKeys()
Get an enumeration of the property keys.
|
int |
getMaxLength()
Get the max length defined.
|
int |
getMaxOccurrence()
Get the max occurrence defined.
|
java.lang.String |
getName()
Get the name of the parameter.
|
java.lang.String |
getProperty(java.lang.String name)
Get a property element of the named parameter.
|
int |
getType()
Get the data type.
|
java.lang.String |
getViewName()
Get the view name of the parameter if it is a nested view
|
boolean |
isMandatory()
Check if the parameter is a manadatory field.
|
java.lang.String |
toString()
Construct the string for the parameter beginning with "bp:"
and ending with "ep:".
|
getInteger
public static final int NOACCESS
public static final int READONLY
public static final int WRITEONLY
public static final int READWRITE
public java.lang.String getName()
public java.lang.String getViewName()
public JoltDefinition getDefinition()
public int getID()
SBuffer
public int accessType()
public int getType()
SBuffer
public boolean isMandatory()
public int getMaxOccurrence()
public int getMaxLength()
public java.lang.String getProperty(java.lang.String name)
name
- the name of the parameterpublic java.util.Enumeration getKeys()
Enumeration
public java.lang.String toString()
toString
in class java.lang.Object
public void addProperty(java.lang.String name, java.lang.String val) throws java.lang.NumberFormatException, DefinitionException
name
- Name of the parameterval
- Value of the parameterjava.lang.NumberFormatException
- If "pf" or "fi" does not contain
a parseable integer.DefinitionException
- If "pa" has an invalid value.