public interface DerivedTypeDef<V>
Modifier and Type | Method and Description |
---|---|
boolean |
canExpire()
returns whether this type def supports expiring values
|
V |
computeData(Ref ref)
derives the value of the data whose reference is given
|
java.lang.String |
getTypeId()
returns this type's ID
|
boolean |
isExpired(Ref ref, V value)
Returns true if the value has expired, or is no longer considered valid or legal.
|
boolean |
isValidRef(Ref ref)
Returns true if the derived data whose reference is given logically exists, and refers to a valid derived value.
|
java.lang.String getTypeId()
V computeData(Ref ref) throws NotFoundException
ref
- the logical reference to the derived dataNotFoundException
- if the value cannot be computed or does not existboolean isValidRef(Ref ref)
ref
- the logical reference to the derived databoolean canExpire()
boolean isExpired(Ref ref, V value)
ref
- the logical reference to the derived datavalue
- the value that was previously derived