gpt4 book ai didi

org.opensaml.core.xml.util.XMLObjectChildrenList.size()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-19 23:06:40 26 4
gpt4 key购买 nike

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

XMLObjectChildrenList.size介绍

暂无

代码示例

代码示例来源:origin: org.opensaml/opensaml-soap-impl

/** {@inheritDoc} */
  public List<XMLObject> getOrderedChildren() {
    ArrayList<XMLObject> children = new ArrayList<>(1 + tokens.size());

    children.addAll(tokens);

    if (children.size() == 0) {
      return null;
    }

    return Collections.unmodifiableList(children);
  }
}

代码示例来源:origin: org.opensaml/opensaml-saml-impl

/** {@inheritDoc} */
  public List<XMLObject> getOrderedChildren() {

    if (audiences.size() == 0) {
      return null;
    }
    ArrayList<XMLObject> children = new ArrayList<>();
    children.addAll(audiences);
    return Collections.unmodifiableList(children);
  }
}

代码示例来源:origin: org.opensaml/opensaml-soap-impl

/** {@inheritDoc} */
  public List<XMLObject> getOrderedChildren() {
    ArrayList<XMLObject> children = new ArrayList<>(1 + requestedSecurityTokens.size());

    children.addAll(requestedSecurityTokens);
    children.add(appliesTo);

    return Collections.unmodifiableList(children);
  }
}

代码示例来源:origin: org.opensaml/opensaml-saml-impl

/** {@inheritDoc} */
  public List<XMLObject> getOrderedChildren() {

    List<XMLObject> list = new ArrayList<>(confirmationMethods.size() + 1);

    list.addAll(confirmationMethods);

    if (subjectConfirmationData != null) {
      list.add(subjectConfirmationData);
    }

    if(keyInfo != null){
      list.add(keyInfo);
    }

    if (list.size() == 0) {
      return null;
    }
    return Collections.unmodifiableList(list);
  }
}

代码示例来源:origin: org.opensaml/opensaml-saml-impl

/** {@inheritDoc} */
  public List<XMLObject> getOrderedChildren() {
    List<XMLObject> list = new ArrayList<>(attributes.size() + 1);

    if (super.getOrderedChildren() != null) {
      list.addAll(super.getOrderedChildren());
    }

    list.addAll(attributes);

    if (list.size() == 0) {
      return null;
    }

    return Collections.unmodifiableList(list);
  }
}

代码示例来源:origin: org.opensaml/opensaml-saml-impl

/** {@inheritDoc} */
  public List<XMLObject> getOrderedChildren() {
    List<XMLObject> list = new ArrayList<>(attributeDesignators.size() + 1);
    
    if (super.getOrderedChildren() != null) {
      list.addAll(super.getOrderedChildren());
    }
    
    list.addAll(attributeDesignators);
    return Collections.unmodifiableList(list);
  }
}

代码示例来源:origin: org.opensaml/opensaml-saml-impl

/** {@inheritDoc} */
  public List<XMLObject> getOrderedChildren() {
    List<XMLObject> list = new ArrayList<>(actions.size() + 2);
    
    if (super.getOrderedChildren() != null) {
      list.addAll(super.getOrderedChildren());
    }
    
    list.addAll(actions);
    if (evidence != null) {
      list.add(evidence);
    }
    
    if (list.size() == 0) {
      return null;
    }
    
    return Collections.unmodifiableList(list);
  }
}

代码示例来源:origin: org.opensaml/opensaml-saml-impl

/** {@inheritDoc} */
  public List<XMLObject> getOrderedChildren() {
    List<XMLObject> list = new ArrayList<>(actions.size() + 2);

    if (super.getOrderedChildren() != null) {
      list.addAll(super.getOrderedChildren());
    }
    list.addAll(actions);
    if (evidence != null) {
      list.add(evidence);
    }
    if (list.size() == 0) {
      return null;
    }
    return Collections.unmodifiableList(list);
  }
}

代码示例来源:origin: org.opensaml/opensaml-saml-impl

/** {@inheritDoc} */
  public List<XMLObject> getOrderedChildren() {
    List<XMLObject> list = new ArrayList<>(authorityBindings.size() + 2);

    if (super.getOrderedChildren() != null) {
      list.addAll(super.getOrderedChildren());
    }

    if (subjectLocality != null) {
      list.add(subjectLocality);
    }

    list.addAll(authorityBindings);

    if (list.size() == 0) {
      return null;
    }

    return Collections.unmodifiableList(list);
  }
}

代码示例来源:origin: org.opensaml/opensaml-saml-impl

/** {@inheritDoc} */
  public List<XMLObject> getOrderedChildren() {

    List<XMLObject> list = new ArrayList<>();

    if (super.getOrderedChildren() != null) {
      list.addAll(super.getOrderedChildren());
    }
    if (query != null) {
      list.add(query);
    }
    if (assertionIDReferences.size() != 0) {
      list.addAll(assertionIDReferences);
    }
    if (assertionArtifacts.size() != 0) {
      list.addAll(assertionArtifacts);
    }

    if (list.size() == 0) {
      return null;
    }

    return Collections.unmodifiableList(list);
  }
}

代码示例来源:origin: org.opensaml/opensaml-saml-impl

/** {@inheritDoc} */
  public List<XMLObject> getOrderedChildren() {
    ArrayList<XMLObject> children = new ArrayList<>(1 + assertions.size());

    if (super.getOrderedChildren() != null) {
      children.addAll(super.getOrderedChildren());
    }

    if (status != null) {
      children.add(status);
    }

    children.addAll(assertions);

    if (children.size() == 0) {
      return null;
    }

    return Collections.unmodifiableList(children);
  }
}

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com