org.wso2.balana.attr.proxy
Class AbstractAttributeProxy
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractAttributeProxy
public AbstractAttributeProxy()
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 dataparams
- 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.