nbi.xmlsec.xacml.builder
Class AbstractPolicyTreeElementBuilder

java.lang.Object
  extended bynbi.xmlsec.xacml.builder.AbstractPolicyTreeElementBuilder
All Implemented Interfaces:
PolicyTreeElementBuilder, XACMLObjectBuilder
Direct Known Subclasses:
AbstractPolicyBuilder, RuleBuilder

public abstract class AbstractPolicyTreeElementBuilder
extends Object
implements PolicyTreeElementBuilder

Abstract base class for all policy tree element building classes.

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

Field Summary
protected  String description
          a String describing the policy
protected  URI identifier
          The policy identifier
protected  Target target
          the policy's Target
 
Constructor Summary
protected AbstractPolicyTreeElementBuilder()
           
 
Method Summary
abstract  PolicyTreeElement getInstance()
          Creates an instance of the policy tree element built.
 void setDescription(String description)
          Sets the policy's description.
 void setIdentifier(String id)
          Sets the policy's identifier.
 void setIdentifier(URI id)
          Sets the policy's identifier.
 void setTarget(Target target)
          Sets the policy's target.
 void setTarget(TargetBuilder target)
          Sets the policy's target.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

identifier

protected URI identifier
The policy identifier


description

protected String description
a String describing the policy


target

protected Target target
the policy's Target

Constructor Detail

AbstractPolicyTreeElementBuilder

protected AbstractPolicyTreeElementBuilder()
Method Detail

getInstance

public abstract PolicyTreeElement getInstance()
Creates an instance of the policy tree element built.

Specified by:
getInstance in interface PolicyTreeElementBuilder
Returns:
the created XACML policy instance.
See Also:
PolicyTreeElementBuilder.getInstance()

setDescription

public void setDescription(String description)
Sets the policy's description.

Parameters:
description - The policy's description to set.

setIdentifier

public void setIdentifier(URI id)
Sets the policy's identifier.

Parameters:
id - The policy identifier to set.

setTarget

public void setTarget(Target target)
Sets the policy's target.

Parameters:
target - The policy's target to set.

setIdentifier

public void setIdentifier(String id)
                   throws URISyntaxException
Sets the policy's identifier.

Parameters:
id - The policy identifier to set.
Throws:
URISyntaxException
See Also:
URI.URI(java.lang.String).

setTarget

public void setTarget(TargetBuilder target)
Sets the policy's target.

Parameters:
target - The policy's target to set.


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