Package org.opensaml.xacml.policy

Examples of org.opensaml.xacml.policy.FunctionType


   
    /** {@inheritDoc} */
    protected void processAttribute(XMLObject xmlObject, Attr attribute) throws UnmarshallingException {
       
        if(attribute.getLocalName().equals(FunctionType.FUNCTION_ID_ATTRIB_NAME)){
            FunctionType functionType = (FunctionType) xmlObject;
            functionType.setFunctionId(DatatypeHelper.safeTrimOrNullString(attribute.getValue()));
        } else {
            super.processAttribute(xmlObject, attribute);
        }

    }
View Full Code Here


        super();
    }
   
    /** {@inheritDoc} */
    protected void marshallAttributes(XMLObject xmlObject, Element domElement) throws MarshallingException {
        FunctionType functionType = (FunctionType) xmlObject;
        if(!DatatypeHelper.isEmpty(functionType.getFunctionId())){
            domElement.setAttribute(FunctionType.FUNCTION_ID_ATTRIB_NAME,functionType.getFunctionId());
        }
    }
View Full Code Here

    private FunctionHelper() {}

    public static FunctionType build(String functionId) {
       
        FunctionType function = (FunctionType) builderFactory.getBuilder(
                elementQName).buildObject(elementQName);
       
        function.setFunctionId(functionId);
       
        return function;
    }
View Full Code Here

TOP

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

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.