Class TypeRequest.Literal

java.lang.Object
dev.getelements.elements.sdk.TypeRequest.Literal
All Implemented Interfaces:
TypeRequest, BiPredicate<ElementTypeRequest,String>
Enclosing interface:
TypeRequest

public static class TypeRequest.Literal extends Object implements TypeRequest
The default TypeRequest implementation. Permits a class whose binary name exactly matches any of the names listed in ElementTypeRequest.value(). This is the default value of ElementTypeRequest.request(), so an Element that only needs to permit a fixed set of known types can do so purely through the annotation without writing any code:

 @ElementTypeRequest(value = {"com.example.shared.Foo", "com.example.shared.Bar"})
 package com.example.myelement;