Class CpoClassCaseInsensitive

All Implemented Interfaces:
Serializable, Comparable<CpoClass>, MetaDFVisitable

public class CpoClassCaseInsensitive extends CpoClass
CpoClass variant whose datastore-name lookups are case-insensitive: attribute data names are upper-cased before being used as map keys.
Author:
dberry
See Also:
  • Constructor Details

    • CpoClassCaseInsensitive

      public CpoClassCaseInsensitive()
      Creates an empty instance.
  • Method Details

    • getAttributeData

      public CpoAttribute getAttributeData(String dataName)
      Gets the attribute bound to the given datastore-side name.

      Matches dataName case-insensitively.

      Specified by:
      getAttributeData in class CpoClass
      Parameters:
      dataName - the datastore-side name to look up
      Returns:
      the matching attribute, or null if none is bound to dataName
    • addDataNameToMap

      public void addDataNameToMap(String dataName, CpoAttribute cpoAttribute)
      Adds an attribute to the datastore-name lookup map, using whatever case-sensitivity policy the concrete subclass implements.
      Specified by:
      addDataNameToMap in class CpoClass
      Parameters:
      dataName - the datastore-side name to key on
      cpoAttribute - the attribute to add
    • removeDataNameFromMap

      public void removeDataNameFromMap(String dataName)
      Removes an attribute from the datastore-name lookup map.
      Specified by:
      removeDataNameFromMap in class CpoClass
      Parameters:
      dataName - the datastore-side name to remove