Record Class OptionSourceDescriptor
java.lang.Object
java.lang.Record
org.praxisplatform.uischema.options.OptionSourceDescriptor
public record OptionSourceDescriptor(String key, OptionSourceType type, String resourcePath, String filterField, String propertyPath, String labelPropertyPath, String valuePropertyPath, List<String> dependsOn, OptionSourcePolicy policy)
extends Record
Descricao canonica de uma option-source metadata-driven.
O descritor informa como uma fonte derivada de opcoes deve ser exposta e consumida pela plataforma: qual recurso a ancora, qual chave a identifica, quais dependencias de filtro ela possui e quais politicas operacionais devem ser aplicadas.
-
Constructor Summary
ConstructorsConstructorDescriptionOptionSourceDescriptor(String key, OptionSourceType type, String resourcePath, String filterField, String propertyPath, String labelPropertyPath, String valuePropertyPath, List<String> dependsOn, OptionSourcePolicy policy) Valida e normaliza o descritor no momento da criacao. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedependsOnrecord component.Retorna o campo efetivo de filtro associado a esta fonte.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefilterFieldrecord component.final inthashCode()Returns a hash code value for this object.key()Returns the value of thekeyrecord component.Returns the value of thelabelPropertyPathrecord component.policy()Returns the value of thepolicyrecord component.Returns the value of thepropertyPathrecord component.Returns the value of theresourcePathrecord component.Converte o descritor para um mapa de metadados apropriado para exposicao documental.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.Returns the value of thevaluePropertyPathrecord component.
-
Constructor Details
-
OptionSourceDescriptor
public OptionSourceDescriptor(String key, OptionSourceType type, String resourcePath, String filterField, String propertyPath, String labelPropertyPath, String valuePropertyPath, List<String> dependsOn, OptionSourcePolicy policy) Valida e normaliza o descritor no momento da criacao.
-
-
Method Details
-
effectiveFilterField
Retorna o campo efetivo de filtro associado a esta fonte.- Returns:
filterFieldquando informado; caso contrario, a propriakey
-
toMetadataMap
Converte o descritor para um mapa de metadados apropriado para exposicao documental.- Returns:
- mapa serializavel com os metadados essenciais da fonte
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
key
Returns the value of thekeyrecord component.- Returns:
- the value of the
keyrecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
resourcePath
Returns the value of theresourcePathrecord component.- Returns:
- the value of the
resourcePathrecord component
-
filterField
Returns the value of thefilterFieldrecord component.- Returns:
- the value of the
filterFieldrecord component
-
propertyPath
Returns the value of thepropertyPathrecord component.- Returns:
- the value of the
propertyPathrecord component
-
labelPropertyPath
Returns the value of thelabelPropertyPathrecord component.- Returns:
- the value of the
labelPropertyPathrecord component
-
valuePropertyPath
Returns the value of thevaluePropertyPathrecord component.- Returns:
- the value of the
valuePropertyPathrecord component
-
dependsOn
Returns the value of thedependsOnrecord component.- Returns:
- the value of the
dependsOnrecord component
-
policy
Returns the value of thepolicyrecord component.- Returns:
- the value of the
policyrecord component
-