public class Definition extends Object
Constructor and Description |
---|
Definition() |
Modifier and Type | Method and Description |
---|---|
List<FieldDefinition> |
findFields(Function<FieldDefinition,Boolean> predicate)
Finds field definitions that match the specified predicate.
|
List<FieldDefinition> |
findFieldsWithKeyord(String keyword)
Finds field definitions that contains the specified keyword in their configuration.
|
String |
getDescription()
Retrieves the description of the definition.
|
FieldDefinition |
getField(Integer id)
Retrieves the field definition with the specified unique identifier.
|
List<FieldDefinition> |
getFields(String name)
Retrieves all field definitions matching the specified name.
|
FieldDefinition |
getFirstField(String name)
Retrieves the first field definition matching the specified name.
|
Integer |
getId()
Retrieves the unique identifier of the definition.
|
String |
getName()
Retrieves the name of the definition.
|
List<FieldDefinition> |
getRootFields()
Retrieves the root fields definitions of the definition.
|
Integer |
getVersion()
Retrieves the version of the definition.
|
String |
toString() |
public List<FieldDefinition> findFields(Function<FieldDefinition,Boolean> predicate)
predicate
- the predicate used to filter the field definitions.List
of FieldDefinition
objects that match the specified predicate.public List<FieldDefinition> findFieldsWithKeyord(String keyword)
keyword
- the keyword to search for in the field definitions' configuration.List
of FieldDefinition
objects containing the specified keyword in their configuration.public String getDescription()
String
representing the description of the definition.public FieldDefinition getField(Integer id)
id
- the unique identifier of the field definition.FieldDefinition
object with the specified unique identifier, or null
if not found.public List<FieldDefinition> getFields(String name)
name
- the name of the field definitions to retrieve.List
of FieldDefinition
objects with the specified name.public FieldDefinition getFirstField(String name)
name
- the name of the field definition.FieldDefinition
object with the specified name, or null
if not found.public Integer getId()
Integer
representing the unique identifier of the definition.public String getName()
String
representing the name of the definition.public List<FieldDefinition> getRootFields()
List
of FieldDefinition
objects representing the root field definitions.public Integer getVersion()
Integer
representing the version of the definition.Copyright © 2021 Cult Of Bits, lda