org.wso2.balana.attr.proxy
Class AbstractAttributeProxy

java.lang.Object
  extended by org.wso2.balana.attr.proxy.AbstractAttributeProxy
All Implemented Interfaces:
AttributeProxy
Direct Known Subclasses:
AnyURIAttributeProxy, Base64BinaryAttributeProxy, BooleanAttributeProxy, DateAttributeProxy, DateTimeAttributeProxy, DayTimeDurationAttributeProxy, DNSNameAttributeProxy, DoubleAttributeProxy, HexBinaryAttributeProxy, IntegerAttributeProxy, IPAddressAttributeProxy, RFC822NameAttributeProxy, StringAttributeProxy, TimeAttributeProxy, X500NameAttributeProxy, YearMonthDurationAttributeProxy

public abstract class AbstractAttributeProxy
extends Object
implements AttributeProxy

Abstract represent of AttributeProxy introduces simple method when there is no additional parameters to create the instance


Constructor Summary
AbstractAttributeProxy()
           
 
Method Summary
abstract  AttributeValue getInstance(String value)
          Tries to create a new AttributeValue based on the given String data.
 AttributeValue getInstance(String value, String[] params)
          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
 
Methods inherited from interface org.wso2.balana.attr.AttributeProxy
getInstance
 

Constructor Detail

AbstractAttributeProxy

public AbstractAttributeProxy()
Method Detail

getInstance

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

getInstance

public AttributeValue getInstance(String value,
                                  String[] params)
                           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
params - additional parameters that need to creates a value
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 © 2015 WSO2. All rights reserved.