public interface AvpRepresentation
| Modifier and Type | Interface and Description |
|---|---|
static class |
AvpRepresentation.Rule |
static class |
AvpRepresentation.Type |
| Modifier and Type | Field and Description |
|---|---|
static String |
_DEFAULT_MANDATORY |
static String |
_DEFAULT_PROTECTED |
static String |
_DEFAULT_VENDOR |
static int |
_FIX_POSITION_INDEX |
static String |
_MP_NOT_ALLOWED
Represents multiplicity of AVP:
0 The AVP MUST NOT be present in the message.
|
static String |
_MP_ONE
Represents multiplicity of AVP:
1 One instance of the AVP MUST be present in the message.
|
static String |
_MP_ONE_AND_MORE
Represents multiplicity of AVP:
1+ At least one instance of the AVP MUST be present in the
message.
|
static String |
_MP_ZERO_OR_MORE
Represents multiplicity of AVP:
0+ Zero or more instances of the AVP MAY be present in the message.
|
static String |
_MP_ZERO_OR_ONE
Represents multiplicity of AVP:
0-1 Zero or one instance of the AVP MAY be present in the message.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
clone() |
boolean |
equals(Object obj) |
List<AvpRepresentation> |
getChildren() |
int |
getCode() |
String |
getDescription() |
String |
getMultiplicityIndicator() |
String |
getName() |
int |
getPositionIndex() |
String |
getRuleMandatory() |
int |
getRuleMandatoryAsInt() |
String |
getRuleProtected() |
int |
getRuleProtectedAsInt() |
String |
getRuleVendorBit() |
int |
getRuleVendorBitAsInt() |
String |
getType() |
long |
getVendorId() |
int |
hashCode() |
boolean |
isAllowed() |
boolean |
isAllowed(int avpCode) |
boolean |
isAllowed(int avpCode,
long vendorId) |
boolean |
isCountValidForMultiplicity(AvpSet destination,
int numberToAdd) |
boolean |
isCountValidForMultiplicity(int avpCount) |
boolean |
isGrouped() |
boolean |
isMandatory() |
boolean |
isMayEncrypt() |
boolean |
isPositionFixed() |
boolean |
isProtected() |
boolean |
isWeak() |
String |
toString() |
void |
validate(Avp avp)
Validates passed avp.
|
void |
validate(AvpSet avpSet)
Validates passed avp.
|
static final String _MP_NOT_ALLOWED
Represents multiplicity of AVP: 0 The AVP MUST NOT be present in the message.
static final String _MP_ZERO_OR_MORE
Represents multiplicity of AVP: 0+ Zero or more instances of the AVP MAY be present in the message.
static final String _MP_ZERO_OR_ONE
Represents multiplicity of AVP:
0-1 Zero or one instance of the AVP MAY be present in the message.
It is considered an error if there are more than one instance of the AVP.
static final String _MP_ONE
Represents multiplicity of AVP:
1 One instance of the AVP MUST be present in the message.
message.
static final String _MP_ONE_AND_MORE
Represents multiplicity of AVP:
1+ At least one instance of the AVP MUST be present in the
message.
static final String _DEFAULT_MANDATORY
static final String _DEFAULT_PROTECTED
static final String _DEFAULT_VENDOR
static final int _FIX_POSITION_INDEX
boolean isPositionFixed()
boolean isCountValidForMultiplicity(int avpCount)
boolean isCountValidForMultiplicity(AvpSet destination, int numberToAdd)
boolean isAllowed(int avpCode,
long vendorId)
boolean isAllowed(int avpCode)
int getPositionIndex()
int getCode()
long getVendorId()
boolean isAllowed()
String getMultiplicityIndicator()
String getName()
boolean isGrouped()
List<AvpRepresentation> getChildren()
boolean isWeak()
String getDescription()
boolean isMayEncrypt()
String getRuleMandatory()
int getRuleMandatoryAsInt()
String getRuleProtected()
int getRuleProtectedAsInt()
String getRuleVendorBit()
int getRuleVendorBitAsInt()
String getType()
boolean isProtected()
boolean isMandatory()
void validate(Avp avp) throws AvpNotAllowedException
avp - - simply avp which should be confronted vs definitionAvpNotAllowedExceptionvoid validate(AvpSet avpSet) throws AvpNotAllowedException
avpSet - - AvpSet which represents internal content of this avpAvpNotAllowedExceptionObject clone() throws CloneNotSupportedException
CloneNotSupportedExceptionCopyright © 2016. All Rights Reserved.