当前位置: 首页>>代码示例>>Java>>正文


Java XMLHelper.marshallAttributeMap方法代码示例

本文整理汇总了Java中org.opensaml.xml.util.XMLHelper.marshallAttributeMap方法的典型用法代码示例。如果您正苦于以下问题:Java XMLHelper.marshallAttributeMap方法的具体用法?Java XMLHelper.marshallAttributeMap怎么用?Java XMLHelper.marshallAttributeMap使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.opensaml.xml.util.XMLHelper的用法示例。


在下文中一共展示了XMLHelper.marshallAttributeMap方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: marshallAttributes

import org.opensaml.xml.util.XMLHelper; //导入方法依赖的package包/类
/** {@inheritDoc} */
protected void marshallAttributes(XMLObject xmlObject, Element domElement) throws MarshallingException {
    PolicyReference pr = (PolicyReference) xmlObject;
    
    if (pr.getURI() != null) {
        domElement.setAttributeNS(null, PolicyReference.URI_ATTRIB_NAME, pr.getURI());
    }
    
    if (pr.getDigest() != null) {
        domElement.setAttributeNS(null, PolicyReference.DIGEST_ATTRIB_NAME, pr.getDigest());
    }
    
    if (pr.getDigestAlgorithm() != null) {
        domElement.setAttributeNS(null, PolicyReference.DIGEST_ALGORITHM_ATTRIB_NAME, pr.getDigestAlgorithm());
    }
    
    XMLHelper.marshallAttributeMap(pr.getUnknownAttributes(), domElement);
    
}
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:20,代码来源:PolicyReferenceMarshaller.java

示例2: marshallAttributes

import org.opensaml.xml.util.XMLHelper; //导入方法依赖的package包/类
/** {@inheritDoc} */
protected void marshallAttributes(XMLObject xmlObject, Element domElement) throws MarshallingException {
    RelatesTo relatesTo = (RelatesTo) xmlObject;
    
    String relationshipType = DatatypeHelper.safeTrimOrNullString(relatesTo.getRelationshipType());
    if (relationshipType != null) {
        domElement.setAttributeNS(null, RelatesTo.RELATIONSHIP_TYPE_ATTRIB_NAME, relationshipType);
    }
    
    XMLHelper.marshallAttributeMap(relatesTo.getUnknownAttributes(), domElement);
}
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:12,代码来源:RelatesToMarshaller.java

示例3: marshallAttributes

import org.opensaml.xml.util.XMLHelper; //导入方法依赖的package包/类
/** {@inheritDoc} */
protected void marshallAttributes(XMLObject xmlObject, Element domElement) throws MarshallingException {
    Policy policy = (Policy) xmlObject;
    
    if (policy.getName() != null) {
        domElement.setAttributeNS(null, Policy.NAME_ATTRIB_NAME, policy.getName());
    }
    
    if (policy.getWSUId() != null) {
        XMLHelper.marshallAttribute(IdBearing.WSU_ID_ATTR_NAME, policy.getWSUId(), domElement, true);
    }
    
    XMLHelper.marshallAttributeMap(policy.getUnknownAttributes(), domElement);
}
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:15,代码来源:PolicyMarshaller.java

示例4: marshallAttributes

import org.opensaml.xml.util.XMLHelper; //导入方法依赖的package包/类
/** {@inheritDoc} */
protected void marshallAttributes(XMLObject xmlObject, Element domElement) throws MarshallingException {
    Reference reference = (Reference) xmlObject;
    
    if (!DatatypeHelper.isEmpty(reference.getURI())) {
        domElement.setAttributeNS(null, Reference.URI_ATTRIB_NAME, reference.getURI());
    }
    
    if (!DatatypeHelper.isEmpty(reference.getValueType())) {
        domElement.setAttributeNS(null, Reference.VALUE_TYPE_ATTRIB_NAME, reference.getValueType());
    }
    
    XMLHelper.marshallAttributeMap(reference.getUnknownAttributes(), domElement);
    
}
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:16,代码来源:ReferenceMarshaller.java

示例5: marshallAttributes

import org.opensaml.xml.util.XMLHelper; //导入方法依赖的package包/类
/** {@inheritDoc} */
protected void marshallAttributes(XMLObject xmlObject, Element domElement) throws MarshallingException {
    Embedded embedded = (Embedded) xmlObject;
    if (!DatatypeHelper.isEmpty(embedded.getValueType())) {
        domElement.setAttributeNS(null, Embedded.VALUE_TYPE_ATTRIB_NAME, embedded.getValueType());
    }
    
    XMLHelper.marshallAttributeMap(embedded.getUnknownAttributes(), domElement);
    
}
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:11,代码来源:EmbeddedMarshaller.java

示例6: marshallAttributes

import org.opensaml.xml.util.XMLHelper; //导入方法依赖的package包/类
/** {@inheritDoc} */
protected void marshallAttributes(XMLObject xmlObject, Element domElement) throws MarshallingException {
    Timestamp timestamp = (Timestamp) xmlObject;
    
    if (!DatatypeHelper.isEmpty(timestamp.getWSUId())) {
        XMLHelper.marshallAttribute(Timestamp.WSU_ID_ATTR_NAME, timestamp.getWSUId(), domElement, true);
    }
    
    XMLHelper.marshallAttributeMap(timestamp.getUnknownAttributes(), domElement);
}
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:11,代码来源:TimestampMarshaller.java

示例7: marshallAttributes

