Code example for QName

Methods: getLocalPart, getNamespaceURI, getPrefix

0
    public Element getSAMLasDOM() throws IdentityProviderException {
        return signedAssertion;
    } 
 
    protected static XMLObject buildXMLObject(QName objectQName) throws IdentityProviderException {
        XMLObjectBuilder builder = Configuration.getBuilderFactory().getBuilder(objectQName);
        if (builder == null) {
            throw new IdentityProviderException("Unable to retrieve builder for object QName " 
                    + objectQName);
        } 
        return builder.buildObject(objectQName.getNamespaceURI(), objectQName.getLocalPart(),
                objectQName.getPrefix());
    } 
 
}