public class DictionaryImpl extends Object implements Dictionary
Dictionary interface.| Modifier and Type | Field and Description |
|---|---|
static String |
_AVP_ATTRIBUTE_CODE |
static String |
_AVP_ATTRIBUTE_INDEX |
static String |
_AVP_ATTRIBUTE_MULTIPLICITY |
static String |
_AVP_ATTRIBUTE_NAME |
static String |
_AVP_ATTRIBUTE_VENDOR |
static Dictionary |
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
void |
configure(InputStream is) |
AvpRepresentation |
getAvp(int code) |
AvpRepresentation |
getAvp(int code,
long vendorId) |
AvpRepresentation |
getAvp(String avpName) |
Map<AvpRepresentation,AvpRepresentation> |
getAvpMap() |
Map<MessageRepresentation,MessageRepresentation> |
getCommandMap() |
MessageRepresentation |
getMessage(int commandCode,
boolean isRequest) |
MessageRepresentation |
getMessage(int commandCode,
long applicationId,
boolean isRequest) |
Map<String,AvpRepresentation> |
getNameToCodeMap() |
ValidatorLevel |
getReceiveLevel() |
ValidatorLevel |
getSendLevel() |
Map<String,String> |
getTypedefMap() |
Map<String,String> |
getVendorMap() |
boolean |
isConfigured() |
boolean |
isEnabled() |
protected void |
parseAvps(Document doc)
Parses the
|
protected void |
parseTypeDefs(Document doc)
Parses the
|
protected void |
parseVendors(Document doc)
Parses the
|
protected void |
printAvpTree(AvpRepresentation rep,
String tab) |
void |
setConfigured(boolean configured) |
void |
setEnabled(boolean enabled) |
void |
setReceiveLevel(ValidatorLevel level) |
void |
setSendLevel(ValidatorLevel level) |
void |
validate(Message msg,
boolean incoming) |
public static final Dictionary INSTANCE
public static final String _AVP_ATTRIBUTE_NAME
public static final String _AVP_ATTRIBUTE_CODE
public static final String _AVP_ATTRIBUTE_VENDOR
public static final String _AVP_ATTRIBUTE_MULTIPLICITY
public static final String _AVP_ATTRIBUTE_INDEX
public void configure(InputStream is)
configure in interface Dictionaryprotected void parseVendors(Document doc)
doc - the DOM object representing the XML Document with the Dictionary definitionsprotected void parseTypeDefs(Document doc)
doc - the DOM object representing the XML Document with the Dictionary definitionsprotected void parseAvps(Document doc)
doc - the DOM object representing the XML Document with the Dictionary definitionspublic boolean isConfigured()
isConfigured in interface Dictionarypublic AvpRepresentation getAvp(int code)
getAvp in interface Dictionarypublic AvpRepresentation getAvp(int code, long vendorId)
getAvp in interface Dictionarypublic AvpRepresentation getAvp(String avpName)
getAvp in interface Dictionarypublic MessageRepresentation getMessage(int commandCode, boolean isRequest)
getMessage in interface Dictionarypublic MessageRepresentation getMessage(int commandCode, long applicationId, boolean isRequest)
getMessage in interface Dictionarypublic boolean isEnabled()
isEnabled in interface Dictionarypublic ValidatorLevel getSendLevel()
getSendLevel in interface Dictionarypublic ValidatorLevel getReceiveLevel()
getReceiveLevel in interface Dictionarypublic void setSendLevel(ValidatorLevel level)
setSendLevel in interface Dictionarypublic void setReceiveLevel(ValidatorLevel level)
setReceiveLevel in interface Dictionarypublic void setEnabled(boolean enabled)
setEnabled in interface Dictionarypublic void setConfigured(boolean configured)
public void validate(Message msg, boolean incoming) throws AvpNotAllowedException
validate in interface DictionaryAvpNotAllowedExceptionpublic Map<AvpRepresentation,AvpRepresentation> getAvpMap()
public Map<MessageRepresentation,MessageRepresentation> getCommandMap()
public Map<String,AvpRepresentation> getNameToCodeMap()
protected void printAvpTree(AvpRepresentation rep, String tab)
Copyright © 2016. All Rights Reserved.