Package org.opensaml.xml.encryption

Examples of org.opensaml.xml.encryption.ReferenceType


*/
public class ReferenceTypeMarshaller extends AbstractXMLEncryptionMarshaller {

    /** {@inheritDoc} */
    protected void marshallAttributes(XMLObject xmlObject, Element domElement) throws MarshallingException {
        ReferenceType rt = (ReferenceType) xmlObject;

        if (rt.getURI() != null) {
            domElement.setAttributeNS(null, ReferenceType.URI_ATTRIB_NAME, rt.getURI());
        } else {
            super.marshallAttributes(xmlObject, domElement);
        }
    }
View Full Code Here


*/
public class ReferenceTypeUnmarshaller extends AbstractXMLEncryptionUnmarshaller {

    /** {@inheritDoc} */
    protected void processAttribute(XMLObject xmlObject, Attr attribute) throws UnmarshallingException {
        ReferenceType rt = (ReferenceType) xmlObject;

        if (attribute.getLocalName().equals(ReferenceType.URI_ATTRIB_NAME)) {
            rt.setURI(attribute.getValue());
        } else {
            super.processAttribute(xmlObject, attribute);
        }
    }
View Full Code Here

    }

    /** {@inheritDoc} */
    protected void processChildElement(XMLObject parentXMLObject, XMLObject childXMLObject)
            throws UnmarshallingException {
        ReferenceType rt = (ReferenceType) parentXMLObject;

        rt.getUnknownXMLObjects().add(childXMLObject);
    }
View Full Code Here

*/
public class ReferenceTypeMarshaller extends AbstractXMLEncryptionMarshaller {

    /** {@inheritDoc} */
    protected void marshallAttributes(XMLObject xmlObject, Element domElement) throws MarshallingException {
        ReferenceType rt = (ReferenceType) xmlObject;

        if (rt.getURI() != null) {
            domElement.setAttributeNS(null, ReferenceType.URI_ATTRIB_NAME, rt.getURI());
        } else {
            super.marshallAttributes(xmlObject, domElement);
        }
    }
View Full Code Here

*/
public class ReferenceTypeUnmarshaller extends AbstractXMLEncryptionUnmarshaller {

    /** {@inheritDoc} */
    protected void processAttribute(XMLObject xmlObject, Attr attribute) throws UnmarshallingException {
        ReferenceType rt = (ReferenceType) xmlObject;

        if (attribute.getLocalName().equals(ReferenceType.URI_ATTRIB_NAME)) {
            rt.setURI(attribute.getValue());
        } else {
            super.processAttribute(xmlObject, attribute);
        }
    }
View Full Code Here

    }

    /** {@inheritDoc} */
    protected void processChildElement(XMLObject parentXMLObject, XMLObject childXMLObject)
            throws UnmarshallingException {
        ReferenceType rt = (ReferenceType) parentXMLObject;

        rt.getUnknownXMLObjects().add(childXMLObject);
    }
View Full Code Here

TOP

Related Classes of org.opensaml.xml.encryption.ReferenceType

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.