Package org.opensaml.ws.wsaddressing

Examples of org.opensaml.ws.wsaddressing.RelatesTo


*/
public class RelatesToMarshaller extends XSURIMarshaller {

    /** {@inheritDoc} */
    protected void marshallAttributes(XMLObject xmlObject, Element domElement) throws MarshallingException {
        RelatesTo relatesTo = (RelatesTo) xmlObject;
       
        String relationshipType = DatatypeHelper.safeTrimOrNullString(relatesTo.getRelationshipType());
        if (relationshipType != null) {
            domElement.setAttributeNS(null, RelatesTo.RELATIONSHIP_TYPE_ATTRIB_NAME, relationshipType);
        }
       
        XMLHelper.marshallAttributeMap(relatesTo.getUnknownAttributes(), domElement);
    }
View Full Code Here


*/
public class RelatesToUnmarshaller extends XSURIUnmarshaller {

    /** {@inheritDoc} */
    protected void processAttribute(XMLObject xmlObject, Attr attribute) throws UnmarshallingException {
        RelatesTo relatesTo = (RelatesTo) xmlObject;
       
        if (RelatesTo.RELATIONSHIP_TYPE_ATTRIB_NAME.equals(attribute.getLocalName())) {
            relatesTo.setRelationshipType(DatatypeHelper.safeTrimOrNullString(attribute.getValue()));
        } else {
            XMLHelper.unmarshallToAttributeMap(relatesTo.getUnknownAttributes(), attribute);
        }
    }
View Full Code Here

*/
public class RelatesToMarshaller extends XSURIMarshaller {

    /** {@inheritDoc} */
    protected void marshallAttributes(XMLObject xmlObject, Element domElement) throws MarshallingException {
        RelatesTo relatesTo = (RelatesTo) xmlObject;
       
        String relationshipType = DatatypeHelper.safeTrimOrNullString(relatesTo.getRelationshipType());
        if (relationshipType != null) {
            domElement.setAttributeNS(null, RelatesTo.RELATIONSHIP_TYPE_ATTRIB_NAME, relationshipType);
        }
       
        XMLHelper.marshallAttributeMap(relatesTo.getUnknownAttributes(), domElement);
    }
View Full Code Here

*/
public class RelatesToUnmarshaller extends XSURIUnmarshaller {

    /** {@inheritDoc} */
    protected void processAttribute(XMLObject xmlObject, Attr attribute) throws UnmarshallingException {
        RelatesTo relatesTo = (RelatesTo) xmlObject;
       
        if (RelatesTo.RELATIONSHIP_TYPE_ATTRIB_NAME.equals(attribute.getLocalName())) {
            relatesTo.setRelationshipType(DatatypeHelper.safeTrimOrNullString(attribute.getValue()));
        } else {
            XMLHelper.unmarshallToAttributeMap(relatesTo.getUnknownAttributes(), attribute);
        }
    }
View Full Code Here

TOP

Related Classes of org.opensaml.ws.wsaddressing.RelatesTo

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.