Package de.elo.ix.jscript.handler
Interface ISordUtilHandler
public interface ISordUtilHandler
Internally used interface. Class SordUtil forwards method calls to an implementation of this
interface. The implementation is only available when we are running as a IX event script or
plugin.
-
Method Summary
Modifier and TypeMethodDescriptionString[][]
getAllObjKeyData
(Sord sord, String groupName) Return all values of all index fields with the given group name.getIndexValues
(Sord sord, String assocName, String lineKey) Helper function to easily extract index values from a sord's aspect objects.
It collects for a given aspect association (which can have cardinality MANY) all index values corresponding to the given key of an aspect line.String[]
getObjKeyData
(Sord sord, String groupName) Returns the keywording data by given group name within a Sord-Object.getObjKeyValue
(Sord sord, String groupName) Returns the first value of keywording data by given group name within a Sord-Object.getSingleIndexValue
(Sord sord, String assocName, String lineKey, int ordinal) Helper function to easily extract a single index value from sord's aspect objects.
It extracts a particular IndexValue object from the given sord for a given aspect association (which can have cardinality MANY), a given key of an aspect line and a given ordinal value.void
setObjKeyData
(Sord sord, String groupName, Object val) Sets the ObjKey data in a Sord by a given groupname
-
Method Details
-
getObjKeyData
Returns the keywording data by given group name within a Sord-Object. WARNING: group name must be explicit within the mask otherwise the result might be false.- Parameters:
sord
- SordgroupName
- Index value group name- Returns:
- Values
-
getObjKeyValue
Returns the first value of keywording data by given group name within a Sord-Object. WARNING: group name must be explicit within the mask otherwise the result might be false.- Parameters:
sord
- SordgroupName
- Index value group name- Returns:
- First value
-
setObjKeyData
Sets the ObjKey data in a Sord by a given groupname- Parameters:
sord
- SordgroupName
- Index value group nameval
- as String or String[]
-
getAllObjKeyData
Return all values of all index fields with the given group name.- Parameters:
groupName
- Index value group name- Returns:
- contents of DocMaskLines
-
getSingleIndexValue
Helper function to easily extract a single index value from sord's aspect objects.
It extracts a particular IndexValue object from the given sord for a given aspect association (which can have cardinality MANY), a given key of an aspect line and a given ordinal value.- Parameters:
sord
- The sord to extract an index value from.assocName
- The name of an aspect association for which an index value shall be extractedlineKey
- The lineKey of the aspect line for which an index value shall be extractedordinal
- The ordinal value (usually 0) which can be greater than 0 if the given aspect association has cardinality MANY- Returns:
- An IndexValue object. Returns null if the sord does not provide aspect objects at all or does not provide aspect objects for the given parameters.
-
getIndexValues
Helper function to easily extract index values from a sord's aspect objects.
It collects for a given aspect association (which can have cardinality MANY) all index values corresponding to the given key of an aspect line.- Parameters:
sord
- The sord to extract index values from.assocName
- The name of an aspect association for which index values shall be collectedlineKey
- The lineKey of the aspect line for which index values shall be collected- Returns:
- A List of IndexValue objects. Returns null if the sord does not provide aspect objects at all or does not provide aspect objects for the given aspect association.
-