Examples of OrganizationDisplayName


Examples of org.opensaml.saml2.metadata.OrganizationDisplayName

     * {@inheritDoc}
     */
    protected void processAttribute(XMLObject samlObject, Attr attribute) throws UnmarshallingException {
        QName attribName = XMLHelper.getNodeQName(attribute);
        if (LangBearing.XML_LANG_ATTR_NAME.equals(attribName)) {
            OrganizationDisplayName name = (OrganizationDisplayName) samlObject;

            LocalizedString nameStr = name.getName();
            if (nameStr == null) {
                nameStr = new LocalizedString();
            }

            nameStr.setLanguage(attribute.getValue());
            name.setName(nameStr);
        }
    }
View Full Code Here

Examples of org.opensaml.saml2.metadata.OrganizationDisplayName

        }
    }

    /** {@inheritDoc} */
    protected void processElementContent(XMLObject samlObject, String elementContent) {
        OrganizationDisplayName name = (OrganizationDisplayName) samlObject;

        LocalizedString nameStr = name.getName();
        if (nameStr == null) {
            nameStr = new LocalizedString();
        }

        nameStr.setLocalizedString(elementContent);
        name.setName(nameStr);
    }
View Full Code Here

Examples of org.opensaml.saml2.metadata.OrganizationDisplayName

    /**
     * {@inheritDoc}
     */
    protected void marshallAttributes(XMLObject samlObject, Element domElement) throws MarshallingException {
        OrganizationDisplayName name = (OrganizationDisplayName) samlObject;

        if (name.getName() != null) {
            Attr attribute = XMLHelper.constructAttribute(domElement.getOwnerDocument(), SAMLConstants.XML_NS,
                    OrganizationDisplayName.LANG_ATTRIB_NAME, SAMLConstants.XML_PREFIX);
            attribute.setValue(name.getName().getLanguage());
            domElement.setAttributeNodeNS(attribute);
        }
    }
View Full Code Here

Examples of org.opensaml.saml2.metadata.OrganizationDisplayName

        }
    }

    /** {@inheritDoc} */
    protected void marshallElementContent(XMLObject samlObject, Element domElement) throws MarshallingException {
        OrganizationDisplayName name = (OrganizationDisplayName) samlObject;

        if (name.getName() != null) {
            XMLHelper.appendTextContent(domElement, name.getName().getLocalString());
        }
    }
View Full Code Here

Examples of org.opensaml.saml2.metadata.OrganizationDisplayName

     * {@inheritDoc}
     */
    protected void processAttribute(XMLObject samlObject, Attr attribute) throws UnmarshallingException {
        if (attribute.getLocalName().equals(OrganizationDisplayName.LANG_ATTRIB_NAME)
                && attribute.getNamespaceURI().equals(SAMLConstants.XML_NS)) {
            OrganizationDisplayName name = (OrganizationDisplayName) samlObject;

            LocalizedString nameStr = name.getName();
            if (nameStr == null) {
                nameStr = new LocalizedString();
            }

            nameStr.setLanguage(attribute.getValue());
            name.setName(nameStr);
        }
    }
View Full Code Here

Examples of org.opensaml.saml2.metadata.OrganizationDisplayName

        }
    }

    /** {@inheritDoc} */
    protected void processElementContent(XMLObject samlObject, String elementContent) {
        OrganizationDisplayName name = (OrganizationDisplayName) samlObject;

        LocalizedString nameStr = name.getName();
        if (nameStr == null) {
            nameStr = new LocalizedString();
        }

        nameStr.setLocalizedString(elementContent);
        name.setName(nameStr);
    }
View Full Code Here

Examples of org.opensaml.saml2.metadata.OrganizationDisplayName

    /**
     * {@inheritDoc}
     */
    protected void marshallAttributes(XMLObject samlObject, Element domElement) throws MarshallingException {
        OrganizationDisplayName name = (OrganizationDisplayName) samlObject;

        if (name.getName() != null) {
            Attr attribute = XMLHelper.constructAttribute(domElement.getOwnerDocument(), SAMLConstants.XML_NS,
                    OrganizationDisplayName.LANG_ATTRIB_NAME, SAMLConstants.XML_PREFIX);
            attribute.setValue(name.getName().getLanguage());
            domElement.setAttributeNodeNS(attribute);
        }
    }
View Full Code Here

Examples of org.opensaml.saml2.metadata.OrganizationDisplayName

        }
    }

    /** {@inheritDoc} */
    protected void marshallElementContent(XMLObject samlObject, Element domElement) throws MarshallingException {
        OrganizationDisplayName name = (OrganizationDisplayName) samlObject;

        if (name.getName() != null) {
            XMLHelper.appendTextContent(domElement, name.getName().getLocalString());
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.