public class StandardAttributeFactory extends BaseAttributeFactory
Note that because this supports only the standard datatypes, this
factory does not allow the addition of any other datatypes. If you call
addDatatype
on an instance of this class, an exception
will be thrown. If you need a standard factory that is modifiable, you
should create a new BaseAttributeFactory
(or some other
AttributeFactory
) and configure it with the standard
datatypes using addStandardDatatypes
(or, in the case of
BaseAttributeFactory
, by providing the datatypes in the
constructor).
Modifier and Type | Method and Description |
---|---|
void |
addDatatype(String id,
AttributeProxy proxy)
Throws an
UnsupportedOperationException since you are not
allowed to modify what a standard factory supports. |
static StandardAttributeFactory |
getFactory()
Returns an instance of this factory.
|
static AttributeFactory |
getNewFactory()
A convenience method that returns a new instance of an
|
static Set |
getStandardDatatypes(String xacmlVersion)
Returns the identifiers supported for the given version of XACML.
|
createValue, createValue, createValue, createValue, getSupportedDatatypes
addAttributeProxy, createAttribute, createAttribute, createAttribute, createAttribute, getInstance, getInstance, registerFactory, setDefaultFactory
public static StandardAttributeFactory getFactory()
AttributeFactory
, ensuring quick
access to this factory.public static AttributeFactory getNewFactory()
getFactory
which is more efficient and enforces a
singleton pattern.public static Set getStandardDatatypes(String xacmlVersion) throws UnknownIdentifierException
xacmlVersion
- a standard XACML identifier string, as provided
in PolicyMetaData
Set
of identifiersUnknownIdentifierException
- if the version string is unknownpublic void addDatatype(String id, AttributeProxy proxy)
UnsupportedOperationException
since you are not
allowed to modify what a standard factory supports.addDatatype
in class BaseAttributeFactory
id
- the name of the attribute typeproxy
- the proxy used to create new attributes of the given typeUnsupportedOperationException
- alwaysCopyright © 2023 JBoss by Red Hat. All rights reserved.