Class StringContentOnlyValueFactory<AV extends AttributeValue>
- java.lang.Object
-
- org.ow2.authzforce.core.pdp.api.value.BaseAttributeValueFactory<AV>
-
- org.ow2.authzforce.core.pdp.api.value.SimpleValue.BaseFactory<AV>
-
- org.ow2.authzforce.core.pdp.api.value.StringParseableValue.Factory<AV>
-
- org.ow2.authzforce.core.pdp.api.value.StringContentOnlyValueFactory<AV>
-
- Type Parameters:
AV
- type of attribute values created by this factory
- All Implemented Interfaces:
PdpExtension
,AttributeValueFactory<AV>
public abstract class StringContentOnlyValueFactory<AV extends AttributeValue> extends StringParseableValue.Factory<AV>
Datatype-specific Attribute Value Factory that supports values only based on string content, without any XML attributes, and independent of the context, i.e. constant values.
-
-
Field Summary
-
Fields inherited from class org.ow2.authzforce.core.pdp.api.value.BaseAttributeValueFactory
instanceDatatype
-
Fields inherited from interface org.ow2.authzforce.core.pdp.api.PdpExtension
AUTHZFORCE_EXTENSION_PREFIX
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
StringContentOnlyValueFactory(AttributeDatatype<AV> datatype)
Creates a datatype factory from the Java datatype implementation class and datatype identifier
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AV
getInstance(Serializable value)
Creates attribute value from a singleton value and possibly extra XML attributesSet<Class<? extends Serializable>>
getSupportedInputTypes()
Get the list of input types supported by this factory, i.e.-
Methods inherited from class org.ow2.authzforce.core.pdp.api.value.StringParseableValue.Factory
getInstance, parse
-
Methods inherited from class org.ow2.authzforce.core.pdp.api.value.SimpleValue.BaseFactory
getInstance, newInvalidInputTypeException
-
Methods inherited from class org.ow2.authzforce.core.pdp.api.value.BaseAttributeValueFactory
equals, getDatatype, getId, hashCode, toString
-
-
-
-
Constructor Detail
-
StringContentOnlyValueFactory
protected StringContentOnlyValueFactory(AttributeDatatype<AV> datatype)
Creates a datatype factory from the Java datatype implementation class and datatype identifier
-
-
Method Detail
-
getSupportedInputTypes
public final Set<Class<? extends Serializable>> getSupportedInputTypes()
Description copied from class:SimpleValue.BaseFactory
Get the list of input types supported by this factory, i.e. all types of values from which this factory can create AttributeValues- Specified by:
getSupportedInputTypes
in classSimpleValue.BaseFactory<AV extends AttributeValue>
- Returns:
- supported input types
-
getInstance
public final AV getInstance(Serializable value)
Description copied from class:StringParseableValue.Factory
Creates attribute value from a singleton value and possibly extra XML attributes- Specified by:
getInstance
in classStringParseableValue.Factory<AV extends AttributeValue>
- Parameters:
value
- attribute value, null if original content is empty (e.g. list of JAXB (mixed) content elements is empty)- Returns:
- instance of
F_AV
-
-