Package org.opensaml.ws.wssecurity

Examples of org.opensaml.ws.wssecurity.AttributedDateTime


*/
public class AttributedDateTimeMarshaller extends AbstractWSSecurityObjectMarshaller {

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


       
    }

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

*/
public class AttributedDateTimeUnmarshaller extends AbstractWSSecurityObjectUnmarshaller {
   
    /** {@inheritDoc} */
    protected void processAttribute(XMLObject xmlObject, Attr attribute) throws UnmarshallingException {
        AttributedDateTime dateTime = (AttributedDateTime) xmlObject;
       
        QName attrName =
            XMLHelper.constructQName(attribute.getNamespaceURI(), attribute.getLocalName(), attribute.getPrefix());
        if (AttributedDateTime.WSU_ID_ATTR_NAME.equals(attrName)) {
            dateTime.setWSUId(attribute.getValue());
            attribute.getOwnerElement().setIdAttributeNode(attribute, true);
        } else {
            XMLHelper.unmarshallToAttributeMap(dateTime.getUnknownAttributes(), attribute);
        }
    }
View Full Code Here

        }
    }

    /** {@inheritDoc} */
    protected void processElementContent(XMLObject xmlObject, String elementContent) {
        AttributedDateTime dateTime = (AttributedDateTime) xmlObject;
        if (!DatatypeHelper.isEmpty(elementContent)) {
            dateTime.setValue(elementContent);
        }
    }
View Full Code Here

*/
public class AttributedDateTimeUnmarshaller extends AbstractWSSecurityObjectUnmarshaller {
   
    /** {@inheritDoc} */
    protected void processAttribute(XMLObject xmlObject, Attr attribute) throws UnmarshallingException {
        AttributedDateTime dateTime = (AttributedDateTime) xmlObject;
       
        QName attrName =
            XMLHelper.constructQName(attribute.getNamespaceURI(), attribute.getLocalName(), attribute.getPrefix());
        if (AttributedDateTime.WSU_ID_ATTR_NAME.equals(attrName)) {
            dateTime.setWSUId(attribute.getValue());
            attribute.getOwnerElement().setIdAttributeNode(attribute, true);
        } else {
            XMLHelper.unmarshallToAttributeMap(dateTime.getUnknownAttributes(), attribute);
        }
    }
View Full Code Here

        }
    }

    /** {@inheritDoc} */
    protected void processElementContent(XMLObject xmlObject, String elementContent) {
        AttributedDateTime dateTime = (AttributedDateTime) xmlObject;
        if (!DatatypeHelper.isEmpty(elementContent)) {
            dateTime.setValue(elementContent);
        }
    }
View Full Code Here

*/
public class AttributedDateTimeMarshaller extends AbstractWSSecurityObjectMarshaller {

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

       
    }

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

TOP

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

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.