org.jboss.security.xacml.core.ext
Class SingleValueAttributeProxy

java.lang.Object
  extended by org.jboss.security.xacml.core.ext.SingleValueAttributeProxy
All Implemented Interfaces:
AttributeProxy

public class SingleValueAttributeProxy
extends Object
implements AttributeProxy

Represents a single value attribute proxy

Since:
Mar 28, 2008
Version:
$Revision$
Author:
Anil.Saldhana@redhat.com

Constructor Summary
SingleValueAttributeProxy(String type)
           
SingleValueAttributeProxy(URI type)
           
 
Method Summary
 AttributeValue getInstance(Node root)
          Tries to create a new AttributeValue based on the given DOM root node.
 AttributeValue getInstance(String value)
          Tries to create a new AttributeValue based on the given String data.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SingleValueAttributeProxy

public SingleValueAttributeProxy(String type)

SingleValueAttributeProxy

public SingleValueAttributeProxy(URI type)
Method Detail

getInstance

public AttributeValue getInstance(Node root)
                           throws Exception
Description copied from interface: AttributeProxy
Tries to create a new AttributeValue based on the given DOM root node.

Specified by:
getInstance in interface AttributeProxy
Parameters:
root - the DOM root of some attribute data
Returns:
an AttributeValue representing the given data
Throws:
Exception - if the data couldn't be used (the exception is typically wrapping some other exception)

getInstance

public AttributeValue getInstance(String value)
                           throws Exception
Description copied from interface: AttributeProxy
Tries to create a new AttributeValue based on the given String data.

Specified by:
getInstance in interface AttributeProxy
Parameters:
value - the text form of some attribute data
Returns:
an AttributeValue representing the given data
Throws:
Exception - if the data couldn't be used (the exception is typically wrapping some other exception)


Copyright © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.