All Implemented Interfaces:
Serializable

public class FeatureField extends GenericSearchField
See Also:
  • Constructor Details

  • Method Details

    • setSelectRawValue

      public void setSelectRawValue(boolean selectRaw)
    • getFeatureType

      public TypedFeature.FeatureType getFeatureType()
    • getSelectableValues

      public List<ClassificationAttributeValue> getSelectableValues()
      For enum features: Returns all configured selectable value. Operations which require value order are limited to these values (using their position within the list).

      See addSelectableValue(int, ClassificationAttributeValue) for how to allow unconfigured values as well.

    • addSelectableValue

      public void addSelectableValue(int position, ClassificationAttributeValue selValue)
      For enum features: Since operations which require value order are limited to the configured selctable values it is necessary to add unconfigured values manually if they should be comparable within the query.
      Parameters:
      position - the desired position of the unconfigured value
      selValue - the unconfigured value
    • getClassAttributeAssignment

      public ClassAttributeAssignment getClassAttributeAssignment()
    • getUnit

      public ClassificationAttributeUnit getUnit()
      Returns the unit of the queried feature. If a unit is present the statement will convert all values of other units into this unit to allow comparation.
    • setUnit

      public void setUnit(ClassificationAttributeUnit unit)
      For features with existing unit only: Changes the target unit of this condition. Only convertible units of the configured unit are allowed.
    • setLanguage

      public void setLanguage(Language lang)
      For localized features only: Allows to specify the value language explicitely - otherwise the session language would have been used.
    • getLanguage

      public Language getLanguage()
    • setProductTypeAlias

      public void setProductTypeAlias(String alias)
      Allows to specify the alias of the product type within the enclosing query.

      This is always necessary when the product type is not the initial type of the enclosing query!

    • getProductTypeAlias

      public String getProductTypeAlias()
    • isCaseInsensitive

      public boolean isCaseInsensitive()
      Tells whether or not string comparation should be done case insensitively.
    • setCaseInsensitive

      public void setCaseInsensitive(boolean insensitive)
      Changes whether or not string comparation should be done case insensitively.
    • enumsAsPos

      protected boolean enumsAsPos()
    • writeValueField

      protected void writeValueField(StringBuilder query, Map<String,Object> valueMap)
    • writeConditions

      protected void writeConditions(StringBuilder query, Map<String,String> typeIndexMap, Map<String,Object> valueMap)
    • toFlexibleSearch

      public void toFlexibleSearch(StringBuilder query, Map<String,String> typeIndexMap, Map<String,Object> valueMap)
      Description copied from class: FlexibleSearchTranslatable
      compiles this instance in order to append its query snippet and add its value(s), if any
      Overrides:
      toFlexibleSearch in class GenericSearchField
      Parameters:
      query - contains the query
      typeIndexMap - contains typeCode <> typeIndex mappings
      valueMap - contains valueQualifier <> value mappings
      See Also: