gpt4 book ai didi

org.apache.neethi.builders.xml.XMLPrimitiveAssertionBuilder.isOptional()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-18 22:20:40 28 4
gpt4 key购买 nike

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

XMLPrimitiveAssertionBuilder.isOptional介绍

暂无

代码示例

代码示例来源:origin: org.apache.cxf/cxf-rt-ws-policy

public PrimitiveAssertion(Element element) {
  super(new QName(element.getNamespaceURI(), element.getLocalName()),
     XMLPrimitiveAssertionBuilder.isOptional(element),
     XMLPrimitiveAssertionBuilder.isIgnorable(element));
}

代码示例来源:origin: apache/cxf

public PrimitiveAssertion(Element element) {
  super(new QName(element.getNamespaceURI(), element.getLocalName()),
     XMLPrimitiveAssertionBuilder.isOptional(element),
     XMLPrimitiveAssertionBuilder.isIgnorable(element));
}

代码示例来源:origin: apache/cxf

/**
   * @see org.apache.neethi.builders.AssertionBuilder#build(org.w3c.dom.Element,
   *  org.apache.neethi.AssertionBuilderFactory)
   */
  public Assertion build(Element elem, AssertionBuilderFactory factory) throws IllegalArgumentException {
    Assertion assertion = null;
    if (RSP_NAMESPACE.equals(elem.getNamespaceURI()) && CONFORMANT_NAME.equals(elem.getLocalName())) {
      boolean optional = XMLPrimitiveAssertionBuilder.isOptional(elem);
      assertion = new PrimitiveAssertion(CONFORMANT_QNAME,  optional);
    }
    return assertion;
  }
}

代码示例来源:origin: org.apache.neethi/neethi

/**
 * Constructs a XmlPrimitiveAssertion from an Element.
 * 
 * @param element
 *            the Element from which the XmlAssertion is constructed
 */
public XmlPrimitiveAssertion(Element element) {
  super(new QName(element.getNamespaceURI(), element.getLocalName()),
     XMLPrimitiveAssertionBuilder.isOptional(element), 
     XMLPrimitiveAssertionBuilder.isIgnorable(element));
  this.element = element;
}

代码示例来源:origin: apache/cxf

/**
   * @see org.apache.neethi.builders.AssertionBuilder#build(org.w3c.dom.Element,
   *  org.apache.neethi.AssertionBuilderFactory)
   */
  public Assertion build(Element elem, AssertionBuilderFactory factory) throws IllegalArgumentException {
    Assertion assertion = null;
    if (WSMC_NAMESPACE.equals(elem.getNamespaceURI()) && MCSUPPORTED_NAME.equals(elem.getLocalName())) {
      boolean optional = XMLPrimitiveAssertionBuilder.isOptional(elem);
      assertion = new PrimitiveAssertion(MCSUPPORTED_QNAME,  optional);
    }
    return assertion;
  }
}

代码示例来源:origin: apache/cxf

public Assertion build(Element element, AssertionBuilderFactory fact) {
    if (XMLPrimitiveAssertionBuilder.isOptional(element)
      || XMLPrimitiveAssertionBuilder.isIgnorable(element)) {
      return super.build(element, fact);
    }
    QName q = new QName(element.getNamespaceURI(), element.getLocalName());
    return assertions.get(q);
  }
});

代码示例来源:origin: apache/cxf

public Assertion build(Element element, AssertionBuilderFactory fact) {
    if (XMLPrimitiveAssertionBuilder.isOptional(element)
      || XMLPrimitiveAssertionBuilder.isIgnorable(element)) {
      return super.build(element, fact);
    }
    QName q = new QName(element.getNamespaceURI(), element.getLocalName());
    return assertions.get(q);
  }
});

代码示例来源:origin: org.apache.cxf/cxf-rt-ws-security

public Assertion build(Element element, AssertionBuilderFactory fact) {
    if (XMLPrimitiveAssertionBuilder.isOptional(element)
      || XMLPrimitiveAssertionBuilder.isIgnorable(element)) {
      return super.build(element, fact);
    }
    QName q = new QName(element.getNamespaceURI(), element.getLocalName());
    return assertions.get(q);
  }
});

代码示例来源:origin: org.apache.cxf/cxf-rt-ws-security

public Assertion build(Element element, AssertionBuilderFactory fact) {
    if (XMLPrimitiveAssertionBuilder.isOptional(element)
      || XMLPrimitiveAssertionBuilder.isIgnorable(element)) {
      return super.build(element, fact);
    }
    QName q = new QName(element.getNamespaceURI(), element.getLocalName());
    return assertions.get(q);
  }
});

代码示例来源:origin: org.apache.neethi/neethi

public Assertion newPrimitiveAssertion(Element element, Map<QName, String> atts) {
  return new PrimitiveAssertion(getQName(element),
                 isOptional(element), isIgnorable(element),
                 atts,
                 element.getTextContent());
}
public Assertion newPolicyContainingAssertion(Element element, Map<QName, String> atts, Policy policy) {

代码示例来源:origin: apache/cxf

public Assertion build(Element element, AssertionBuilderFactory factory) {
  QName name = new QName(element.getNamespaceURI(), element.getLocalName());
  JaxbAssertion<T> assertion = buildAssertion();
  assertion.setName(name);
  assertion.setOptional(XMLPrimitiveAssertionBuilder.isOptional(element));
  assertion.setIgnorable(XMLPrimitiveAssertionBuilder.isIgnorable(element));
  assertion.setData(getData(element));
  return assertion;
}

代码示例来源:origin: org.apache.neethi/neethi

public Assertion newPolicyContainingAssertion(Element element, Map<QName, String> atts, Policy policy) {
  return new PolicyContainingPrimitiveAssertion(getQName(element),
                 isOptional(element), isIgnorable(element),
                 policy);
}

代码示例来源:origin: org.apache.cxf/cxf-rt-ws-policy

public Assertion build(Element element, AssertionBuilderFactory factory) {
  QName name = new QName(element.getNamespaceURI(), element.getLocalName());
  JaxbAssertion<T> assertion = buildAssertion();
  assertion.setName(name);
  assertion.setOptional(XMLPrimitiveAssertionBuilder.isOptional(element));
  assertion.setIgnorable(XMLPrimitiveAssertionBuilder.isIgnorable(element));
  assertion.setData(getData(element));
  return assertion;
}

代码示例来源:origin: apache/cxf

public Assertion build(Element element, AssertionBuilderFactory fact) {
    if (XMLPrimitiveAssertionBuilder.isOptional(element)
      || XMLPrimitiveAssertionBuilder.isIgnorable(element)) {
      return super.build(element, fact);
    }
    QName q = new QName(element.getNamespaceURI(), element.getLocalName());
    return assertions.get(q);
  }
});

代码示例来源:origin: apache/cxf

public Assertion build(Element element, AssertionBuilderFactory fact) {
    if (XMLPrimitiveAssertionBuilder.isOptional(element)
      || XMLPrimitiveAssertionBuilder.isIgnorable(element)) {
      return super.build(element, fact);
    }
    QName q = new QName(element.getNamespaceURI(), element.getLocalName());
    return assertions.get(q);
  }
});

代码示例来源:origin: apache/cxf

Assertion assertion = null;
if (RM11Constants.WSRMP_NAMESPACE_URI.equals(elem.getNamespaceURI())) {
  boolean optional = XMLPrimitiveAssertionBuilder.isOptional(elem);
  String lname = elem.getLocalName();
  if (RMConstants.RMASSERTION_NAME.equals(lname)) {

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