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


Java XMLHelper.constructQName方法代码示例

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


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

示例1: processAttribute

import org.opensaml.xml.util.XMLHelper; //导入方法依赖的package包/类
/** {@inheritDoc} */
protected void processAttribute(XMLObject xmlObject, Attr attribute) throws UnmarshallingException {
    Policy policy = (Policy) xmlObject;
    
    QName nameQName = new QName(Policy.NAME_ATTRIB_NAME);
    
    QName attribQName = 
        XMLHelper.constructQName(attribute.getNamespaceURI(), attribute.getLocalName(), attribute.getPrefix());
    
    if (nameQName.equals(attribQName)) {
        policy.setName(attribute.getValue());
    } else if (Policy.WSU_ID_ATTR_NAME.equals(attribQName)) {
        policy.setWSUId(attribute.getValue());
        attribute.getOwnerElement().setIdAttributeNode(attribute, true);
    } else {
        XMLHelper.unmarshallToAttributeMap(policy.getUnknownAttributes(), attribute);
    }
}
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:19,代码来源:PolicyUnmarshaller.java

示例2: processAttribute

import org.opensaml.xml.util.XMLHelper; //导入方法依赖的package包/类
/** {@inheritDoc} */
protected void processAttribute(XMLObject xmlObject, Attr attribute) throws UnmarshallingException {
    PolicyReference pr = (PolicyReference) xmlObject;

    QName uriName = new QName(PolicyReference.URI_ATTRIB_NAME);
    QName digestName = new QName(PolicyReference.DIGEST_ATTRIB_NAME);
    QName digestAlgorithmName = new QName(PolicyReference.DIGEST_ALGORITHM_ATTRIB_NAME);

    QName attribQName = 
        XMLHelper.constructQName(attribute.getNamespaceURI(), attribute.getLocalName(), attribute .getPrefix());

    if (uriName.equals(attribQName)) {
        pr.setURI(attribute.getValue());
    } else if (digestName.equals(attribQName)) {
        pr.setDigest(attribute.getValue());
    } else if (digestAlgorithmName.equals(attribQName)) {
        pr.setDigestAlgorithm(attribute.getValue());
    } else {
        XMLHelper.unmarshallToAttributeMap(pr.getUnknownAttributes(), attribute);
    }
}
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:22,代码来源:PolicyReferenceUnmarshaller.java

示例3: processAttribute

import org.opensaml.xml.util.XMLHelper; //导入方法依赖的package包/类
/** {@inheritDoc} */
protected void processAttribute(XMLObject xmlObject, Attr attribute) throws UnmarshallingException {
    AttributedDateTime dateTime = (AttributedDateTime) xmlObject;
    
    QName attrName =
        XMLHelper.constructQName(attribute.getNamespaceURI(), attribute.getLocalName(), attribute.getPrefix());
    if (AttributedDateTime.WSU_ID_ATTR_NAME.equals(attrName)) {
        dateTime.setWSUId(attribute.getValue());
        attribute.getOwnerElement().setIdAttributeNode(attribute, true);
    } else {
        XMLHelper.unmarshallToAttributeMap(dateTime.getUnknownAttributes(), attribute);
    }
}
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:14,代码来源:AttributedDateTimeUnmarshaller.java

示例4: processAttribute

import org.opensaml.xml.util.XMLHelper; //导入方法依赖的package包/类
/** {@inheritDoc} */
protected void processAttribute(XMLObject xmlObject, Attr attribute) throws UnmarshallingException {
    AttributedString attributedString = (AttributedString) xmlObject;
    
    QName attribQName = 
        XMLHelper.constructQName(attribute.getNamespaceURI(), attribute.getLocalName(), attribute.getPrefix());
    if (AttributedString.WSU_ID_ATTR_NAME.equals(attribQName)) {
        attributedString.setWSUId(attribute.getValue());
        attribute.getOwnerElement().setIdAttributeNode(attribute, true);
    } else {
        XMLHelper.unmarshallToAttributeMap(attributedString.getUnknownAttributes(), attribute);
    }
}
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:14,代码来源:AttributedStringUnmarshaller.java

示例5: processAttribute

