public class MessageRepresentationImpl extends Object implements MessageRepresentation
| Modifier and Type | Field and Description |
|---|---|
protected Map<AvpRepresentation,AvpRepresentation> |
unmuttableMessageAvps |
| Constructor and Description |
|---|
MessageRepresentationImpl(int commandCode,
boolean isRequest) |
MessageRepresentationImpl(int commandCode,
long applicationId,
boolean isRequest) |
MessageRepresentationImpl(int commandCode,
long applicationId,
boolean isRequest,
String name) |
MessageRepresentationImpl(MessageRepresentationImpl clone) |
| Modifier and Type | Method and Description |
|---|---|
Object |
clone() |
int |
compareTo(MessageRepresentation o) |
boolean |
equals(Object obj) |
long |
getApplicationId() |
AvpRepresentation |
getAvp(int code) |
AvpRepresentation |
getAvp(int code,
long vendorId) |
int |
getCommandCode() |
Map<AvpRepresentation,AvpRepresentation> |
getMessageAvps() |
String |
getName() |
int |
hashCode() |
boolean |
isAllowed(int code) |
boolean |
isAllowed(int code,
long vendorId) |
boolean |
isCountValidForMultiplicity(AvpSet destination,
int code) |
boolean |
isCountValidForMultiplicity(AvpSet destination,
int code,
int numberToAdd) |
boolean |
isCountValidForMultiplicity(AvpSet destination,
int code,
long vendorId) |
boolean |
isCountValidForMultiplicity(AvpSet destination,
int code,
long vendorId,
int numberToAdd) |
boolean |
isCountValidForMultiplicity(int code,
int avpCount) |
boolean |
isCountValidForMultiplicity(int code,
long vendorId,
int avpCount) |
boolean |
isRequest() |
void |
setMessageAvps(Map<AvpRepresentation,AvpRepresentation> messageAvps) |
String |
toString() |
void |
validate(Message msg,
ValidatorLevel validatorLevel) |
protected Map<AvpRepresentation,AvpRepresentation> unmuttableMessageAvps
public MessageRepresentationImpl(int commandCode,
long applicationId,
boolean isRequest)
public MessageRepresentationImpl(int commandCode,
boolean isRequest)
public MessageRepresentationImpl(int commandCode,
long applicationId,
boolean isRequest,
String name)
public MessageRepresentationImpl(MessageRepresentationImpl clone)
public Map<AvpRepresentation,AvpRepresentation> getMessageAvps()
getMessageAvps in interface MessageRepresentationpublic void setMessageAvps(Map<AvpRepresentation,AvpRepresentation> messageAvps)
public int getCommandCode()
getCommandCode in interface MessageRepresentationpublic long getApplicationId()
getApplicationId in interface MessageRepresentationpublic boolean isRequest()
isRequest in interface MessageRepresentationpublic String getName()
getName in interface MessageRepresentationpublic AvpRepresentation getAvp(int code)
getAvp in interface MessageRepresentationpublic AvpRepresentation getAvp(int code, long vendorId)
getAvp in interface MessageRepresentationpublic boolean isAllowed(int code,
long vendorId)
isAllowed in interface MessageRepresentationpublic boolean isAllowed(int code)
isAllowed in interface MessageRepresentationpublic boolean isCountValidForMultiplicity(int code,
int avpCount)
isCountValidForMultiplicity in interface MessageRepresentationpublic boolean isCountValidForMultiplicity(int code,
long vendorId,
int avpCount)
isCountValidForMultiplicity in interface MessageRepresentationpublic boolean isCountValidForMultiplicity(AvpSet destination, int code, long vendorId)
isCountValidForMultiplicity in interface MessageRepresentationpublic boolean isCountValidForMultiplicity(AvpSet destination, int code)
isCountValidForMultiplicity in interface MessageRepresentationpublic boolean isCountValidForMultiplicity(AvpSet destination, int code, long vendorId, int numberToAdd)
isCountValidForMultiplicity in interface MessageRepresentationpublic boolean isCountValidForMultiplicity(AvpSet destination, int code, int numberToAdd)
isCountValidForMultiplicity in interface MessageRepresentationpublic int compareTo(MessageRepresentation o)
public Object clone() throws CloneNotSupportedException
clone in class ObjectCloneNotSupportedExceptionpublic void validate(Message msg, ValidatorLevel validatorLevel) throws AvpNotAllowedException
validate in interface MessageRepresentationAvpNotAllowedExceptionCopyright © 2016. All Rights Reserved.