Package org.opensaml.ws.wssecurity

Examples of org.opensaml.ws.wssecurity.AttributedString


*/
public class AttributedStringUnmarshaller extends AbstractWSSecurityObjectUnmarshaller {

    /** {@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);
        }
    }
View Full Code Here


        }
    }

    /** {@inheritDoc} */
    protected void processElementContent(XMLObject xmlObject, String elementContent) {
        AttributedString attributedString = (AttributedString) xmlObject;
        attributedString.setValue(elementContent);
    }
View Full Code Here

*/
public class AttributedStringMarshaller extends AbstractWSSecurityObjectMarshaller {

    /** {@inheritDoc} */
    protected void marshallAttributes(XMLObject xmlObject, Element domElement) throws MarshallingException {
        AttributedString attributedString = (AttributedString) xmlObject;
       
        if (!DatatypeHelper.isEmpty(attributedString.getWSUId())) {
            XMLHelper.marshallAttribute(AttributedString.WSU_ID_ATTR_NAME, attributedString.getWSUId(), domElement, true);
        }
       
        XMLHelper.marshallAttributeMap(attributedString.getUnknownAttributes(), domElement);
       
    }
View Full Code Here

       
    }

    /** {@inheritDoc} */
    protected void marshallElementContent(XMLObject xmlObject, Element domElement) throws MarshallingException {
        AttributedString attributedString = (AttributedString) xmlObject;
        XMLHelper.appendTextContent(domElement, attributedString.getValue());
    }
View Full Code Here

*/
public class AttributedStringMarshaller extends AbstractWSSecurityObjectMarshaller {

    /** {@inheritDoc} */
    protected void marshallAttributes(XMLObject xmlObject, Element domElement) throws MarshallingException {
        AttributedString attributedString = (AttributedString) xmlObject;
       
        if (!DatatypeHelper.isEmpty(attributedString.getWSUId())) {
            XMLHelper.marshallAttribute(AttributedString.WSU_ID_ATTR_NAME, attributedString.getWSUId(), domElement, true);
        }
       
        XMLHelper.marshallAttributeMap(attributedString.getUnknownAttributes(), domElement);
       
    }
View Full Code Here

       
    }

    /** {@inheritDoc} */
    protected void marshallElementContent(XMLObject xmlObject, Element domElement) throws MarshallingException {
        AttributedString attributedString = (AttributedString) xmlObject;
        XMLHelper.appendTextContent(domElement, attributedString.getValue());
    }
View Full Code Here

*/
public class AttributedStringUnmarshaller extends AbstractWSSecurityObjectUnmarshaller {

    /** {@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);
        }
    }
View Full Code Here

        }
    }

    /** {@inheritDoc} */
    protected void processElementContent(XMLObject xmlObject, String elementContent) {
        AttributedString attributedString = (AttributedString) xmlObject;
        attributedString.setValue(elementContent);
    }
View Full Code Here

TOP

Related Classes of org.opensaml.ws.wssecurity.AttributedString

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.