Class AttributeDatatype<AV extends AttributeValue>
- java.lang.Object
-
- org.ow2.authzforce.core.pdp.api.value.Datatype<AV>
-
- org.ow2.authzforce.core.pdp.api.value.PrimitiveDatatype<AV>
-
- org.ow2.authzforce.core.pdp.api.value.AttributeDatatype<AV>
-
- Type Parameters:
AV
- value type
public final class AttributeDatatype<AV extends AttributeValue> extends PrimitiveDatatype<AV>
AttributeValue datatype, i.e. in the XACML context, a datatype of any value that may be used for a request attribute, AttributeValue in a policy, or a response's attribute assignment
-
-
Field Summary
-
Fields inherited from class org.ow2.authzforce.core.pdp.api.value.Datatype
AUTHZFORCE_EXTENSION_PREFIX
-
-
Constructor Summary
Constructors Constructor Description AttributeDatatype(Class<AV> instanceClass, String id, String functionIdPrefix, net.sf.saxon.s9api.ItemType xpathDatatype)
Datatype constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BagDatatype<AV>
getBagDatatype()
Gets corresponding bag datatype (that a bag of this primitive datatype would have)Bag<AV>
getEmptyBag()
Gets empty bag-
Methods inherited from class org.ow2.authzforce.core.pdp.api.value.PrimitiveDatatype
cast, getArrayClass, getInstanceClass, getTypeParameter, isInstance, newArray
-
Methods inherited from class org.ow2.authzforce.core.pdp.api.value.Datatype
equals, getFunctionIdPrefix, getId, getXPathItemType, hashCode, toString
-
-
-
-
Constructor Detail
-
AttributeDatatype
public AttributeDatatype(Class<AV> instanceClass, String id, String functionIdPrefix, net.sf.saxon.s9api.ItemType xpathDatatype) throws NullPointerException
Datatype constructor- Parameters:
instanceClass
- (non-null) Java class used as implementation for this datatype, i.e. all values of this datatype are instances ofvalueClass
.id
- (non-null) datatype IDfunctionIdPrefix
- (non-null) prefix of ID of any standard generic (e.g. bag/set) function built on this datatype, e.g. 'urn:oasis:names:tc:xacml:1.0:function:string' for string datatype- Throws:
NullPointerException
- ifinstanceClass == null || id == null || functionIdPrefix == null
.
-
-
Method Detail
-
getBagDatatype
public BagDatatype<AV> getBagDatatype()
Gets corresponding bag datatype (that a bag of this primitive datatype would have)- Returns:
- corresponding bag datatype
-
-