本文整理汇总了Java中org.opensaml.xml.util.XMLHelper.appendTextContent方法的典型用法代码示例。如果您正苦于以下问题:Java XMLHelper.appendTextContent方法的具体用法?Java XMLHelper.appendTextContent怎么用?Java XMLHelper.appendTextContent使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.opensaml.xml.util.XMLHelper
的用法示例。
在下文中一共展示了XMLHelper.appendTextContent方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: marshallElementContent
import org.opensaml.xml.util.XMLHelper; //导入方法依赖的package包/类
/** {@inheritDoc} */
protected void marshallElementContent(XMLObject samlObject, Element domElement) throws MarshallingException {
RequesterID reqID = (RequesterID) samlObject;
if (reqID.getRequesterID() != null) {
XMLHelper.appendTextContent(domElement, reqID.getRequesterID());
}
}
示例2: marshallElementContent
import org.opensaml.xml.util.XMLHelper; //导入方法依赖的package包/类
/** {@inheritDoc} */
protected void marshallElementContent(XMLObject xmlObject, Element domElement) throws MarshallingException {
Iteration iteration = (Iteration) xmlObject;
if (iteration.getValue() != null) {
XMLHelper.appendTextContent(domElement, iteration.getValue().toString());
}
}
示例3: marshallElementContent
import org.opensaml.xml.util.XMLHelper; //导入方法依赖的package包/类
/** {@inheritDoc} */
protected void marshallElementContent(XMLObject samlObject, Element domElement) throws MarshallingException {
EmailAddress address = (EmailAddress) samlObject;
if (address.getAddress() != null) {
XMLHelper.appendTextContent(domElement, address.getAddress());
}
}
示例4: marshallElementContent
import org.opensaml.xml.util.XMLHelper; //导入方法依赖的package包/类
/** {@inheritDoc} */
protected void marshallElementContent(XMLObject samlObject, Element domElement) throws MarshallingException {
ServiceName name = (ServiceName) samlObject;
if (name.getName() != null) {
XMLHelper.appendTextContent(domElement, name.getName().getLocalString());
}
}
示例5: marshallElementContent
import org.opensaml.xml.util.XMLHelper; //导入方法依赖的package包/类
/** {@inheritDoc} */
protected void marshallElementContent(XMLObject samlObject, Element domElement) throws MarshallingException {
Keywords words = (Keywords) samlObject;
if (words.getKeywords() != null) {
StringBuilder sb = new StringBuilder();
for (String s : words.getKeywords()) {
sb.append(s);
sb.append(' ');
}
XMLHelper.appendTextContent(domElement, sb.toString());
}
}
示例6: marshallElementContent
import org.opensaml.xml.util.XMLHelper; //导入方法依赖的package包/类
/** {@inheritDoc} */
protected void marshallElementContent(XMLObject xmlObject, Element domElement) throws MarshallingException {
X509SerialNumber x509SerialNumber = (X509SerialNumber) xmlObject;
if (x509SerialNumber.getValue() != null) {
XMLHelper.appendTextContent(domElement, x509SerialNumber.getValue().toString());
}
}
示例7: marshallElementContent
import org.opensaml.xml.util.XMLHelper; //导入方法依赖的package包/类
/** {@inheritDoc} */
protected void marshallElementContent(XMLObject samlObject, Element domElement) throws MarshallingException {
OrganizationDisplayName name = (OrganizationDisplayName) samlObject;
if (name.getName() != null) {
XMLHelper.appendTextContent(domElement, name.getName().getLocalString());
}
}
示例8: marshallElementContent
import org.opensaml.xml.util.XMLHelper; //导入方法依赖的package包/类
/** {@inheritDoc} */
protected void marshallElementContent(XMLObject samlObject, Element domElement) throws MarshallingException {
GetComplete gc = (GetComplete) samlObject;
if (gc.getGetComplete() != null) {
XMLHelper.appendTextContent(domElement, gc.getGetComplete());
}
}
示例9: marshallElementContent
import org.opensaml.xml.util.XMLHelper; //导入方法依赖的package包/类
/** {@inheritDoc} */
protected void marshallElementContent(XMLObject samlObject, Element domElement) throws MarshallingException {
AssertionArtifact assertionArtifact = (AssertionArtifact) samlObject;
if (assertionArtifact.getAssertionArtifact() != null) {
XMLHelper.appendTextContent(domElement, assertionArtifact.getAssertionArtifact());
}
}
示例10: marshallElementContent
import org.opensaml.xml.util.XMLHelper; //导入方法依赖的package包/类
/** {@inheritDoc} */
protected void marshallElementContent(XMLObject samlObject, Element domElement) throws MarshallingException {
LocalizedName name = (LocalizedName) samlObject;
if (name.getName() != null) {
XMLHelper.appendTextContent(domElement, name.getName().getLocalString());
}
}
示例11: marshallElementContent
import org.opensaml.xml.util.XMLHelper; //导入方法依赖的package包/类
/** {@inheritDoc} */
protected void marshallElementContent(XMLObject xmlObject, Element domElement) throws MarshallingException {
XSInteger xsiInteger = (XSInteger) xmlObject;
if (xsiInteger.getValue() != null) {
XMLHelper.appendTextContent(domElement, xsiInteger.getValue().toString());
}
}
示例12: marshallElementContent
import org.opensaml.xml.util.XMLHelper; //导入方法依赖的package包/类
/** {@inheritDoc} */
protected void marshallElementContent(XMLObject xmlObject, Element domElement) throws MarshallingException {
StatusMessageType message = (StatusMessageType)xmlObject;
if(message.getValue() != null){
XMLHelper.appendTextContent(domElement, message.getValue());
}
}
示例13: marshallElementContent
import org.opensaml.xml.util.XMLHelper; //导入方法依赖的package包/类
/** {@inheritDoc} */
protected void marshallElementContent(XMLObject samlObject, Element domElement) throws MarshallingException {
GivenName name = (GivenName) samlObject;
if (name.getName() != null) {
XMLHelper.appendTextContent(domElement, name.getName());
}
}
示例14: marshallElementContent
import org.opensaml.xml.util.XMLHelper; //导入方法依赖的package包/类
/** {@inheritDoc} */
protected void marshallElementContent(XMLObject samlObject, Element domElement) throws MarshallingException {
AssertionIDReference assertionIDReference = (AssertionIDReference) samlObject;
if (assertionIDReference.getReference() != null) {
XMLHelper.appendTextContent(domElement, assertionIDReference.getReference());
}
}
示例15: marshallElementContent
import org.opensaml.xml.util.XMLHelper; //导入方法依赖的package包/类
/** {@inheritDoc} */
protected void marshallElementContent(XMLObject xmlObject, Element domElement) throws MarshallingException {
AttributedDateTime dateTime = (AttributedDateTime) xmlObject;
XMLHelper.appendTextContent(domElement, dateTime.getValue());
}