nbi.xmlsec.xacml.builder
Class StringActionMatchBuilder

java.lang.Object
  extended bynbi.xmlsec.xacml.builder.TargetMatchBuilder
      extended bynbi.xmlsec.xacml.builder.ActionMatchBuilder
          extended bynbi.xmlsec.xacml.builder.StringActionMatchBuilder

public class StringActionMatchBuilder
extends ActionMatchBuilder

Implements an ActionMatchBuilder for String attributes.

Since:
Version:
$Revision: 1.1 $
Author:
Lutz Suhrbier

Field Summary
 
Fields inherited from class nbi.xmlsec.xacml.builder.TargetMatchBuilder
attribute, eval, function, type
 
Constructor Summary
StringActionMatchBuilder()
           
StringActionMatchBuilder(String action)
          Creates the instance and selects the EqualFunction.NAME_STRING_EQUAL.
StringActionMatchBuilder(String action, boolean match)
          Creates the instance.
 
Method Summary
 AttributeValue createMatchValue()
          Creates the attribute match value from the attribute.
 void setAttribute(String attr)
          Sets an String attribute.
 
Methods inherited from class nbi.xmlsec.xacml.builder.TargetMatchBuilder
getInstance, setAttribute, setMatchEvaluatable, setMatchEvaluatable, setMatchFunction, setMatchFunction
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringActionMatchBuilder

public StringActionMatchBuilder()

StringActionMatchBuilder

public StringActionMatchBuilder(String action,
                                boolean match)
Creates the instance.

Parameters:
action - The String resource to match.
match - true, selects the MatchFunction.NAME_REGEXP_STRING_MATCH function, false EqualFunction.NAME_STRING_EQUAL.

StringActionMatchBuilder

public StringActionMatchBuilder(String action)
Creates the instance and selects the EqualFunction.NAME_STRING_EQUAL.

Parameters:
action - The String action to match.
Method Detail

setAttribute

public void setAttribute(String attr)
Sets an String attribute.

Parameters:
attr - The String attribute.

createMatchValue

public AttributeValue createMatchValue()
Creates the attribute match value from the attribute.

Overrides:
createMatchValue in class ActionMatchBuilder
Returns:
The created attribute value.


Copyright © 2006 Lutz Suhrbier, Freie Universität Berlin. All Rights Reserved.