import org.opensaml.xml.util.XMLHelper; //导入方法依赖的package包/类
/** {@inheritDoc} */
protected void marshallAttributes(XMLObject xmlObject, Element domElement) throws MarshallingException {
    UsernameToken usernameToken = (UsernameToken) xmlObject;
    
    if (!DatatypeHelper.isEmpty(usernameToken.getWSUId())) {
        XMLHelper.marshallAttribute(UsernameToken.WSU_ID_ATTR_NAME, usernameToken.getWSUId(), domElement, true);
    }
    
    XMLHelper.marshallAttributeMap(usernameToken.getUnknownAttributes(), domElement);
    
}
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:12,代码来源:UsernameTokenMarshaller.java

示例8: marshallAttributes

import org.opensaml.xml.util.XMLHelper; //导入方法依赖的package包/类
/** {@inheritDoc} */
protected void marshallAttributes(XMLObject xmlObject, Element domElement) throws MarshallingException {
    AttributedString attributedString = (AttributedString) xmlObject;
    
    if (!DatatypeHelper.isEmpty(attributedString.getWSUId())) {
        XMLHelper.marshallAttribute(AttributedString.WSU_ID_ATTR_NAME, attributedString.getWSUId(), domElement, true);
    }
    
    XMLHelper.marshallAttributeMap(attributedString.getUnknownAttributes(), domElement);
    
}
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:12,代码来源:AttributedStringMarshaller.java

示例9: marshallAttributes

import org.opensaml.xml.util.XMLHelper; //导入方法依赖的package包/类
/** {@inheritDoc} */
protected void marshallAttributes(XMLObject xmlObject, Element domElement) throws MarshallingException {
    RequestSecurityToken rst = (RequestSecurityToken) xmlObject;
    if (rst.getContext() != null) {
        domElement.setAttributeNS(null, RequestSecurityToken.CONTEXT_ATTRIB_NAME, rst.getContext());
    }
    
    XMLHelper.marshallAttributeMap(rst.getUnknownAttributes(), domElement);
}
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:10,代码来源:RequestSecurityTokenMarshaller.java

示例10: marshallAttributes

import org.opensaml.xml.util.XMLHelper; //导入方法依赖的package包/类
/** {@inheritDoc} */
protected void marshallAttributes(XMLObject xmlObject, Element domElement) throws MarshallingException {
    BinaryExchange binaryExchange = (BinaryExchange) xmlObject;
    
    String valueType = DatatypeHelper.safeTrimOrNullString(binaryExchange.getValueType());
    if (valueType != null) {
        domElement.setAttributeNS(null, BinaryExchange.VALUE_TYPE_ATTRIB_NAME, valueType);
    }
    String encodingType = DatatypeHelper.safeTrimOrNullString(binaryExchange.getEncodingType());
    if (encodingType != null) {
        domElement.setAttributeNS(null, BinaryExchange.ENCODING_TYPE_ATTRIB_NAME, encodingType);
    }
    
    XMLHelper.marshallAttributeMap(binaryExchange.getUnknownAttributes(), domElement);
}
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:16,代码来源:BinaryExchangeMarshaller.java

示例11: marshallAttributes

import org.opensaml.xml.util.XMLHelper; //导入方法依赖的package包/类
/** {@inheritDoc} */
protected void marshallAttributes(XMLObject xmlObject, Element domElement) throws MarshallingException {
    RequestSecurityTokenResponse rstr= (RequestSecurityTokenResponse) xmlObject;
    if (rstr.getContext() != null) {
        domElement.setAttributeNS(null, RequestSecurityTokenResponse.CONTEXT_ATTRIB_NAME, rstr.getContext());
    }
    XMLHelper.marshallAttributeMap(rstr.getUnknownAttributes(), domElement);
}
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:9,代码来源:RequestSecurityTokenResponseMarshaller.java

示例12: marshallAttributes

import org.opensaml.xml.util.XMLHelper; //导入方法依赖的package包/类
/** {@inheritDoc} */
protected void marshallAttributes(XMLObject xmlObject, Element domElement) throws MarshallingException {
    BinarySecret bs = (BinarySecret) xmlObject;
    if (bs.getType() != null) {
        domElement.setAttributeNS(null, BinarySecret.TYPE_ATTRIB_NAME, bs.getType());
    }
    
    XMLHelper.marshallAttributeMap(bs.getUnknownAttributes(), domElement);
}
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:10,代码来源:BinarySecretMarshaller.java

示例13: marshallAttributes

import org.opensaml.xml.util.XMLHelper; //导入方法依赖的package包/类
/** {@inheritDoc} */
protected void marshallAttributes(XMLObject xmlObject, Element domElement) throws MarshallingException {
    Claims claims = (Claims) xmlObject;
    if (claims.getDialect() != null) {
        domElement.setAttributeNS(null, Claims.DIALECT_ATTRIB_NAME, claims.getDialect());
    }
    
    XMLHelper.marshallAttributeMap(claims.getUnknownAttributes(), domElement);
}
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:10,代码来源:ClaimsMarshaller.java

示例14: marshallAttributes

import org.opensaml.xml.util.XMLHelper; //导入方法依赖的package包/类
/** {@inheritDoc} */
protected void marshallAttributes(XMLObject xmlObject, Element domElement) throws MarshallingException {
    PolicyAttachment pa = (PolicyAttachment) xmlObject;
    XMLHelper.marshallAttributeMap(pa.getUnknownAttributes(), domElement);
}
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:6,代码来源:PolicyAttachmentMarshaller.java

示例15: marshallAttributes

import org.opensaml.xml.util.XMLHelper; //导入方法依赖的package包/类
/** {@inheritDoc} */
protected void marshallAttributes(XMLObject xmlObject, Element domElement) throws MarshallingException {
    AttributedQName attributedQName = (AttributedQName) xmlObject;
    XMLHelper.marshallAttributeMap(attributedQName.getUnknownAttributes(), domElement);
}
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:6,代码来源:AttributedQNameMarshaller.java


注:本文中的org.opensaml.xml.util.XMLHelper.marshallAttributeMap方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。