com.evolveum.midpoint.prism.Item.findPartial()方法的使用及代码示例

x33g5p2x  于2022-01-21 转载在 其他  
字(1.5k)|赞(0)|评价(0)|浏览(81)

本文整理了Java中com.evolveum.midpoint.prism.Item.findPartial()方法的一些代码示例,展示了Item.findPartial()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Item.findPartial()方法的具体详情如下:
包路径:com.evolveum.midpoint.prism.Item
类名称:Item
方法名:findPartial

Item.findPartial介绍

暂无

代码示例

代码示例来源:origin: Evolveum/midpoint

@Override
public <IV extends PrismValue,ID extends ItemDefinition> PartiallyResolvedItem<IV,ID> findPartial(ItemPath path) {
  if (path == null || path.isEmpty()) {
    // Incomplete path
    return null;
  }
  Object first = path.first();
  if (!ItemPath.isName(first)) {
    throw new IllegalArgumentException("Attempt to lookup item using a non-name path "+path+" in "+this);
  }
  ItemName subName = ItemPath.toName(first);
  ItemPath rest = path.rest();
  Item<?,?> subItem = findItem(subName);
  if (subItem == null) {
    return null;
  }
  return subItem.findPartial(rest);
}

代码示例来源:origin: Evolveum/midpoint

ItemPath newResolvePath = resolvePath.append(path);
if (itemOld != null) {
  PartiallyResolvedItem<IV,ID> partialItemOld = itemOld.findPartial(path);
  if (partialItemOld != null) {
    subItemOld = partialItemOld.getItem();
  PartiallyResolvedItem<IV,ID> partialItemNew = itemNew.findPartial(path);
  if (partialItemNew != null) {
    subItemNew = partialItemNew.getItem();

代码示例来源:origin: Evolveum/midpoint

if (subItemOld != null) {
  ItemPath subPath = subItemOld.getPath().remainder(path);
  PartiallyResolvedItem<IV,ID> partialValue = subItemOld.findPartial(subPath);
  if (partialValue != null && partialValue.getItem() != null) {
    Item<IV,ID> item = partialValue.getItem();

相关文章