Package org.opensaml.xacml.ctx

Examples of org.opensaml.xacml.ctx.ResourceContentType


        super(targetNamespaceURI, targetLocalName);
    }

    /** {@inheritDoc} */
    protected void marshallAttributes(XMLObject xmlObject, Element domElement) throws MarshallingException {
        ResourceContentType resourceContent  = (ResourceContentType)xmlObject;
       
        Attr attribute;
        for (Entry<QName, String> entry : resourceContent.getUnknownAttributes().entrySet()) {
            attribute = XMLHelper.constructAttribute(domElement.getOwnerDocument(), entry.getKey());
            attribute.setValue(entry.getValue());
            domElement.setAttributeNodeNS(attribute);
            if (Configuration.isIDAttribute(entry.getKey())
                    || resourceContent.getUnknownAttributes().isIDAttribute(entry.getKey())) {
                attribute.getOwnerElement().setIdAttributeNode(attribute, true);
            }
        }
    }
View Full Code Here


        }
    }

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

        super(targetNamespaceURI, targetLocalName);
    }

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

        QName attribQName = XMLHelper.getNodeQName(attribute);
        if (attribute.isId()) {
            resourceContent.getUnknownAttributes().registerID(attribQName);
        }
        resourceContent.getUnknownAttributes().put(attribQName, attribute.getValue());
    }
View Full Code Here

    }

    /** {@inheritDoc} */
    protected void processChildElement(XMLObject parentXMLObject, XMLObject childXMLObject)
            throws UnmarshallingException {
        ResourceContentType resourceContent = (ResourceContentType) parentXMLObject;
        resourceContent.getUnknownXMLObjects().add(childXMLObject);
    }
View Full Code Here

        resourceContent.getUnknownXMLObjects().add(childXMLObject);
    }

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

TOP

Related Classes of org.opensaml.xacml.ctx.ResourceContentType

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.