本文整理了Java中org.opensaml.xml.schema.XSAny.getTextContent()
方法的一些代码示例,展示了XSAny.getTextContent()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XSAny.getTextContent()
方法的具体详情如下:
包路径:org.opensaml.xml.schema.XSAny
类名称:XSAny
方法名:getTextContent
[英]Gets the text content for the DOM Element.
[中]获取DOM元素的文本内容。
代码示例来源:origin: cloudfoundry/uaa
value = ((XSString) xmlObject).getValue();
} else if (xmlObject instanceof XSAny) {
value = ((XSAny)xmlObject).getTextContent();
} else if (xmlObject instanceof XSInteger) {
Integer i = ((XSInteger)xmlObject).getValue();
代码示例来源:origin: io.apigee.opensaml/xmltooling
/** {@inheritDoc} */
protected void marshallElementContent(XMLObject xmlObject, Element domElement) throws MarshallingException {
XSAny xsAny = (XSAny) xmlObject;
if (xsAny.getTextContent() != null) {
XMLHelper.appendTextContent(domElement, xsAny.getTextContent());
}
}
}
代码示例来源:origin: org.opensaml/xmltooling
/** {@inheritDoc} */
protected void marshallElementContent(XMLObject xmlObject, Element domElement) throws MarshallingException {
XSAny xsAny = (XSAny) xmlObject;
if (xsAny.getTextContent() != null) {
XMLHelper.appendTextContent(domElement, xsAny.getTextContent());
}
}
}
代码示例来源:origin: org.springframework.security.extensions/spring-security-saml2-core
private String getString(XMLObject xmlValue) {
if (xmlValue instanceof XSString) {
return ((XSString) xmlValue).getValue();
} else if (xmlValue instanceof XSAny) {
return ((XSAny) xmlValue).getTextContent();
} else {
return null;
}
}
代码示例来源:origin: OpenConext/Mujina
public static Optional<String> getStringValueFromXMLObject(XMLObject xmlObj) {
if (xmlObj instanceof XSString) {
return Optional.ofNullable(((XSString) xmlObj).getValue());
} else if (xmlObj instanceof XSAny) {
XSAny xsAny = (XSAny) xmlObj;
String textContent = xsAny.getTextContent();
if (StringUtils.hasText(textContent)) {
return Optional.of(textContent);
}
List<XMLObject> unknownXMLObjects = xsAny.getUnknownXMLObjects();
if (!CollectionUtils.isEmpty(unknownXMLObjects)) {
XMLObject xmlObject = unknownXMLObjects.get(0);
if (xmlObject instanceof NameID) {
NameID nameID = (NameID) xmlObject;
return Optional.of(nameID.getValue());
}
}
}
return Optional.empty();
}
代码示例来源:origin: org.wso2.carbon.identity/org.wso2.carbon.identity.relyingparty
buff.append(((XSString) value).getValue());
} else if (value instanceof XSAny) {
buff.append(((XSAny) value).getTextContent());
代码示例来源:origin: org.wso2.carbon.identity/org.wso2.carbon.identity.relyingparty
buffer.append(((XSString) value).getValue());
} else if (value instanceof XSAny) {
buffer.append(((XSAny) value).getTextContent());
代码示例来源:origin: usnistgov/iheos-toolkit2
values.add(ep.getTextContent());
代码示例来源:origin: usnistgov/iheos-toolkit2
values.add(ep.getTextContent());
代码示例来源:origin: usnistgov/iheos-toolkit2
return ep.getTextContent();
代码示例来源:origin: usnistgov/iheos-toolkit2
return ep.getTextContent();
代码示例来源:origin: edu.internet2.middleware/shibboleth-common
for (XMLObject attributeValue : attributeValues) {
if (attributeValue instanceof XSAny) {
valueString = ((XSAny) attributeValue).getTextContent();
} else if (attributeValue instanceof XSString) {
valueString = ((XSString) attributeValue).getValue();
代码示例来源:origin: edu.internet2.middleware/shibboleth-common
final XSAny wc = (XSAny) xmlObj;
if (wc.getUnknownAttributes().isEmpty() && wc.getUnknownXMLObjects().isEmpty()) {
toMatch = wc.getTextContent();
内容来源于网络,如有侵权,请联系作者删除!