public class AvpRepresentationImpl extends Object implements AvpRepresentation
AvpRepresentation interface.AvpRepresentation.Rule, AvpRepresentation.Type| Modifier and Type | Field and Description |
|---|---|
protected boolean |
_mandatory |
protected boolean |
_protected |
protected boolean |
allowed |
protected List<AvpRepresentation> |
children |
protected int |
code |
protected String |
description |
protected boolean |
grouped |
protected boolean |
mayEncrypt |
protected String |
multiplicityIndicator |
protected String |
name |
protected String |
ruleMandatory |
protected String |
ruleProtected |
protected String |
ruleVendorBit |
protected String |
type |
protected long |
vendor |
protected boolean |
weak |
_DEFAULT_MANDATORY, _DEFAULT_PROTECTED, _DEFAULT_VENDOR, _FIX_POSITION_INDEX, _MP_NOT_ALLOWED, _MP_ONE, _MP_ONE_AND_MORE, _MP_ZERO_OR_MORE, _MP_ZERO_OR_ONE| Constructor and Description |
|---|
AvpRepresentationImpl() |
AvpRepresentationImpl(AvpRepresentationImpl clone) |
AvpRepresentationImpl(int positionIndex,
int code,
long vendor,
String multiplicityIndicator,
String name) |
AvpRepresentationImpl(int code,
long vendor)
This constructor is used my validator to lookup correct representation.
|
AvpRepresentationImpl(int code,
long vendor,
String name) |
AvpRepresentationImpl(String name,
long vendor)
Constructor used to represent weak children.
|
AvpRepresentationImpl(String name,
String description,
int code,
boolean mayEncrypt,
String ruleMandatory,
String ruleProtected,
String ruleVendorBit,
long vendorId,
String type) |
protected String description
protected boolean mayEncrypt
protected boolean _protected
protected boolean _mandatory
protected String ruleMandatory
protected String ruleProtected
protected String ruleVendorBit
protected String type
protected int code
protected long vendor
protected boolean allowed
protected String multiplicityIndicator
protected String name
protected boolean grouped
protected List<AvpRepresentation> children
protected boolean weak
public AvpRepresentationImpl(AvpRepresentationImpl clone)
public AvpRepresentationImpl()
public AvpRepresentationImpl(String name, long vendor)
name - vendor - public AvpRepresentationImpl(int code,
long vendor)
code - vendor - public AvpRepresentationImpl(int positionIndex,
int code,
long vendor,
String multiplicityIndicator,
String name)
public AvpRepresentationImpl(int code,
long vendor,
String name)
public boolean isPositionFixed()
isPositionFixed in interface AvpRepresentationpublic void markFixPosition(int index)
public boolean isCountValidForMultiplicity(AvpSet destination, int numberToAdd)
isCountValidForMultiplicity in interface AvpRepresentationpublic boolean isCountValidForMultiplicity(int avpCount)
isCountValidForMultiplicity in interface AvpRepresentationpublic static int get_FIX_POSITION_INDEX()
public int getPositionIndex()
getPositionIndex in interface AvpRepresentationpublic int getCode()
getCode in interface AvpRepresentationpublic long getVendorId()
getVendorId in interface AvpRepresentationpublic boolean isAllowed()
isAllowed in interface AvpRepresentationpublic boolean isAllowed(int avpCode,
long vendorId)
isAllowed in interface AvpRepresentationpublic boolean isAllowed(int avpCode)
isAllowed in interface AvpRepresentationpublic String getMultiplicityIndicator()
getMultiplicityIndicator in interface AvpRepresentationpublic String getName()
getName in interface AvpRepresentationpublic boolean isGrouped()
isGrouped in interface AvpRepresentationpublic void setGrouped(boolean grouped)
public List<AvpRepresentation> getChildren()
getChildren in interface AvpRepresentationpublic void setChildren(List<AvpRepresentation> children)
public void setCode(int code)
public void setVendorId(long vendor)
public void setMultiplicityIndicator(String multiplicityIndicator)
public void setName(String name)
public boolean isWeak()
isWeak in interface AvpRepresentationpublic void markWeak(boolean isWeak)
public String getDescription()
getDescription in interface AvpRepresentationpublic boolean isMayEncrypt()
isMayEncrypt in interface AvpRepresentationpublic String getRuleMandatory()
getRuleMandatory in interface AvpRepresentationpublic int getRuleMandatoryAsInt()
getRuleMandatoryAsInt in interface AvpRepresentationpublic String getRuleProtected()
getRuleProtected in interface AvpRepresentationpublic int getRuleProtectedAsInt()
getRuleProtectedAsInt in interface AvpRepresentationpublic String getRuleVendorBit()
getRuleVendorBit in interface AvpRepresentationpublic int getRuleVendorBitAsInt()
getRuleVendorBitAsInt in interface AvpRepresentationpublic String getType()
getType in interface AvpRepresentationpublic boolean isProtected()
isProtected in interface AvpRepresentationpublic boolean isMandatory()
isMandatory in interface AvpRepresentationpublic void validate(Avp avp) throws AvpNotAllowedException
validate in interface AvpRepresentationAvpNotAllowedExceptionpublic void validate(AvpSet avpSet) throws AvpNotAllowedException
validate in interface AvpRepresentationAvpNotAllowedExceptionpublic String toString()
toString in interface AvpRepresentationtoString in class Objectpublic int hashCode()
hashCode in interface AvpRepresentationhashCode in class Objectpublic boolean equals(Object obj)
equals in interface AvpRepresentationequals in class Objectpublic Object clone() throws CloneNotSupportedException
clone in interface AvpRepresentationclone in class ObjectCloneNotSupportedExceptionCopyright © 2016. All Rights Reserved.