import org.opensaml.xml.util.XMLHelper; //导入方法依赖的package包/类
/** {@inheritDoc} */
protected void processAttribute(XMLObject xmlObject, Attr attribute) throws UnmarshallingException {
    Timestamp timestamp = (Timestamp) xmlObject;
    
    QName attrName =
        XMLHelper.constructQName(attribute.getNamespaceURI(), attribute.getLocalName(), attribute.getPrefix());
    if (Timestamp.WSU_ID_ATTR_NAME.equals(attrName)) {
        timestamp.setWSUId(attribute.getValue());
        attribute.getOwnerElement().setIdAttributeNode(attribute, true);
    } else {
        XMLHelper.unmarshallToAttributeMap(timestamp.getUnknownAttributes(), attribute);
    }
    
}
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:15,代码来源:TimestampUnmarshaller.java

示例6: processAttribute

import org.opensaml.xml.util.XMLHelper; //导入方法依赖的package包/类
/** {@inheritDoc} */
protected void processAttribute(XMLObject xmlObject, Attr attribute) throws UnmarshallingException {
    UsernameToken token = (UsernameToken) xmlObject;
    
    QName attribQName = 
        XMLHelper.constructQName(attribute.getNamespaceURI(), attribute.getLocalName(), attribute.getPrefix());
    if (UsernameToken.WSU_ID_ATTR_NAME.equals(attribQName)) {
        token.setWSUId(attribute.getValue());
        attribute.getOwnerElement().setIdAttributeNode(attribute, true);
    } else {
        XMLHelper.unmarshallToAttributeMap(token.getUnknownAttributes(), attribute);
    }
}
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:14,代码来源:UsernameTokenUnmarshaller.java

示例7: processAttribute

import org.opensaml.xml.util.XMLHelper; //导入方法依赖的package包/类
/** {@inheritDoc} */
protected void processAttribute(XMLObject xmlObject, Attr attribute) throws UnmarshallingException {
    SignatureConfirmation sc = (SignatureConfirmation) xmlObject;
    
    QName attrName =
        XMLHelper.constructQName(attribute.getNamespaceURI(), attribute.getLocalName(), attribute.getPrefix());
    if (SignatureConfirmation.WSU_ID_ATTR_NAME.equals(attrName)) {
        sc.setWSUId(attribute.getValue());
        attribute.getOwnerElement().setIdAttributeNode(attribute, true);
    } else if (SignatureConfirmation.VALUE_ATTRIB_NAME.equals(attribute.getLocalName())) {
        sc.setValue(attribute.getValue());
    } else {
        super.processAttribute(xmlObject, attribute);
    }
}
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:16,代码来源:SignatureConfirmationUnmarshaller.java

示例8: processAttribute

import org.opensaml.xml.util.XMLHelper; //导入方法依赖的package包/类
/** {@inheritDoc} */
protected void processAttribute(XMLObject xmlObject, Attr attribute) throws UnmarshallingException {
    SecurityTokenReference str = (SecurityTokenReference) xmlObject;
    
    QName attribQName = 
        XMLHelper.constructQName(attribute.getNamespaceURI(), attribute.getLocalName(), attribute.getPrefix());
    if (SecurityTokenReference.WSU_ID_ATTR_NAME.equals(attribQName)) {
        str.setWSUId(attribute.getValue());
        attribute.getOwnerElement().setIdAttributeNode(attribute, true);
    } else if (SecurityTokenReference.WSSE_USAGE_ATTR_NAME.equals(attribQName)) {
        str.setWSSEUsages(XMLHelper.getAttributeValueAsList(attribute));
    } else {
        XMLHelper.unmarshallToAttributeMap(str.getUnknownAttributes(), attribute);
    }
}
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:16,代码来源:SecurityTokenReferenceUnmarshaller.java

示例9: processAttribute

import org.opensaml.xml.util.XMLHelper; //导入方法依赖的package包/类
/** {@inheritDoc} */
protected void processAttribute(XMLObject xmlObject, Attr attribute) throws UnmarshallingException {
    AttributedURI attributedURI = (AttributedURI) xmlObject;
    
    QName attribQName = 
        XMLHelper.constructQName(attribute.getNamespaceURI(), attribute.getLocalName(), attribute.getPrefix());
    if (AttributedURI.WSU_ID_ATTR_NAME.equals(attribQName)) {
        attributedURI.setWSUId(attribute.getValue());
        attribute.getOwnerElement().setIdAttributeNode(attribute, true);
    } else {
        XMLHelper.unmarshallToAttributeMap(attributedURI.getUnknownAttributes(), attribute);
    }
}
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:14,代码来源:AttributedURIUnmarshaller.java

