nbi.xmlsec.xacml.builder
Class PolicyReferenceBuilder

java.lang.Object
  extended bynbi.xmlsec.xacml.builder.AbstractPolicyTreeElementBuilder
      extended bynbi.xmlsec.xacml.builder.AbstractPolicyBuilder
          extended bynbi.xmlsec.xacml.builder.PolicyReferenceBuilder
All Implemented Interfaces:
PolicyTreeElementBuilder, XACMLObjectBuilder

public class PolicyReferenceBuilder
extends AbstractPolicyBuilder

Class to create policy reference instances.

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

Field Summary
(package private)  PolicyFinder finder
          The PolicyFinder used to handle the reference.
(package private)  int type
          The type of the policy reference ( PolicyReference.POLICYSET_REFERENCE or PolicyReference.POLICY_REFERENCE).
 
Fields inherited from class nbi.xmlsec.xacml.builder.AbstractPolicyBuilder
combiningAlg, defaultVersion, logger, obligations, treeElements
 
Fields inherited from class nbi.xmlsec.xacml.builder.AbstractPolicyTreeElementBuilder
description, identifier, target
 
Constructor Summary
PolicyReferenceBuilder(URI identifier, int type)
          Creates a policy reference builder.
 
Method Summary
 PolicyTreeElement getInstance()
          Creates a a new policy reference instance.
 void setFinder(PolicyFinder finder)
          Sets the policy finder used to handle the reference.
 
Methods inherited from class nbi.xmlsec.xacml.builder.AbstractPolicyBuilder
add, add, add, add, remove, remove, setCombiningAlg, setCombiningAlg, setCombiningAlg, setDefaultVersion, setObligations, setTreeElements
 
Methods inherited from class nbi.xmlsec.xacml.builder.AbstractPolicyTreeElementBuilder
setDescription, setIdentifier, setIdentifier, setTarget, setTarget
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

finder

PolicyFinder finder
The PolicyFinder used to handle the reference.


type

int type
The type of the policy reference ( PolicyReference.POLICYSET_REFERENCE or PolicyReference.POLICY_REFERENCE).

Constructor Detail

PolicyReferenceBuilder

public PolicyReferenceBuilder(URI identifier,
                              int type)
Creates a policy reference builder.

Parameters:
identifier - policy reference identifier.
type - type of the policy reference ( PolicyReference.POLICYSET_REFERENCE or PolicyReference.POLICY_REFERENCE).
Method Detail

getInstance

public PolicyTreeElement getInstance()
Creates a a new policy reference instance.

Specified by:
getInstance in interface PolicyTreeElementBuilder
Specified by:
getInstance in class AbstractPolicyTreeElementBuilder
See Also:
PolicyTreeElementBuilder.getInstance()

setFinder

public void setFinder(PolicyFinder finder)
Sets the policy finder used to handle the reference.

Parameters:
finder - The policy finder to set.


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