Package org.opensaml.xml

Examples of org.opensaml.xml.Namespace


     * @param attribute the namespace decleration attribute
     */
    protected void unmarshallNamespaceAttribute(XMLObject xmlObject, Attr attribute) {
        log.trace("{} is a namespace declaration, adding it to the list of namespaces on the XMLObject", XMLHelper
                .getNodeQName(attribute));
        Namespace namespace;
        if(DatatypeHelper.safeEquals(attribute.getLocalName(), XMLConstants.XMLNS_PREFIX)){
            namespace = new Namespace(attribute.getValue(), null);
        }else{
            namespace = new Namespace(attribute.getValue(), attribute.getLocalName());
        }
        namespace.setAlwaysDeclare(true);
        xmlObject.getNamespaceManager().registerNamespaceDeclaration(namespace);
    }
View Full Code Here


    protected void unmarshallNamespaceAttribute(XMLObject xmlObject, Attr attribute) {
        if (log.isTraceEnabled()) {
            log.trace("{} is a namespace declaration, adding it to the list of namespaces on the XMLObject",
                    XMLHelper.getNodeQName(attribute));
        }
        Namespace namespace;
        if(DatatypeHelper.safeEquals(attribute.getLocalName(), XMLConstants.XMLNS_PREFIX)){
            namespace = new Namespace(attribute.getValue(), null);
        }else{
            namespace = new Namespace(attribute.getValue(), attribute.getLocalName());
        }
        namespace.setAlwaysDeclare(true);
        xmlObject.getNamespaceManager().registerNamespaceDeclaration(namespace);
    }
View Full Code Here

     * @param attribute the namespace decleration attribute
     */
    protected void unmarshallNamespaceAttribute(XMLObject xmlObject, Attr attribute) {
        log.trace("{} is a namespace declaration, adding it to the list of namespaces on the XMLObject", XMLHelper
                .getNodeQName(attribute));
        Namespace namespace;
        if(DatatypeHelper.safeEquals(attribute.getLocalName(), XMLConstants.XMLNS_PREFIX)){
            namespace = new Namespace(attribute.getValue(), null);
        }else{
            namespace = new Namespace(attribute.getValue(), attribute.getLocalName());
        }
        namespace.setAlwaysDeclare(true);
        xmlObject.getNamespaceManager().registerNamespaceDeclaration(namespace);
    }
View Full Code Here

    /** {@inheritDoc} */
    public void setValue(QName newValue) {
        this.value = prepareForAssignment(this.value, newValue);
        if(value != null){
            addNamespace(new Namespace(value.getNamespaceURI(), value.getPrefix()));
        }
    }
View Full Code Here

    }

    /** {@inheritDoc} */
    public void setValue(QName newValue) {
        value = prepareForAssignment(value, newValue);
        addNamespace(new Namespace(value.getNamespaceURI(), value.getPrefix()));
    }
View Full Code Here

TOP

Related Classes of org.opensaml.xml.Namespace

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.