public class MemoryDictionary extends Object implements WritableDictionary
addAttributeType and
addVendor.| 构造器和说明 |
|---|
MemoryDictionary() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addAttributeType(AttributeType attributeType)
Adds an AttributeType object to the cache.
|
void |
addVendor(int vendorId,
String vendorName)
Adds the given vendor to the cache.
|
AttributeType |
getAttributeTypeByCode(int typeCode)
Returns the AttributeType for the vendor -1 from the
cache.
|
AttributeType |
getAttributeTypeByCode(int vendorCode,
int typeCode)
Returns the specified AttributeType object.
|
AttributeType |
getAttributeTypeByName(String typeName)
Retrieves the attribute type with the given name.
|
int |
getVendorId(String vendorName)
Searches the vendor with the given name and returns its
code.
|
String |
getVendorName(int vendorId)
Retrieves the name of the vendor with the given code from
the cache.
|
public AttributeType getAttributeTypeByCode(int typeCode)
getAttributeTypeByCode 在接口中 DictionarytypeCode - attribute type codeDictionary.getAttributeTypeByCode(int)public AttributeType getAttributeTypeByCode(int vendorCode, int typeCode)
getAttributeTypeByCode 在接口中 DictionaryvendorCode - vendor ID or -1 for "no vendor"typeCode - attribute type codeDictionary.getAttributeTypeByCode(int, int)public AttributeType getAttributeTypeByName(String typeName)
getAttributeTypeByName 在接口中 DictionarytypeName - name of the attribute typeDictionary.getAttributeTypeByName(java.lang.String)public int getVendorId(String vendorName)
getVendorId 在接口中 DictionaryvendorName - vendor nameDictionary.getVendorId(java.lang.String)public String getVendorName(int vendorId)
getVendorName 在接口中 DictionaryvendorId - vendor numberDictionary.getVendorName(int)public void addVendor(int vendorId,
String vendorName)
addVendor 在接口中 WritableDictionaryvendorId - vendor IDvendorName - name of the vendorIllegalArgumentException - empty vendor name, invalid vendor IDpublic void addAttributeType(AttributeType attributeType)
addAttributeType 在接口中 WritableDictionaryattributeType - AttributeType objectIllegalArgumentException - duplicate attribute name/type codeCopyright © 2016. All rights reserved.