Package gda.data.metadata
Class NXMetaDataProvider
java.lang.Object
gda.factory.FindableBase
gda.data.metadata.NXMetaDataProvider
- All Implemented Interfaces:
NexusTreeAppender,Findable,Map<String,Object>
public class NXMetaDataProvider
extends FindableBase
implements NexusTreeAppender, Map<String,Object>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordA simple record to store a value together with its associated units. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(gda.data.metadata.MetaDataUserSuppliedItem userSupplied) Deprecated, for removal: This API element is subject to removal in a future version.voidvoidvoidvoidappendToTopNode(INexusTree topNode) voidclear()Deprecated.voidRemoves all scannables added with NXMetaDataProvider.add(..).concatenateContentsForList(boolean withValues, String preamble, String lsNextItemSeparator, String llMidConnector, String llNextItemSeparator) Deprecated, for removal: This API element is subject to removal in a future version.booleancontainsKey(Object key) Deprecated.booleancontainsValue(Object value) Deprecated.createChildNodeForMetaTextEntry(String name, String nxClass, INexusTree parentNode, NexusGroupData groupData) Deprecated, for removal: This API element is subject to removal in a future version.createChildNodeForScannableMetaEntry(Scannable scannable, INexusTree parentNode, Map<String, Object> scannableMap) Deprecated, for removal: This API element is subject to removal in a future version.createChildNodeForTextualMetaEntry(INexusTree parentNode, String name, Object value, String units) Deprecated, for removal: This API element is subject to removal in a future version.createMetaScannableMap(Scannable scannable) Deprecated, for removal: This API element is subject to removal in a future version.createNexusGroupData(Object object) Deprecated.createNexusGroupDataInternal(Object object) entrySet()Deprecated.booleanDeprecated.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.getName()Get the object name.Deprecated, for removal: This API element is subject to removal in a future version.getScannableExtraNames(Scannable scannable) Deprecated.getScannableFieldNames(Scannable scannable) Deprecated.getScannableInputNames(Scannable scannable) Deprecated.static StringgetScannableUnit(Scannable scannable) booleanhasGenuineMultipleFieldNames(Scannable scannable) inthashCode()booleanisEmpty()Deprecated.keySet()Deprecated.list(boolean withValues) listAsString(String format, String delimiter) voidmodifyFormattingMap(Map<String, String> modificationsMap) Deprecated, for removal: This API element is subject to removal in a future version.the map (formattingMap) that we modified here was never read.Deprecated.voidvoidDeprecated.voidvoidreset()Object[]separateGetPositionOutputIntoElementalPosObjects(Object scannableGetPositionOut) Deprecated, for removal: This API element is subject to removal in a future version.voidsetFieldItemSeparator(String fieldItemSeparator) Deprecated, for removal: This API element is subject to removal in a future version.voidsetFloatArrayFormat(String llFloatArrayFormat) Deprecated, for removal: This API element is subject to removal in a future version.voidsetGroupItemSeparator(String groupItemSeparator) Deprecated, for removal: This API element is subject to removal in a future version.voidsetIntArrayFormat(String llIntArrayFormat) Deprecated, for removal: This API element is subject to removal in a future version.voidsetLlArrayClose(String llArrayClose) Deprecated, for removal: This API element is subject to removal in a future version.voidsetLlArrayItemSeparator(String llArrayItemSeparator) Deprecated, for removal: This API element is subject to removal in a future version.voidsetLlArrayOpen(String llArrayOpen) Deprecated, for removal: This API element is subject to removal in a future version.voidsetLlMidConnector(String llMidConnector) Deprecated, for removal: This API element is subject to removal in a future version.voidsetLlNextItemSeparator(String llNextItemSeparator) Deprecated, for removal: This API element is subject to removal in a future version.voidsetLlUnitsSeparator(String llUnitsSeparator) Deprecated, for removal: This API element is subject to removal in a future version.voidsetLsNextItemSeparator(String lsNextItemSeparator) Deprecated, for removal: This API element is subject to removal in a future version.voidsetMetaScannables(List<Scannable> metaScannables) voidsetMetaTexts(Map<String, String> metaTexts) voidsetPreamble(String preamble) Deprecated, for removal: This API element is subject to removal in a future version.intsize()Deprecated.values()Deprecated.Methods inherited from class gda.factory.FindableBase
setNameMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Constructor Details
-
NXMetaDataProvider
public NXMetaDataProvider()
-
-
Method Details
-
setGroupItemSeparator
@Deprecated(since="GDA 9.30", forRemoval=true) public void setGroupItemSeparator(String groupItemSeparator) Deprecated, for removal: This API element is subject to removal in a future version. -
getGroupItemSeparator
Deprecated, for removal: This API element is subject to removal in a future version. -
setFieldItemSeparator
@Deprecated(since="GDA 9.30", forRemoval=true) public void setFieldItemSeparator(String fieldItemSeparator) Deprecated, for removal: This API element is subject to removal in a future version. -
getFieldItemSeparator
Deprecated, for removal: This API element is subject to removal in a future version. -
setPreamble
Deprecated, for removal: This API element is subject to removal in a future version. -
getPreamble
Deprecated, for removal: This API element is subject to removal in a future version. -
setLsNextItemSeparator
@Deprecated(since="GDA 9.30", forRemoval=true) public void setLsNextItemSeparator(String lsNextItemSeparator) Deprecated, for removal: This API element is subject to removal in a future version. -
getLsNextItemSeparator
Deprecated, for removal: This API element is subject to removal in a future version. -
setLlNextItemSeparator
@Deprecated(since="GDA 9.30", forRemoval=true) public void setLlNextItemSeparator(String llNextItemSeparator) Deprecated, for removal: This API element is subject to removal in a future version. -
getLlNextItemSeparator
Deprecated, for removal: This API element is subject to removal in a future version. -
setLlMidConnector
Deprecated, for removal: This API element is subject to removal in a future version. -
setLlUnitsSeparator
@Deprecated(since="GDA 9.30", forRemoval=true) public void setLlUnitsSeparator(String llUnitsSeparator) Deprecated, for removal: This API element is subject to removal in a future version. -
getLlUnitsSeparator
Deprecated, for removal: This API element is subject to removal in a future version. -
setLlArrayOpen
Deprecated, for removal: This API element is subject to removal in a future version. -
getLlArrayOpen
Deprecated, for removal: This API element is subject to removal in a future version. -
setLlArrayClose
Deprecated, for removal: This API element is subject to removal in a future version. -
getLlArrayClose
Deprecated, for removal: This API element is subject to removal in a future version. -
setLlArrayItemSeparator
@Deprecated(since="GDA 9.30", forRemoval=true) public void setLlArrayItemSeparator(String llArrayItemSeparator) Deprecated, for removal: This API element is subject to removal in a future version. -
getLlArrayItemSeparator
Deprecated, for removal: This API element is subject to removal in a future version. -
setFloatArrayFormat
@Deprecated(since="GDA 9.30", forRemoval=true) public void setFloatArrayFormat(String llFloatArrayFormat) Deprecated, for removal: This API element is subject to removal in a future version. -
getFloatArrayFormat
Deprecated, for removal: This API element is subject to removal in a future version. -
setIntArrayFormat
@Deprecated(since="GDA 9.30", forRemoval=true) public void setIntArrayFormat(String llIntArrayFormat) Deprecated, for removal: This API element is subject to removal in a future version. -
getIntArrayFormat
Deprecated, for removal: This API element is subject to removal in a future version. -
appendToTopNode
- Specified by:
appendToTopNodein interfaceNexusTreeAppender
-
reset
public void reset() -
clearDynamicScannableMetadata
public void clearDynamicScannableMetadata()Removes all scannables added with NXMetaDataProvider.add(..). Does not restore anything that was removed or overwritten. -
listAsString
-
setMetaTexts
-
getMetaTexts
Deprecated, for removal: This API element is subject to removal in a future version. -
getMetadataValuesAndUnits
-
add
-
add
@Deprecated(forRemoval=true, since="GDA 9.30") public void add(gda.data.metadata.MetaDataUserSuppliedItem userSupplied) Deprecated, for removal: This API element is subject to removal in a future version. -
size
Deprecated. -
isEmpty
Deprecated. -
containsKey
Deprecated.- Specified by:
containsKeyin interfaceMap<String,Object>
-
containsValue
Deprecated.- Specified by:
containsValuein interfaceMap<String,Object>
-
get
Deprecated. -
put
Deprecated. -
remove
Deprecated. -
putAll
-
clear
Deprecated. -
keySet
Deprecated. -
values
Deprecated. -
entrySet
Deprecated. -
equals
-
hashCode
public int hashCode() -
setMetaScannables
-
getMetaScannables
-
list
-
concatenateContentsForList
@Deprecated(forRemoval=true, since="GDA 9.30") public String concatenateContentsForList(boolean withValues, String preamble, String lsNextItemSeparator, String llMidConnector, String llNextItemSeparator) Deprecated, for removal: This API element is subject to removal in a future version.client code should not call this method directly, instead calllist(boolean) -
add
-
add
-
remove
-
remove
-
createMetaScannableMap
@Deprecated(forRemoval=true, since="GDA 9.30") public Map<String,Object> createMetaScannableMap(Scannable scannable) throws DeviceException Deprecated, for removal: This API element is subject to removal in a future version.- Throws:
DeviceException
-
getName
Description copied from interface:FindableGet the object name. Used by Castor to check if the object name has been set before calling theFindable.setName(String)method.- Specified by:
getNamein interfaceFindable- Overrides:
getNamein classFindableBase- Returns:
- a String containing the object name.
-
getScannableFieldNames
@Deprecated(forRemoval=false, since="GDA 9.30") public List<String> getScannableFieldNames(Scannable scannable) Deprecated. -
getScannableInputNames
@Deprecated(forRemoval=false, since="GDA 9.30") public List<String> getScannableInputNames(Scannable scannable) Deprecated. -
getScannableExtraNames
@Deprecated(forRemoval=false, since="GDA 9.30") public List<String> getScannableExtraNames(Scannable scannable) Deprecated. -
createChildNodeForTextualMetaEntry
@Deprecated(forRemoval=true, since="GDA 9.30") public INexusTree createChildNodeForTextualMetaEntry(INexusTree parentNode, String name, Object value, String units) Deprecated, for removal: This API element is subject to removal in a future version. -
createChildNodeForScannableMetaEntry
@Deprecated(forRemoval=true, since="GDA 9.30") public INexusTree createChildNodeForScannableMetaEntry(Scannable scannable, INexusTree parentNode, Map<String, Object> scannableMap) Deprecated, for removal: This API element is subject to removal in a future version. -
hasGenuineMultipleFieldNames
-
createNexusGroupData
@Deprecated(forRemoval=false, since="GDA 9.30") public NexusGroupData createNexusGroupData(Object object) Deprecated. -
createNexusGroupDataInternal
-
separateGetPositionOutputIntoElementalPosObjects
@Deprecated(forRemoval=true, since="GDA 9.30") public Object[] separateGetPositionOutputIntoElementalPosObjects(Object scannableGetPositionOut) Deprecated, for removal: This API element is subject to removal in a future version. -
getScannableUnit
- Throws:
DeviceException
-
createChildNodeForMetaTextEntry
@Deprecated(forRemoval=true, since="GDA 9.30") public INexusTree createChildNodeForMetaTextEntry(String name, String nxClass, INexusTree parentNode, NexusGroupData groupData) Deprecated, for removal: This API element is subject to removal in a future version. -
modifyFormattingMap
@Deprecated(forRemoval=true, since="GDA 9.30") public void modifyFormattingMap(Map<String, String> modificationsMap) Deprecated, for removal: This API element is subject to removal in a future version.the map (formattingMap) that we modified here was never read. It has been deleted.- Parameters:
modificationsMap-
-
list(boolean)