Code example for QName

Methods: getLocalPart, getNamespaceURI, getPrefix

0
     * @param objectQName: QName of the object to be built into a XMLObject 
     * @return built xmlObject 
     * @throws EntitlementAgentException 
     */ 
    private XMLObject buildXMLObject(QName objectQName) throws EntitlementAgentException {
        XMLObjectBuilder builder = org.opensaml.xml.Configuration.getBuilderFactory().getBuilder(objectQName);
        if (builder == null) {
            throw new EntitlementAgentException("Unable to retrieve builder for object QName " 
                    + objectQName);
        } 
        return builder.buildObject(objectQName.getNamespaceURI(), objectQName.getLocalPart(),
                objectQName.getPrefix());
    } 
 
    /** 
     * Create the issuer object to be added 
     * 
     * @return : the issuer of the statements 
     */ 
    private static Issuer createIssuer() {