Class VoiceGeographicCode
java.lang.Object
ru.bitel.common.model.Id
ru.bitel.common.model.IdTitle
ru.bitel.oss.kernel.entity.common.bean.AbstractEntity
ru.bitel.oss.kernel.entity.common.bean.Entity
ru.bitel.common.model.AbstractTreeNode<N>
ru.bitel.bgbilling.modules.voice.common.bean.VoiceBaseCodeBean<VoiceGeographicCode>
ru.bitel.bgbilling.modules.voice.common.bean.VoiceGeographicCode
- All Implemented Interfaces:
Serializable,Cloneable,GuiTitlable,Idable,ListItem,Node<VoiceGeographicCode>,TreeNode<VoiceGeographicCode>
Модель географического кода, представляющего собой код и направление,
с привязкой к определенному оператору.
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class ru.bitel.common.model.IdTitle
IdTitle.IdTitleBuilder -
Field Summary
Fields inherited from class ru.bitel.common.model.AbstractTreeNode
children, parentIdFields inherited from class ru.bitel.oss.kernel.entity.common.bean.AbstractEntity
entitySpecId -
Constructor Summary
ConstructorsConstructorDescriptionVoiceGeographicCode(int id, String title) КОнструктор, который устанавливает поле title (НЕ code!!!) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddChild(VoiceGeographicCode child) Добавление дочернего элемента для данного географического кода при построении дерева кодов.static VoiceGeographicCode.Builderbuilder()voidcopyTo(VoiceGeographicCode copy) Строка - имя объекта.intvoidsetOperatorId(int operatorId) org.json.JSONObjecttoJson()toString()Methods inherited from class ru.bitel.bgbilling.modules.voice.common.bean.VoiceBaseCodeBean
clone, getCode, getDateFrom, getDateTo, getDestinationId, getDestinationTitle, getLevel, setCode, setDateFrom, setDateTo, setDestinationId, setDestinationTitle, setLevelMethods inherited from class ru.bitel.common.model.AbstractTreeNode
getChildren, getParentId, setChildren, setParentId, toListMethods inherited from class ru.bitel.oss.kernel.entity.common.bean.Entity
copyTo, getEntityId, setEntityIdMethods inherited from class ru.bitel.oss.kernel.entity.common.bean.AbstractEntity
copyTo, getEntityAttributes, getEntitySpecId, setEntityAttributes, setEntitySpecIdMethods inherited from class ru.bitel.common.model.Id
copyTo, equals, getId, hashCode, newIdList, newIdSet, newIdSet, newIdSet, newIdSet, newMap, setId
-
Constructor Details
-
VoiceGeographicCode
public VoiceGeographicCode() -
VoiceGeographicCode
КОнструктор, который устанавливает поле title (НЕ code!!!) Нужно в клиенте для выпадающего списка- Parameters:
id- код геокодаtitle- название.
-
-
Method Details
-
addChild
Добавление дочернего элемента для данного географического кода при построении дерева кодов. Например, если текущий географический код имеет код "734" (Башкортостан), то дочерним для него будет являться код "7347" (Уфа) или "73473" (Стерлитамак).- Parameters:
child- дочерний географический код.
-
toString
-
getGuiTitle
Description copied from interface:GuiTitlableСтрока - имя объекта. Скорее всего уникальная. Используется в комбобоксах, например, итд.- Specified by:
getGuiTitlein interfaceGuiTitlable- Overrides:
getGuiTitlein classIdTitle- Returns:
- Строка - представление объекта.
-
getOperatorId
public int getOperatorId() -
setOperatorId
public void setOperatorId(int operatorId) -
copyTo
-
toJson
public org.json.JSONObject toJson() -
builder
-