T
- the model's type@ProviderType
public interface BaseRepresentor<T>
Representors
.
Descendants of this class holds information about the metadata supported for a resource.
Only two descendants are allowed: Representor
and NestedRepresentor
.
Modifier and Type | Interface and Description |
---|---|
static interface |
BaseRepresentor.BaseFirstStep<T,S extends BaseRepresentor<T>,U extends BaseRepresentor.BaseFirstStep<T,S,U>> |
Modifier and Type | Method and Description |
---|---|
java.util.List<FieldFunction<T,java.lang.String>> |
getApplicationRelativeURLFunctions()
Returns the list that contains the application relative URL field names
and the functions to get those fields.
|
java.util.Optional<BinaryFunction<T>> |
getBinaryFunction(java.lang.String binaryId)
Returns a binary resource linked to a model, if present; returns
Optional#empty otherwise. |
java.util.List<FieldFunction<T,BinaryFile>> |
getBinaryFunctions()
Returns the binary functions linked to a model.
|
java.util.List<FieldFunction<T,java.lang.Boolean>> |
getBooleanFunctions()
Returns the list containing the boolean field names and the functions to
get those fields.
|
java.util.List<FieldFunction<T,java.util.List<java.lang.Boolean>>> |
getBooleanListFunctions()
Returns the list containing the boolean list field names and the
functions to get those fields.
|
java.util.List<FieldFunction<T,java.lang.String>> |
getLinkFunctions()
Returns the list containing the links field names and the functions to
get those links.
|
java.util.List<FieldFunction<T,java.util.function.Function<AcceptLanguage,java.lang.String>>> |
getLocalizedStringFunctions()
Returns a map containing the localized string field names and the
functions to get those fields.
|
java.util.List<NestedFieldFunction<T,?>> |
getNestedFieldFunctions()
Returns the list of nested field functions.
|
java.util.List<NestedListFieldFunction<T,?>> |
getNestedListFieldFunctions()
Returns the list of nested list field functions.
|
java.util.List<FieldFunction<T,java.lang.Number>> |
getNumberFunctions()
Returns the list containing the number field names and the functions to
get those fields.
|
java.util.List<FieldFunction<T,java.util.List<java.lang.Number>>> |
getNumberListFunctions()
Returns the list containing the number list field names and the functions
to get those fields.
|
java.lang.String |
getPrimaryType()
Returns the primary type.
|
java.util.stream.Stream<RelatedCollection<T,? extends Identifier>> |
getRelatedCollections()
Returns the related collections.
|
java.util.List<RelatedModel<T,?>> |
getRelatedModels()
Returns the related models.
|
java.util.List<FieldFunction<T,java.lang.String>> |
getRelativeURLFunctions()
Returns the list containing the relative URL field names and the
functions to get those fields.
|
java.util.List<FieldFunction<T,java.lang.String>> |
getStringFunctions()
Returns the list containing the string field names and the functions to
get those fields.
|
java.util.List<FieldFunction<T,java.util.List<java.lang.String>>> |
getStringListFunctions()
Returns the list containing the string list field names and the functions
to get those fields.
|
java.util.List<java.lang.String> |
getTypes()
Returns the types.
|
boolean |
isNested()
Whether this representor is a
NestedRepresentor . |
java.util.List<FieldFunction<T,java.lang.String>> getApplicationRelativeURLFunctions()
java.util.Optional<BinaryFunction<T>> getBinaryFunction(java.lang.String binaryId)
Optional#empty
otherwise.binaryId
- the ID of the binary resourceOptional#empty()
otherwisejava.util.List<FieldFunction<T,BinaryFile>> getBinaryFunctions()
java.util.List<FieldFunction<T,java.lang.Boolean>> getBooleanFunctions()
java.util.List<FieldFunction<T,java.util.List<java.lang.Boolean>>> getBooleanListFunctions()
java.util.List<FieldFunction<T,java.lang.String>> getLinkFunctions()
java.util.List<FieldFunction<T,java.util.function.Function<AcceptLanguage,java.lang.String>>> getLocalizedStringFunctions()
java.util.List<NestedFieldFunction<T,?>> getNestedFieldFunctions()
java.util.List<NestedListFieldFunction<T,?>> getNestedListFieldFunctions()
java.util.List<FieldFunction<T,java.lang.Number>> getNumberFunctions()
java.util.List<FieldFunction<T,java.util.List<java.lang.Number>>> getNumberListFunctions()
java.lang.String getPrimaryType()
java.util.stream.Stream<RelatedCollection<T,? extends Identifier>> getRelatedCollections()
java.util.List<RelatedModel<T,?>> getRelatedModels()
java.util.List<FieldFunction<T,java.lang.String>> getRelativeURLFunctions()
java.util.List<FieldFunction<T,java.lang.String>> getStringFunctions()
java.util.List<FieldFunction<T,java.util.List<java.lang.String>>> getStringListFunctions()
java.util.List<java.lang.String> getTypes()
boolean isNested()
NestedRepresentor
.true
if this this representor is a nested representor;
false
otherwise