SunTM's XACML Implementation for JavaTM

com.sun.xacml.attr
Interface AttributeProxy

All Known Implementing Classes:
AnyURIAttributeProxy, Base64BinaryAttributeProxy, BooleanAttributeProxy, DateAttributeProxy, DateTimeAttributeProxy, DayTimeDurationAttributeProxy, DoubleAttributeProxy, HexBinaryAttributeProxy, IntegerAttributeProxy, 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

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

public 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

public 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)

Sun's XACML Implementation Version 1.2

Copyright 2003-2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.

Sun, Sun Microsystems, the Sun Logo, and Java are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.