use of org.apache.cayenne.configuration.ConfigurationNode in project cayenne by apache.
the class MultipleObjectsDisplayEventType method getLastMultipleObjects.
protected ConfigurationNode[] getLastMultipleObjects(DataChannelDescriptor dataChannel) {
List<ConfigurationNode> configurationNodeList = new ArrayList<>();
ConfigurationNode[] nodes = new ConfigurationNode[0];
String multipleObjects = preferences.getMultipleObjects();
if (multipleObjects.isEmpty()) {
return configurationNodeList.toArray(nodes);
}
for (String objectName : multipleObjects.split(",")) {
ConfigurationNode configNode = getConfigNode(dataChannel, objectName);
if (configNode != null) {
configurationNodeList.add(configNode);
}
}
return configurationNodeList.toArray(nodes);
}
Aggregations