本文整理了Java中com.thomsonreuters.ema.access.Key.ascii()
方法的一些代码示例,展示了Key.ascii()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Key.ascii()
方法的具体详情如下:
包路径:com.thomsonreuters.ema.access.Key
类名称:Key
方法名:ascii
[英]Returns the current OMM data represented as a specific simple type.
[中]返回表示为特定简单类型的当前OMM数据。
代码示例来源:origin: Refinitiv/Elektron-SDK
if ( mapEntry.key().ascii().ascii().equals("ConsumerGroup") )
break;
else if ( mapEntry.key().ascii().ascii().equals("NiProviderGroup") )
break;
else if (mapEntry.key().ascii().ascii().equals("IProviderGroup") )
代码示例来源:origin: Refinitiv/Elektron-SDK
void retrieveServer(Map map, String serverName,
ActiveServerConfig activeServerConfig, int portFnCalled, ServerConfig fileCfg)
{
for (MapEntry mapEntry : map)
{
if (mapEntry.key().dataType() == DataTypes.ASCII &&
mapEntry.key().ascii().ascii().equals("ServerGroup") &&
mapEntry.loadType() == DataTypes.ELEMENT_LIST)
{
for (ElementEntry elementEntry : mapEntry.elementList())
{
if (elementEntry.loadType() == DataTypes.MAP && elementEntry.name().equals("ServerList"))
{
for (MapEntry mapListEntry : elementEntry.map())
{
if ((mapListEntry.key().dataType() == DataTypes.ASCII) &&
mapListEntry.key().ascii().ascii().equals(serverName) &&
mapListEntry.loadType() == DataTypes.ELEMENT_LIST)
{
retrieveServerInfo(mapListEntry, serverName, activeServerConfig, portFnCalled, fileCfg);
}
}
}
}
}
}
}
代码示例来源:origin: Refinitiv/Elektron-SDK
boolean validateConsumerProviderName( Map map, String group, String listName, String conProvName )
{
for (MapEntry mapEntry : map)
{
if ( ( mapEntry.key().dataType() == DataTypes.ASCII ) && ( mapEntry.key().ascii().ascii().equals(group) ) &&
( mapEntry.load().dataType() == DataTypes.ELEMENT_LIST ) )
{
ElementList elementList = mapEntry.elementList();
for (ElementEntry elementEntry : elementList)
{
if ( ( elementEntry.name().equals( listName) ) && ( elementEntry.load().dataType() == DataTypes.MAP ) )
{
Map consumerMap = elementEntry.map();
for (MapEntry consumerMapEntry : consumerMap)
{
if ( ( consumerMapEntry.key().dataType() == DataTypes.ASCII ) && ( consumerMapEntry.key().ascii().ascii().equals(conProvName)) )
return true;
}
}
}
}
}
return false;
}
代码示例来源:origin: Refinitiv/Elektron-SDK
void retrieveChannel( Map map, String channelName, ActiveConfig activeConfig, int hostFnCalled, ChannelConfig fileCfg)
{
for (MapEntry mapEntry : map)
{
if ( mapEntry.key().dataType() == DataTypes.ASCII &&
mapEntry.key().ascii().ascii().equals("ChannelGroup") &&
mapEntry.loadType() == DataTypes.ELEMENT_LIST )
{
for (ElementEntry elementEntry : mapEntry.elementList())
{
if ( elementEntry.loadType() == DataTypes.MAP && elementEntry.name().equals("ChannelList"))
{
for (MapEntry mapListEntry : elementEntry.map())
{
if ( mapListEntry.key().dataType() == DataTypes.ASCII &&
mapListEntry.key().ascii().ascii().equals(channelName) &&
mapListEntry.loadType() == DataTypes.ELEMENT_LIST )
{
retrieveChannelInfo( mapListEntry, channelName, activeConfig, hostFnCalled, fileCfg);
}
}
}
}
}
}
}
代码示例来源:origin: Refinitiv/Elektron-SDK
break;
case DataTypes.ASCII :
System.out.println(mapEntry.key().ascii() + "\t" + mapEntry.mapActionAsString());
break;
case DataTypes.RMTES :
代码示例来源:origin: Refinitiv/Elektron-SDK
String retrieveDefaultConsProvName( Map map, String group, String defaulName )
{
for (MapEntry mapEntry : map)
{
if ( ( mapEntry.key().dataType() == DataTypes.ASCII ) && ( mapEntry.key().ascii().ascii().equals(group) ) &&
( mapEntry.load().dataType() == DataTypes.ELEMENT_LIST ) )
{
ElementList elementList = mapEntry.elementList();
for (ElementEntry elementEntry : elementList)
{
if ( elementEntry.loadType() == DataTypes.ASCII )
{
if ( elementEntry.name().equals( defaulName) )
{
return elementEntry.ascii().ascii();
}
}
}
}
}
return null;
}
代码示例来源:origin: Refinitiv/Elektron-SDK
mapEntry.key().ascii().ascii().equals("ChannelGroup") &&
mapEntry.loadType() == DataTypes.ELEMENT_LIST )
mapListEntry.key().ascii().ascii().equals(channelName) &&
mapListEntry.loadType() == DataTypes.ELEMENT_LIST )
代码示例来源:origin: Refinitiv/Elektron-SDK
mapEntry.key().ascii().ascii().equals("DictionaryGroup") &&
mapEntry.loadType() == DataTypes.ELEMENT_LIST)
dictConfig.dictionaryName = dictMapEntry.key().ascii().ascii();
代码示例来源:origin: Refinitiv/Elektron-SDK
if ( mapEntry.key().dataType() == DataTypes.ASCII && mapEntry.key().ascii().ascii().equals(_group) )
mapListEntry.key().ascii().ascii().equals(userName) &&
mapEntry.loadType() == DataTypes.ELEMENT_LIST )
代码示例来源:origin: Refinitiv/Elektron-SDK
if (mapEntry.key().ascii().ascii().equals("ConsumerGroup") )
mapListEntry.key().ascii().ascii().equals(instanceName) &&
mapListEntry.loadType() == DataTypes.ELEMENT_LIST )
else if ( mapEntry.key().ascii().ascii().equals("NiProviderGroup") )
mapListEntry.key().ascii().ascii().equals(instanceName) &&
mapListEntry.loadType() == DataTypes.ELEMENT_LIST )
else if ( mapEntry.key().ascii().ascii().equals("IProviderGroup") )
if ( ( mapListEntry.key().dataType() == DataTypes.ASCII ) && ( mapListEntry.key().ascii().ascii().equals(instanceName) ) )
代码示例来源:origin: Refinitiv/Elektron-SDK
if ( mapEntry.key().dataType() == DataTypes.ASCII && mapEntry.key().ascii().ascii().equals("DictionaryGroup") )
if ( ( mapListEntry.key().dataType() == DataTypes.ASCII ) && ( mapListEntry.key().ascii().ascii().equals(dictionaryName) ) )
代码示例来源:origin: Refinitiv/Elektron-SDK
( mapEntry.key().ascii().ascii().equals("ConsumerGroup") || mapEntry.key().ascii().ascii().equals("NiProviderGroup")) &&
mapEntry.loadType() == DataTypes.ELEMENT_LIST )
instanceMapEntry.key().ascii().ascii().equals(instanceName ) &&
instanceMapEntry.loadType() == DataTypes.ELEMENT_LIST )
mapEntry.key().ascii().ascii().equals("IProviderGroup") && mapEntry.loadType() == DataTypes.ELEMENT_LIST)
instanceMapEntry.key().ascii().ascii().equals(instanceName ) &&
instanceMapEntry.loadType() == DataTypes.ELEMENT_LIST )
代码示例来源:origin: Refinitiv/Elektron-SDK
mapEntry.key().ascii().ascii().equals("DirectoryGroup") &&
mapEntry.loadType() == DataTypes.ELEMENT_LIST)
dirListMapEntry.key().ascii().ascii().equals(directoryName) &&
dirListMapEntry.loadType() == DataTypes.MAP)
_dictUsed.clear();
String serviceName = eachServiceEntry.key().ascii().ascii();
origServiceIdInteger = dirServiceStore.serviceId(serviceName);
Service service = null;
代码示例来源:origin: Refinitiv/Elektron-SDK
TestUtilities.checkResult( mapEntry.key().ascii().ascii().equals("Key1"), "Check the key value of the first Map entry" );
TestUtilities.checkResult( mapEntry.action() == MapEntry.MapAction.ADD, "Check the key action of the first Map entry" );
代码示例来源:origin: Refinitiv/Elektron-SDK
com.thomsonreuters.ema.access.MapEntry me1 = mapIter.next();
TestUtilities.checkResult(me1.key().dataType(), DataType.DataTypes.ASCII);
TestUtilities.checkResult(me1.key().ascii().toString(), "keyData1");
TestUtilities.checkResult(me1.action(), MapEntry.MapAction.UPDATE);
TestUtilities.checkResult(me1.load().dataType(), DataType.DataTypes.FIELD_LIST);
me1 = mapIter.next();
TestUtilities.checkResult(me1.key().dataType(), DataType.DataTypes.ASCII);
TestUtilities.checkResult(me1.key().ascii().toString(), "keyData1");
TestUtilities.checkResult(me1.action(), MapEntry.MapAction.UPDATE);
TestUtilities.checkResult(me1.load().dataType(), DataType.DataTypes.FIELD_LIST);
com.thomsonreuters.ema.access.MapEntry me2 = mapIter.next();
TestUtilities.checkResult(me2.key().dataType(), DataType.DataTypes.ASCII);
TestUtilities.checkResult(me2.key().ascii().toString(), "keyData2");
TestUtilities.checkResult(me2.action(), MapEntry.MapAction.ADD);
TestUtilities.checkResult(me2.load().dataType(), DataType.DataTypes.FIELD_LIST);
com.thomsonreuters.ema.access.MapEntry me3 = mapIter.next();
TestUtilities.checkResult(me3.key().dataType(), DataType.DataTypes.ASCII);
TestUtilities.checkResult(me3.key().ascii().toString(), "keyData3");
TestUtilities.checkResult(me3.action(), MapEntry.MapAction.DELETE);
TestUtilities.checkResult(me3.load().dataType(), DataType.DataTypes.NO_DATA);
代码示例来源:origin: Refinitiv/Elektron-SDK
TestUtilities.checkResult( mapEntryA.key().ascii().ascii().equals("ITEM1"), "Check the key value of the first map entry");
TestUtilities.checkResult( mapEntryA.action() == MapEntry.MapAction.ADD, "Check the action of the first map entry");
TestUtilities.checkResult( mapEntryA.loadType() == DataTypes.NO_DATA, "Check the load type of the first map entry");
TestUtilities.checkResult( mapEntryA.hasPermissionData() == false, "Check wheter the first map entry has permission data");
MapEntry mapEntryB = mapIt.next();
TestUtilities.checkResult( mapEntryB.key().ascii().ascii().equals("ITEM2"), "Check the key value of the second map entry");
TestUtilities.checkResult( mapEntryB.action() == MapEntry.MapAction.UPDATE, "Check the action of the second map entry");
TestUtilities.checkResult( mapEntryB.loadType() == DataTypes.NO_DATA, "Check the load type of the second map entry");
TestUtilities.checkResult( mapEntryB.permissionData().equals(permissionData), "Compare the permission data of the second map entry");
MapEntry mapEntryC = mapIt.next();
TestUtilities.checkResult( mapEntryC.key().ascii().ascii().equals("ITEM3"), "Check the key value of the third map entry");
TestUtilities.checkResult( mapEntryC.action() == MapEntry.MapAction.DELETE, "Check the action of the third map entry");
TestUtilities.checkResult( mapEntryC.loadType() == DataTypes.NO_DATA, "Check the load type of the third map entry");
代码示例来源:origin: Refinitiv/Elektron-SDK
System.out.println("Action = " + mapEntry.mapActionAsString() + ", key = " + mapEntry.key().ascii());
break;
case DataTypes.BUFFER :
代码示例来源:origin: Refinitiv/Elektron-SDK
TestUtilities.checkResult( mapEntry.key().ascii().ascii().equals("Key1"), "Check the key value of the first Map entry" );
TestUtilities.checkResult( mapEntry.action() == MapEntry.MapAction.ADD, "Check the key action of the first Map entry" );
内容来源于网络,如有侵权,请联系作者删除!