Package de.elo.ix.jscript
Class SordUtil
java.lang.Object
de.elo.ix.jscript.SordUtil
-
Constructor Summary
ConstructorsConstructorDescriptionSordUtil()
SordUtil
(ISordUtilHandler handler) Deprecated.Do not use this internal constructor. -
Method Summary
Modifier and TypeMethodDescriptionString[][]
getAllObjKeyData
(Sord sord, String groupName) Return all contents of all DocMaskLines with the same group name as list of arrays.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
-
Constructor Details
-
SordUtil
public SordUtil() -
SordUtil
Deprecated.Do not use this internal constructor.Internally used constructor.- Parameters:
handler
- Function calls are delegated to this object.
-
-
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
- Sord objectgroupName
- Group name of keywording line- Returns:
- content of DocMaskLine
-
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
- Sord objectgroupName
- Group name of keywording line- Returns:
- content of DocMaskLine
-
setObjKeyData
Sets the ObjKey data in a Sord by a given groupname- Parameters:
sord
- Sord objectgroupName
- Group name of keywording lineval
- as String or String[]
-
getAllObjKeyData
Return all contents of all DocMaskLines with the same group name as list of arrays.- Parameters:
sord
- Sord objectgroupName
- Group name of keywording line- 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.
-