org.opensaml.xacml.policy.impl
Class RuleTypeImpl

java.lang.Object
  extended by org.opensaml.xml.AbstractXMLObject
      extended by org.opensaml.xml.validation.AbstractValidatingXMLObject
          extended by org.opensaml.xacml.impl.AbstractXACMLObject
              extended by org.opensaml.xacml.policy.impl.RuleTypeImpl
All Implemented Interfaces:
RuleType, XACMLObject, ValidatingXMLObject, XMLObject

public class RuleTypeImpl
extends AbstractXACMLObject
implements RuleType

Implementation for RuleType.


Field Summary
private  ConditionType condition
          Condition of the policy.
private  DescriptionType description
          Dscription of the rule.
private  EffectType effectType
          Effect type of the rule.
private  String ruleId
          The id of the rule.
private  TargetType target
          The rule target.
 
Fields inherited from interface org.opensaml.xacml.policy.RuleType
DEFAULT_ELEMENT_LOCAL_NAME, DEFAULT_ELEMENT_NAME, EFFECT_ATTRIB_NAME, RULE_ID_ATTRIB_NAME, SCHEMA_TYPE_LOCAL_NAME, SCHEMA_TYPE_NAME
 
Constructor Summary
protected RuleTypeImpl(String namespaceURI, String elementLocalName, String namespacePrefix)
          Constructor.
 
Method Summary
 ConditionType getCondition()
          Gets the condition for this rule.
 DescriptionType getDescription()
          Gets the description of this rule.
 EffectType getEffect()
          Gets the effect of the rule.
 List<XMLObject> getOrderedChildren()
          
 String getRuleId()
          Gets the ID for this rule.
 TargetType getTarget()
          Gets the target of this rule.
 void setCondition(ConditionType newCondition)
          Sets the the condition for this rule.
 void setDescription(DescriptionType newDescription)
          Sets the description of this rule.
 void setEffect(EffectType type)
          Sets the effect of the rule.
 void setRuleId(String id)
          Sets the ID for this rule.
 void setTarget(TargetType newTarget)
          Sets the target of this rule.
 
Methods inherited from class org.opensaml.xml.validation.AbstractValidatingXMLObject
deregisterValidator, getValidators, registerValidator, validate, validateChildren
 
Methods inherited from class org.opensaml.xml.AbstractXMLObject
addNamespace, detach, getDOM, getElementQName, getIDIndex, getNamespaceManager, getNamespaces, getNoNamespaceSchemaLocation, getParent, getSchemaLocation, getSchemaType, hasChildren, hasParent, isNil, isNilXSBoolean, manageQualifiedAttributeNamespace, prepareAttributeValueForAssignment, prepareElementContentForAssignment, prepareForAssignment, prepareForAssignment, prepareForAssignment, prepareForAssignment, registerOwnID, releaseChildrenDOM, releaseDOM, releaseParentDOM, releaseThisAndChildrenDOM, releaseThisandParentDOM, removeNamespace, resolveID, resolveIDFromRoot, setDOM, setElementNamespacePrefix, setElementQName, setNil, setNil, setNoNamespaceSchemaLocation, setParent, setSchemaLocation, setSchemaType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.opensaml.xml.validation.ValidatingXMLObject
deregisterValidator, getValidators, registerValidator, validate
 
Methods inherited from interface org.opensaml.xml.XMLObject
addNamespace, detach, getDOM, getElementQName, getIDIndex, getNamespaceManager, getNamespaces, getNoNamespaceSchemaLocation, getParent, getSchemaLocation, getSchemaType, hasChildren, hasParent, isNil, isNilXSBoolean, releaseChildrenDOM, releaseDOM, releaseParentDOM, removeNamespace, resolveID, resolveIDFromRoot, setDOM, setNil, setNil, setNoNamespaceSchemaLocation, setParent, setSchemaLocation
 

Field Detail

condition

private ConditionType condition
Condition of the policy.


target

private TargetType target
The rule target.


description

private DescriptionType description
Dscription of the rule.


effectType

private EffectType effectType
Effect type of the rule.


ruleId

private String ruleId
The id of the rule.

Constructor Detail

RuleTypeImpl

protected RuleTypeImpl(String namespaceURI,
                       String elementLocalName,
                       String namespacePrefix)
Constructor.

Parameters:
namespaceURI - the namespace the element is in
elementLocalName - the local name of the XML element this Object represents
namespacePrefix - the prefix for the given namespace
Method Detail

getCondition

public ConditionType getCondition()
Gets the condition for this rule.

Specified by:
getCondition in interface RuleType
Returns:
the condition for this rule

getDescription

public DescriptionType getDescription()
Gets the description of this rule.

Specified by:
getDescription in interface RuleType
Returns:
description of this rule

getEffect

public EffectType getEffect()
Gets the effect of the rule.

Specified by:
getEffect in interface RuleType
Returns:
the effect of the rule

getRuleId

public String getRuleId()
Gets the ID for this rule.

Specified by:
getRuleId in interface RuleType
Returns:
the ID for this rule

getTarget

public TargetType getTarget()
Gets the target of this rule.

Specified by:
getTarget in interface RuleType
Returns:
the target of this rule

setCondition

public void setCondition(ConditionType newCondition)
Sets the the condition for this rule.

Specified by:
setCondition in interface RuleType
Parameters:
newCondition - the condition for this rule

setDescription

public void setDescription(DescriptionType newDescription)
Sets the description of this rule.

Specified by:
setDescription in interface RuleType
Parameters:
newDescription - the description of this rule

setEffect

public void setEffect(EffectType type)
Sets the effect of the rule.

Specified by:
setEffect in interface RuleType
Parameters:
type - the effect of the rule

setRuleId

public void setRuleId(String id)
Sets the ID for this rule.

Specified by:
setRuleId in interface RuleType
Parameters:
id - the ID for this rule

setTarget

public void setTarget(TargetType newTarget)
Sets the target of this rule.

Specified by:
setTarget in interface RuleType
Parameters:
newTarget - the target of this rule

getOrderedChildren

public List<XMLObject> getOrderedChildren()

Specified by:
getOrderedChildren in interface XMLObject


Copyright © 1999-2012. All Rights Reserved.