Interface CoreDictionary

All Known Subinterfaces:
Dictionary, WritableDictionary
All Known Implementing Classes:
MemoryDictionary

public interface CoreDictionary
  • Method Summary

    Modifier and Type Method Description
    default java.util.Optional<AttributeTemplate> getAttributeTemplate​(int attributeId)
    Returns the AttributeTemplate for the vendor -1 from the cache.
    java.util.Optional<AttributeTemplate> getAttributeTemplate​(int vendorId, int attributeId)
    Retrieves an AttributeTemplate for a vendor-specific attribute.
    java.util.Optional<AttributeTemplate> getAttributeTemplate​(java.lang.String name)
    Retrieves an AttributeTemplate by name.
    java.util.Optional<Vendor> getVendor​(int vendorId)
    Retrieves the vendor with the given vendor code.
    java.util.Optional<Vendor> getVendor​(java.lang.String vendorName)
    Retrieves the ID of the vendor with the given name.
  • Method Details

    • getAttributeTemplate

      java.util.Optional<AttributeTemplate> getAttributeTemplate​(java.lang.String name)
      Retrieves an AttributeTemplate by name. This includes vendor-specific attribute types whose name is prefixed by the vendor name.
      Parameters:
      name - attribute name
      Returns:
      AttributeTemplate object or null
    • getAttributeTemplate

      default java.util.Optional<AttributeTemplate> getAttributeTemplate​(int attributeId)
      Returns the AttributeTemplate for the vendor -1 from the cache.
      Parameters:
      attributeId - attributeId 1-255
      Returns:
      AttributeTemplate
    • getAttributeTemplate

      java.util.Optional<AttributeTemplate> getAttributeTemplate​(int vendorId, int attributeId)
      Retrieves an AttributeTemplate for a vendor-specific attribute.
      Parameters:
      vendorId - vendorId if appropriate or -1
      attributeId - attributeId 1-255
      Returns:
      AttributeTemplate
    • getVendor

      java.util.Optional<Vendor> getVendor​(int vendorId)
      Retrieves the vendor with the given vendor code.
      Parameters:
      vendorId - vendor number
      Returns:
      vendor
    • getVendor

      java.util.Optional<Vendor> getVendor​(java.lang.String vendorName)
      Retrieves the ID of the vendor with the given name.
      Parameters:
      vendorName - name of the vendor
      Returns:
      vendorId or -1