Class Rule

  • All Implemented Interfaces:
    XACMLRootElement

    public class Rule
    extends Object
    implements XACMLRootElement

    Java class for RuleType complex type.

    The following schema fragment specifies the expected content contained within this class.

     <complexType name="RuleType">
       <complexContent>
         <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
           <sequence>
             <element ref="{urn:oasis:names:tc:xacml:3.0:core:schema:wd-17}Description" minOccurs="0"/>
             <element ref="{urn:oasis:names:tc:xacml:3.0:core:schema:wd-17}Target" minOccurs="0"/>
             <element ref="{urn:oasis:names:tc:xacml:3.0:core:schema:wd-17}Condition" minOccurs="0"/>
             <element ref="{urn:oasis:names:tc:xacml:3.0:core:schema:wd-17}ObligationExpressions" minOccurs="0"/>
             <element ref="{urn:oasis:names:tc:xacml:3.0:core:schema:wd-17}AdviceExpressions" minOccurs="0"/>
           </sequence>
           <attribute name="RuleId" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
           <attribute name="Effect" use="required" type="{urn:oasis:names:tc:xacml:3.0:core:schema:wd-17}EffectType" />
         </restriction>
       </complexContent>
     </complexType>
     
    • Constructor Detail

      • Rule

        public Rule()
    • Method Detail

      • getDescription

        public String getDescription()
        Gets the value of the description property.
        Returns:
        possible object is String
      • setDescription

        public void setDescription​(String value)
        Sets the value of the description property.
        Parameters:
        value - allowed object is String
      • getTarget

        public Target getTarget()
        Gets the value of the target property.
        Returns:
        possible object is Target
      • setTarget

        public void setTarget​(Target value)
        Sets the value of the target property.
        Parameters:
        value - allowed object is Target
      • getCondition

        public Condition getCondition()
        Gets the value of the condition property.
        Returns:
        possible object is Condition
      • setCondition

        public void setCondition​(Condition value)
        Sets the value of the condition property.
        Parameters:
        value - allowed object is Condition
      • setObligationExpressions

        public void setObligationExpressions​(ObligationExpressions value)
        Sets the value of the obligationExpressions property.
        Parameters:
        value - allowed object is ObligationExpressions
      • setAdviceExpressions

        public void setAdviceExpressions​(AdviceExpressions value)
        Sets the value of the adviceExpressions property.
        Parameters:
        value - allowed object is AdviceExpressions
      • getRuleId

        public String getRuleId()
        Gets the value of the ruleId property.
        Returns:
        possible object is String
      • setRuleId

        public void setRuleId​(String value)
        Sets the value of the ruleId property.
        Parameters:
        value - allowed object is String
      • getEffect

        public EffectType getEffect()
        Gets the value of the effect property.
        Returns:
        possible object is EffectType
      • setEffect

        public void setEffect​(EffectType value)
        Sets the value of the effect property.
        Parameters:
        value - allowed object is EffectType
      • toXML

        public String toXML()
        Default toXML Method to Marshal Object into XML.
        Specified by:
        toXML in interface XACMLRootElement
        Returns:
        String - Marshaled Results into XML String.