JBoss port of sunxacml 2.0.5

org.jboss.security.xacml.sunxacml.attr
Interface AttributeProxy

All Known Implementing Classes:
AnyURIAttributeProxy, Base64BinaryAttributeProxy, BooleanAttributeProxy, DateAttributeProxy, DateTimeAttributeProxy, DayTimeDurationAttributeProxy, DNSNameAttributeProxy, DoubleAttributeProxy, HexBinaryAttributeProxy, IntegerAttributeProxy, IPAddressAttributeProxy, RFC822NameAttributeProxy, StringAttributeProxy, TimeAttributeProxy, X500NameAttributeProxy, YearMonthDurationAttributeProxy

public interface AttributeProxy

Used by the AttributeFactory to create new attributes. Typically a new proxy class is created which in turn knows how to create a specific kind of attribute, and then this proxy class is installed in the AttributeFactory.

Since:
1.0
Author:
Seth Proctor

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.
 

Method Detail

getInstance

AttributeValue getInstance(Node root)
                           throws Exception
Tries to create a new AttributeValue based on the given DOM root node.

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

AttributeValue getInstance(String value)
                           throws Exception
Tries to create a new AttributeValue based on the given String data.

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)

JBoss port of sunxacml 2.0.5

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