V
- Java value typepublic abstract class Datatype<V extends Value> extends Object
PrimitiveDatatype
and BagDatatype
may be instantiated.)Modifier and Type | Field and Description |
---|---|
static String |
AUTHZFORCE_EXTENSION_PREFIX
Prefix used by AuthZForce non-standard datatypes (PDP extensions).
|
Modifier and Type | Method and Description |
---|---|
abstract V |
cast(Value val)
Casts a value to the class or interface represented by this datatype.
|
boolean |
equals(Object obj) |
String |
getFunctionIdPrefix()
Gets prefix of ID of any standard generic (e.g.
|
String |
getId()
Get ID (URI) of this datatype
|
abstract Optional<? extends Datatype<?>> |
getTypeParameter()
Return type parameter e.g.
|
int |
hashCode() |
abstract boolean |
isInstance(Value val)
This method returns true if the specified value argument is an instance of the represented datatype; it returns false otherwise
|
abstract V[] |
newArray(int length)
Creates a new array with this as component type
|
String |
toString() |
public static final String AUTHZFORCE_EXTENSION_PREFIX
public final String getId()
public final String getFunctionIdPrefix()
public abstract Optional<? extends Datatype<?>> getTypeParameter()
public abstract boolean isInstance(Value val)
val
- value to be checkedval
is an instance of this datatypepublic abstract V cast(Value val) throws ClassCastException
val
- value to be castval
is nullClassCastException
- if the value is not null and is not assignable to the type V.public abstract V[] newArray(int length)
length
- length of the new arrayCopyright © 2012–2020. All rights reserved.