本文整理汇总了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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}