示例10: processAttribute

import org.opensaml.xml.util.XMLHelper; //导入方法依赖的package包/类
/** {@inheritDoc} */
protected void processAttribute(XMLObject xmlObject, Attr attribute) throws UnmarshallingException {
    Detail detail = (Detail) xmlObject;
    QName attribQName = XMLHelper.constructQName(attribute.getNamespaceURI(), attribute.getLocalName(), attribute
            .getPrefix());
    if (attribute.isId()) {
        detail.getUnknownAttributes().registerID(attribQName);
    }
    detail.getUnknownAttributes().put(attribQName, attribute.getValue());
}
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:11,代码来源:DetailUnmarshaller.java

示例11: processAttribute

import org.opensaml.xml.util.XMLHelper; //导入方法依赖的package包/类
/** {@inheritDoc} */
protected void processAttribute(XMLObject xmlObject, Attr attribute) throws UnmarshallingException {
    Header header = (Header) xmlObject;
    QName attribQName = XMLHelper.constructQName(attribute.getNamespaceURI(), attribute.getLocalName(), attribute
            .getPrefix());
    if (attribute.isId()) {
        header.getUnknownAttributes().registerID(attribQName);
    }
    header.getUnknownAttributes().put(attribQName, attribute.getValue());
}
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:11,代码来源:HeaderUnmarshaller.java

示例12: processAttribute

import org.opensaml.xml.util.XMLHelper; //导入方法依赖的package包/类
/** {@inheritDoc} */
protected void processAttribute(XMLObject xmlObject, Attr attribute) throws UnmarshallingException {
    Body body = (Body) xmlObject;
    QName attribQName = XMLHelper.constructQName(attribute.getNamespaceURI(), attribute.getLocalName(), attribute
            .getPrefix());
    if (attribute.isId()) {
        body.getUnknownAttributes().registerID(attribQName);
    }
    body.getUnknownAttributes().put(attribQName, attribute.getValue());
}
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:11,代码来源:BodyUnmarshaller.java

示例13: processAttribute

import org.opensaml.xml.util.XMLHelper; //导入方法依赖的package包/类
/** {@inheritDoc} */
protected void processAttribute(XMLObject xmlObject, Attr attribute) throws UnmarshallingException {
    Envelope envelope = (Envelope) xmlObject;
    QName attribQName = XMLHelper.constructQName(attribute.getNamespaceURI(), attribute.getLocalName(), attribute
            .getPrefix());
    if (attribute.isId()) {
        envelope.getUnknownAttributes().registerID(attribQName);
    }
    envelope.getUnknownAttributes().put(attribQName, attribute.getValue());
}
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:11,代码来源:EnvelopeUnmarshaller.java

示例14: AbstractXMLObject

import org.opensaml.xml.util.XMLHelper; //导入方法依赖的package包/类
/**
 * Constructor.
 * 
 * @param namespaceURI the namespace the element is in
 * @param elementLocalName the local name of the XML element this Object represents
 * @param namespacePrefix the prefix for the given namespace
 */
protected AbstractXMLObject(String namespaceURI, String elementLocalName, String namespacePrefix) {
    nsManager = new NamespaceManager(this);
    idIndex = new IDIndex(this);
    elementQname = XMLHelper.constructQName(namespaceURI, elementLocalName, namespacePrefix);
    if(namespaceURI != null){
        setElementNamespacePrefix(namespacePrefix);
    }
}
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:16,代码来源:AbstractXMLObject.java

示例15: processAttribute

import org.opensaml.xml.util.XMLHelper; //导入方法依赖的package包/类
/**
 * Unmarshalls the <code>xs:anyAttribute</code> attributes.
 * 
 * {@inheritDoc}
 */
protected void processAttribute(XMLObject xmlObject, Attr attribute) throws UnmarshallingException {
    AttributeExtensibleXMLObject anyAttribute = (AttributeExtensibleXMLObject) xmlObject;
    QName attribQName = XMLHelper.constructQName(attribute.getNamespaceURI(), attribute.getLocalName(), attribute
            .getPrefix());
    if (attribute.isId()) {
        anyAttribute.getUnknownAttributes().registerID(attribQName);
    }
    anyAttribute.getUnknownAttributes().put(attribQName, attribute.getValue());
}
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:15,代码来源:AbstractExtensibleXMLObjectUnmarshaller.java


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