Package org.opensaml.xacml.policy

Examples of org.opensaml.xacml.policy.ApplyType


    }
   
   
    /** {@inheritDoc} */
    protected void marshallAttributes(XMLObject xmlObject, Element domElement) throws MarshallingException {
        ApplyType applyType = (ApplyType)xmlObject;
       
        if(!DatatypeHelper.isEmpty(applyType.getFunctionId())){
            domElement.setAttribute(ApplyType.FUNCTION_ID_ATTRIB_NAME, applyType.getFunctionId());
        }

    }
View Full Code Here


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

        if (attribute.getLocalName().equals(ApplyType.FUNCTION_ID_ATTRIB_NAME)) {
            ApplyType applyType = (ApplyType) xmlObject;
            applyType.setFunctionId(DatatypeHelper.safeTrimOrNullString(attribute.getValue()));
        } else {
            super.processAttribute(xmlObject, attribute);
        }

    }
View Full Code Here

    }

    /** {@inheritDoc} */
    protected void processChildElement(XMLObject parentXMLObject, XMLObject childXMLObject)
            throws UnmarshallingException {
        ApplyType applayType = (ApplyType) parentXMLObject;
        if (childXMLObject instanceof ExpressionType) {
            ExpressionType expression = (ExpressionType) childXMLObject;
            applayType.getExpressions().add(expression);
        } else {
            super.processChildElement(parentXMLObject, childXMLObject);
        }
    }
View Full Code Here

    private ApplyHelper() {}

    public static ApplyType buildFunctionAnd() {

        ApplyType apply = (ApplyType) builderFactory.getBuilder(elementQName).buildObject(elementQName);
        apply.setFunctionId(Functions.AND);

        return apply;
    }
View Full Code Here

        return apply;
    }

    public static ApplyType buildFunctionAnyOf() {

        ApplyType apply = (ApplyType) builderFactory.getBuilder(elementQName).buildObject(elementQName);
        apply.setFunctionId(Functions.ANY_OF);

        return apply;
    }
View Full Code Here

        return apply;
    }

    public static ApplyType buildFunctionAnyOfAll() {

        ApplyType apply = (ApplyType) builderFactory.getBuilder(elementQName).buildObject(elementQName);
        apply.setFunctionId(Functions.ANY_OF_ALL);

        return apply;
    }
View Full Code Here

        return apply;
    }

    public static ApplyType buildFunctionAnyOfAny() {

        ApplyType apply = (ApplyType) builderFactory.getBuilder(elementQName).buildObject(elementQName);
        apply.setFunctionId(Functions.ANY_OF_ANY);

        return apply;
    }
View Full Code Here

        return apply;
    }

    public static ApplyType buildFunctionNot() {

        ApplyType apply = (ApplyType) builderFactory.getBuilder(elementQName).buildObject(elementQName);
        apply.setFunctionId(Functions.NOT);
        return apply;
    }
View Full Code Here

        return apply;
    }

    public static ApplyType buildFunctionOr() {

        ApplyType apply = (ApplyType) builderFactory.getBuilder(elementQName).buildObject(elementQName);
        apply.setFunctionId(Functions.OR);

        return apply;
    }
View Full Code Here

        return apply;
    }

    public static ApplyType buildFunctionStringBag() {

        ApplyType apply = (ApplyType) builderFactory.getBuilder(elementQName).buildObject(elementQName);
        apply.setFunctionId(Functions.STRING_BAG);

        return apply;
    }
View Full Code Here

TOP

Related Classes of org.opensaml.xacml.policy.ApplyType

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.