idman.neg.impl
Class AppelRuleImpl

java.lang.Object
  |
  +--idman.neg.impl.AppelRuleImpl

public class AppelRuleImpl
extends java.lang.Object

Represents one extended appel rule. Uses a subclass of org.p4pp.p3p.appel.ruleset.AppelRule and adds some additional functionality.

Since:
11. 07. 02
Version:
$Id: AppelRuleImpl.java,v 1.15 2003/12/05 08:56:41 tk4 Exp $
Author:
Sven Doering

Field Summary
static java.lang.String BLOCK
          standard behavior block
static boolean debug
          debugflag
static java.lang.String LIMITED
          standard behavior limited
static java.lang.String NEGOTIATE
          new behavior negotiate
static java.lang.String REQUEST
          standard behavior request
 
Constructor Summary
AppelRuleImpl(org.w3c.dom.Element element)
          Creates the object.
 
Method Summary
 boolean fires(org.p4pp.p3p.appel.ruleset.Evidence evidence)
          Returns true if the rule fired.
(package private)  java.lang.String getBehavior()
          Returns the behavior as String.
(package private)  java.util.List getRequiredData()
          Returns the demanded data.
(package private)  java.lang.String[] getRequiredPurpose()
           
(package private)  java.lang.String[] getRequiredRecipient()
           
(package private)  java.lang.String getRequiredRetention()
           
(package private)  java.lang.String getRuleNamedData()
          Returns the data-element-name from inside the appelrule.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

debug

public static boolean debug
debugflag


REQUEST

public static final java.lang.String REQUEST
standard behavior request

See Also:
Constant Field Values

BLOCK

public static final java.lang.String BLOCK
standard behavior block

See Also:
Constant Field Values

LIMITED

public static final java.lang.String LIMITED
standard behavior limited

See Also:
Constant Field Values

NEGOTIATE

public static final java.lang.String NEGOTIATE
new behavior negotiate

See Also:
Constant Field Values
Constructor Detail

AppelRuleImpl

public AppelRuleImpl(org.w3c.dom.Element element)
              throws java.lang.Exception
Creates the object.

Parameters:
element - <RULE>
Method Detail

fires

public boolean fires(org.p4pp.p3p.appel.ruleset.Evidence evidence)
              throws org.p4pp.p3p.appel.ruleset.InvalidRulesetException,
                     org.p4pp.p3p.document.InvalidPolicyException
Returns true if the rule fired.

Parameters:
evidence - Evidence to evaluate
Returns:
boolean true, if rule fires; false otherwise
org.p4pp.p3p.appel.ruleset.InvalidRulesetException
org.p4pp.p3p.document.InvalidPolicyException

getBehavior

java.lang.String getBehavior()
                       throws java.lang.Exception
Returns the behavior as String.

Returns:
String behavior
java.lang.Exception

getRequiredData

java.util.List getRequiredData()
                         throws java.lang.Exception
Returns the demanded data.

Returns:
PersonalData data or null if the behavior is not "negotiate"
java.lang.Exception

getRequiredRecipient

java.lang.String[] getRequiredRecipient()
                                  throws java.lang.Exception
java.lang.Exception

getRequiredPurpose

java.lang.String[] getRequiredPurpose()
                                throws java.lang.Exception
java.lang.Exception

getRequiredRetention

java.lang.String getRequiredRetention()
                                throws java.lang.Exception
java.lang.Exception

getRuleNamedData

java.lang.String getRuleNamedData()
                            throws java.lang.Exception
Returns the data-element-name from inside the appelrule. In case of "block" behavior, this method should not be used.

Returns:
String p3p-data-name
java.lang.Exception


Copyright © 2003 DRIM Team. All Rights Reserved.