|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface AvpRepresentation
Represents avp, it stores info about presence, multiplicity, avp code, vendor.
| Nested Class Summary | |
|---|---|
static class |
AvpRepresentation.Rule
|
static class |
AvpRepresentation.Type
|
| Field Summary | |
|---|---|
static java.lang.String |
_DEFAULT_MANDATORY
|
static java.lang.String |
_DEFAULT_PROTECTED
|
static java.lang.String |
_DEFAULT_VENDOR
|
static int |
_FIX_POSITION_INDEX
|
static java.lang.String |
_MP_NOT_ALLOWED
Represents multiplicity of AVP: 0 The AVP MUST NOT be present in the message. |
static java.lang.String |
_MP_ONE
Represents multiplicity of AVP: 1 One instance of the AVP MUST be present in the message. |
static java.lang.String |
_MP_ONE_AND_MORE
Represents multiplicity of AVP: 1+ At least one instance of the AVP MUST be present in the message. |
static java.lang.String |
_MP_ZERO_OR_MORE
Represents multiplicity of AVP: 0+ Zero or more instances of the AVP MAY be present in the message. |
static java.lang.String |
_MP_ZERO_OR_ONE
Represents multiplicity of AVP: 0-1 Zero or one instance of the AVP MAY be present in the message. |
| Method Summary | |
|---|---|
java.lang.Object |
clone()
|
boolean |
equals(java.lang.Object obj)
|
java.util.List<AvpRepresentation> |
getChildren()
|
int |
getCode()
|
java.lang.String |
getDescription()
|
java.lang.String |
getMultiplicityIndicator()
|
java.lang.String |
getName()
|
int |
getPositionIndex()
|
java.lang.String |
getRuleMandatory()
|
int |
getRuleMandatoryAsInt()
|
java.lang.String |
getRuleProtected()
|
int |
getRuleProtectedAsInt()
|
java.lang.String |
getRuleVendorBit()
|
int |
getRuleVendorBitAsInt()
|
java.lang.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()
|
java.lang.String |
toString()
|
void |
validate(Avp avp)
Validates passed avp. |
void |
validate(AvpSet avpSet)
Validates passed avp. |
| Field Detail |
|---|
static final java.lang.String _MP_NOT_ALLOWED
Represents multiplicity of AVP: 0 The AVP MUST NOT be present in the message.
static final java.lang.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 java.lang.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 java.lang.String _MP_ONE
Represents multiplicity of AVP:
1 One instance of the AVP MUST be present in the message.
message.
static final java.lang.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 java.lang.String _DEFAULT_MANDATORY
static final java.lang.String _DEFAULT_PROTECTED
static final java.lang.String _DEFAULT_VENDOR
static final int _FIX_POSITION_INDEX
| Method Detail |
|---|
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()
java.lang.String getMultiplicityIndicator()
java.lang.String getName()
boolean isGrouped()
java.util.List<AvpRepresentation> getChildren()
boolean isWeak()
java.lang.String getDescription()
boolean isMayEncrypt()
java.lang.String getRuleMandatory()
int getRuleMandatoryAsInt()
java.lang.String getRuleProtected()
int getRuleProtectedAsInt()
java.lang.String getRuleVendorBit()
int getRuleVendorBitAsInt()
java.lang.String getType()
boolean isProtected()
boolean isMandatory()
void validate(Avp avp)
throws AvpNotAllowedException
avp - - simply avp which should be confronted vs definition
AvpNotAllowedException
void validate(AvpSet avpSet)
throws AvpNotAllowedException
avpSet - - AvpSet which represents internal content of this avp
AvpNotAllowedExceptionjava.lang.String toString()
toString in class java.lang.Objectint hashCode()
hashCode in class java.lang.Objectboolean equals(java.lang.Object obj)
equals in class java.lang.Object
java.lang.Object clone()
throws java.lang.CloneNotSupportedException
java.lang.CloneNotSupportedException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||