|
Oracle Fusion Middleware Oracle WebLogic Server API Reference 12c Release 1 (12.1.1) Part Number E24391-02 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object weblogic.wtc.jatmi.StandardTypes weblogic.wtc.jatmi.TypedFML
public final class TypedFML
This implements FML in JAVA as a TypedBuffer. Fieldids are generated with the tool mkfldclass, and then put into the buffer with the appropriate FML methods. Note that in this implementation Fieldids must be combined into a field key, which is a combination of the Fldid and the occurance number. Any number of field tables can be loaded into any FML object in order to do FldId to String conversions and String to FldId conversions.
FmlKey
,
FldTbl
,
TypedBuffer
,
FML
,
mkfldclass
,
Serialized FormField Summary |
---|
Fields inherited from class weblogic.wtc.jatmi.StandardTypes |
---|
CALLOUT_HINT, CARRAY_HINT, CMPS_HDR_HINT, COMPOS_HINT, FML_HINT, FML32_HINT, MBSTRING_HINT, MTTYP_HINT, PROP_HINT, ROUTE_HINT, RPCRP_HINT, RPCRQ_HINT, STRING_HINT, TDOM_VALS_HINT, TGIOP_HINT, TM_HINT, TPINITTYPE_HINT, TRAN_HINT, UNSOL_HINT, VIEW_HINT, VIEW32_HINT, WS_HINT, WSRPCRQ_HINT, X_C_TYPE_HINT, X_COMMON_HINT, X_OCTET_HINT, XML_HINT |
Fields inherited from interface weblogic.wtc.jatmi.FML |
---|
FLD_CARRAY, FLD_CHAR, FLD_DECIMAL, FLD_DOUBLE, FLD_FLOAT, FLD_FML32, FLD_INT, FLD_LONG, FLD_MBSTRING, FLD_PTR, FLD_SHORT, FLD_STRING, FLD_VIEW32 |
Constructor Summary | |
---|---|
TypedFML()
Default constructor. |
|
TypedFML(FldTbl table)
Constructor which provides a single FldTbl object for mapping FldIds to Strings and Strings to FldIds Note that it is not necesary to provide FldTbls unless String/FldId mappings are required. |
|
TypedFML(FldTbl[] tables)
Constructor which provides a list FldTbl objects for mapping FldIds to Strings and Strings to FldIds. |
|
TypedFML(TypedFML copyFrom)
This constructor copies the fields from the input FML buffer. |
Method Summary | |
---|---|
void |
_tmpostrecv(DataInputStream decoder,
int recv_size)
XDR decodes the FML buffer |
void |
_tmpostrecv65(DataInputStream decoder)
XDR decodes the FML buffer |
void |
_tmpresend(DataOutputStream encoder)
This function presends and encodes the given TypedBuffer object. |
void |
Fadd(int fldid,
Object value)
Adds the given object. |
void |
Fchg(FmlKey key,
Object value)
Adds the given object, whose field id is contained in key to the fielded buffer. |
void |
Fchg(int fldid,
int occurance,
Object value)
Adds the given object. |
void |
Fdel(FmlKey key)
Delete given key from fielded buffer. |
void |
Fdel(int fldid,
int occurance)
Delete given element from fielded buffer. |
Object |
Fget(FmlKey key)
Retrieves a copy of the object stored in the FML buffer of the given field id and occurance number. |
Object |
Fget(int fldid,
int occurance)
Retrieves a copy of the object stored in the FML buffer of the given field id and occurance number. |
Iterator |
Fiterator()
Returns an iterator for the start of the fielded FML buffer. |
int |
Fldid(String name)
Returns the field id corresponding to the given name. |
int |
Fldno(int fldid)
Given a fieldid, this returns the field number |
int |
Fldtype(int fldid)
Given a fieldid, this returns the field type |
String |
Fname(int fldid)
Returns the string that matches the given fieldid. |
int |
Foccur(int fldid)
Returns the number of occurences of the field specified by fldid |
int |
Fused()
Returns the amount of space that this FML buffer will take when present |
FldTbl[] |
getFieldTables()
gets the current list of FldTbls that are being used by this TypedFML object to do FldId/String mappings. |
void |
setFieldTables(FldTbl[] tables)
This function sets the list of FldTbl objects that can be used for FldId/String mappings |
Methods inherited from class weblogic.wtc.jatmi.StandardTypes |
---|
getHintIndex, getSubtype, getType, hint_to_type |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface weblogic.wtc.jatmi.TypedBuffer |
---|
getHintIndex, getSubtype, getType |
Constructor Detail |
---|
public TypedFML()
public TypedFML(FldTbl[] tables)
tables
- A list of FldTbl objects that can be used to map FldIds
and stringspublic TypedFML(FldTbl table)
table
- A FldTbl object that can be used to map FldIds
and stringspublic TypedFML(TypedFML copyFrom)
copyFrom
- The FML buffer to copy data fromMethod Detail |
---|
public void setFieldTables(FldTbl[] tables)
setFieldTables
in interface FML
tables
- The list of tables to use for FldId/String mappingsFldTbl
public FldTbl[] getFieldTables()
getFieldTables
in interface FML
public int Fldno(int fldid)
Fldno
in interface FML
fldid
- The field id from which to extract the field number
public int Fldtype(int fldid)
Fldtype
in interface FML
fldid
- The field id from which to extract the field type
public void Fchg(FmlKey key, Object value) throws Ferror
Fchg
in interface FML
key
- The fieldid and occurance to add to the buffervalue
- The element to add to the buffer. Note that this object
must match the type of object expected by the field type, or an
invalid cast exception will be thrown
Ferror
- usually if space is lowFmlKey
public void Fchg(int fldid, int occurance, Object value) throws Ferror
Fchg
in interface FML
fldid
- The fieldid to add to this bufferoccurance
- The occurance number of the field to addvalue
- The element to add to the buffer. Note that this object
must match the type of object expected by the field type, or an
invalid cast exception will be thrown
Ferror
- usually if space is lowFmlKey
public void Fadd(int fldid, Object value) throws Ferror
fldid
- The fieldid to add to this buffervalue
- The element to add to the buffer. Note that this object
must match the type of object expected by the field type, or an
invalid cast exception will be thrown
Ferror
- usually if space is lowFmlKey
public Object Fget(FmlKey key) throws Ferror
Fget
in interface FML
key
- the field id and occurance number of the element to retrieve
Ferror
- if the object is not found in the buffer among other reasonspublic Object Fget(int fldid, int occurance) throws Ferror
Fget
in interface FML
fldid
- The field id of the element to retrieveoccurance
- The occurance number of the element to retrieve
Ferror
- if the object is not found in the buffer among other reasonspublic Iterator Fiterator()
Fiterator
in interface FML
public int Foccur(int fldid)
Foccur
in interface FML
fldid
- the field id to look for in the fielded FML buffer
public void Fdel(FmlKey key) throws Ferror
Fdel
in interface FML
key
- The field id and occurance of the element to be removed
Ferror
- if the element is not in the buffer among other reasonspublic void Fdel(int fldid, int occurance) throws Ferror
Fdel
in interface FML
fldid
- The field id of the element to be removedoccurance
- The occurance of the element to be removed
Ferror
- if the element is not in the buffer among other reasonspublic String Fname(int fldid) throws Ferror
Fname
in interface FML
fldid
- The field id to map to a string
Ferror
- if the name cannot be foundpublic int Fldid(String name) throws Ferror
Fldid
in interface FML
name
- the name of the field we are trying to find
integer
field id
Ferror
- if the field id cannot be foundpublic int Fused()
Fused
in interface FML
public void _tmpresend(DataOutputStream encoder) throws TPException, IOException
XDR encodes the FML buffer
_tmpresend
in interface TypedBuffer
encoder
- The output stream to encode this type to. Should
not be padded.
TPException
- IOException
- If there was an error writing to the
DataOutputStreampublic void _tmpostrecv(DataInputStream decoder, int recv_size) throws TPException, IOException
_tmpostrecv
in interface TypedBuffer
decoder
- A stream that starts with the encoded data
for this buffer type. Only recv_size bytes should
be read from the stream (though at the time this function
is called all bytes necessary to decode this type should
be available)recv_size
- The total size of encoded data from the
start position (note that encoded may be larger than
the actual received size)
TPException
- TPEINVAL if this stream could not be
decoded for any reason
IOException
- if there was an error reading from the streampublic void _tmpostrecv65(DataInputStream decoder) throws IOException, TPException
decoder
- The object to use to decode this buffer
TPException
- TPEINVAL if this stream could not be
decoded for any reason
IOException
- if there was an IO Error reading the FML buffer
|
Copyright 1996, 2011, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Oracle Fusion Middleware Oracle WebLogic Server API Reference 12c Release 1 (12.1.1) Part Number E24391-02 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |