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 Details

  • Method Details

    • effectiveFilterField

      public String effectiveFilterField()
      Retorna o campo efetivo de filtro associado a esta fonte.
      Returns:
      filterField quando informado; caso contrario, a propria key
    • toMetadataMap

      public Map<String,Object> toMetadataMap()
      Converte o descritor para um mapa de metadados apropriado para exposicao documental.
      Returns:
      mapa serializavel com os metadados essenciais da fonte
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • key

      public String key()
      Returns the value of the key record component.
      Returns:
      the value of the key record component
    • type

      public OptionSourceType type()
      Returns the value of the type record component.
      Returns:
      the value of the type record component
    • resourcePath

      public String resourcePath()
      Returns the value of the resourcePath record component.
      Returns:
      the value of the resourcePath record component
    • filterField

      public String filterField()
      Returns the value of the filterField record component.
      Returns:
      the value of the filterField record component
    • propertyPath

      public String propertyPath()
      Returns the value of the propertyPath record component.
      Returns:
      the value of the propertyPath record component
    • labelPropertyPath

      public String labelPropertyPath()
      Returns the value of the labelPropertyPath record component.
      Returns:
      the value of the labelPropertyPath record component
    • valuePropertyPath

      public String valuePropertyPath()
      Returns the value of the valuePropertyPath record component.
      Returns:
      the value of the valuePropertyPath record component
    • dependsOn

      public List<String> dependsOn()
      Returns the value of the dependsOn record component.
      Returns:
      the value of the dependsOn record component
    • policy

      public OptionSourcePolicy policy()
      Returns the value of the policy record component.
      Returns:
      the value of the policy record component