Examples of ApplyType


Examples of org.dmg.pmml._40.ApplyType

   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public NotificationChain basicSetApply(ApplyType newApply, NotificationChain msgs) {
    ApplyType oldApply = apply;
    apply = newApply;
    if (eNotificationRequired()) {
      ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, _40Package.DERIVED_FIELD_TYPE__APPLY, oldApply, newApply);
      if (msgs == null) msgs = notification; else msgs.add(notification);
    }
View Full Code Here

Examples of org.dmg.pmml._40.ApplyType

   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public NotificationChain basicSetApply(ApplyType newApply, NotificationChain msgs) {
    ApplyType oldApply = apply;
    apply = newApply;
    if (eNotificationRequired()) {
      ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, _40Package.DEFINE_FUNCTION_TYPE__APPLY, oldApply, newApply);
      if (msgs == null) msgs = notification; else msgs.add(notification);
    }
View Full Code Here

Examples of org.jboss.security.xacml.core.model.policy.ApplyType

      FunctionType functionType = new FunctionType();
      functionType.setFunctionId(XACMLConstants.FUNCTION_STRING_EQUAL);
      JAXBElement<ExpressionType> jaxbElementFunctionType = objectFactory.createExpression(functionType);
      permitRuleConditionType.setExpression(jaxbElementFunctionType);

      ApplyType permitRuleApplyType = new ApplyType();
      permitRuleApplyType.setFunctionId(XACMLConstants.FUNCTION_STRING_IS_IN);

      SubjectAttributeDesignatorType sadt = PolicyAttributeFactory.createSubjectAttributeDesignatorType(
            XACMLConstants.ATTRIBUTEID_ROLE, XMLSchemaConstants.DATATYPE_STRING, null, false, null);
      JAXBElement<SubjectAttributeDesignatorType> sadtElement = objectFactory.createSubjectAttributeDesignator(sadt);
      AttributeValueType avt = PolicyAttributeFactory.createStringAttributeType("developer");
      JAXBElement<AttributeValueType> jaxbAVT = objectFactory.createAttributeValue(avt);
      permitRuleApplyType.getExpression().add(jaxbAVT);
      permitRuleApplyType.getExpression().add(sadtElement);

      permitRuleConditionType.setExpression(objectFactory.createApply(permitRuleApplyType));

      permitRule.setCondition(permitRuleConditionType);
View Full Code Here

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

Examples of org.opensaml.xacml.policy.ApplyType

    /** {@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

Examples of org.opensaml.xacml.policy.ApplyType

    }

    /** {@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

Examples of org.opensaml.xacml.policy.ApplyType

    private ApplyHelper() {}

    public static ApplyType buildFunctionAnd() {

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

        return apply;
    }
View Full Code Here

Examples of org.opensaml.xacml.policy.ApplyType

        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

Examples of org.opensaml.xacml.policy.ApplyType

        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

Examples of org.opensaml.xacml.policy.ApplyType

        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
TOP
Copyright © 2018 www.massapi.com. 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.