nbi.xmlsec.xacml.builder
Class StringResourceMatchBuilder

java.lang.Object
  extended bynbi.xmlsec.xacml.builder.TargetMatchBuilder
      extended bynbi.xmlsec.xacml.builder.ResourceMatchBuilder
          extended bynbi.xmlsec.xacml.builder.StringResourceMatchBuilder

public class StringResourceMatchBuilder
extends ResourceMatchBuilder

Implements an ResourceMatchBuilder 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
StringResourceMatchBuilder()
           
StringResourceMatchBuilder(String resource)
          Creates the instance and selects the EqualFunction.NAME_STRING_EQUAL.
StringResourceMatchBuilder(String resource, 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

StringResourceMatchBuilder

public StringResourceMatchBuilder()

StringResourceMatchBuilder

public StringResourceMatchBuilder(String resource,
                                  boolean match)
Creates the instance.

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

StringResourceMatchBuilder

public StringResourceMatchBuilder(String resource)
Creates the instance and selects the EqualFunction.NAME_STRING_EQUAL.

Parameters:
resource - The String resource 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 ResourceMatchBuilder
Returns:
The created attribute value.
See Also:
TargetMatchBuilder.createMatchValue()


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