Class AbstractGeographicCode<N extends AbstractGeographicCode<N>>
java.lang.Object
ru.bitel.common.model.Id
ru.bitel.common.model.IdTitle
ru.bitel.bgbilling.kernel.base.phone.common.bean.AbstractGeographicCode<N>
- All Implemented Interfaces:
java.io.Serializable,GuiTitlable,Idable,ListItem,TreeNode<N>
- Direct Known Subclasses:
CostMapItem
public class AbstractGeographicCode<N extends AbstractGeographicCode<N>> extends IdTitle implements TreeNode<N>
- See Also:
- Serialized Form
-
Field Summary
-
Constructor Summary
Constructors Constructor Description AbstractGeographicCode() -
Method Summary
Modifier and Type Method Description voidaddChild(N child)NfindCode(java.lang.String code)java.lang.Iterable<N>findCodeIterator(java.lang.String code)N[]findCodePath(java.lang.String code)java.util.List<N>getChildren()java.lang.StringgetCode()java.lang.StringgetComment()java.lang.StringgetDestination()intgetDestinationId()java.lang.StringgetPrefix()java.lang.String[]getRange()protected static booleanmatches(java.lang.String code, AbstractGeographicCode<?> child)voidsetChildren(java.util.List<N> children)voidsetCode(java.lang.String code)voidsetComment(java.lang.String comment)voidsetDestination(java.lang.String destination)voidsetDestinationId(int destinationId)java.lang.StringtoString()Methods inherited from class ru.bitel.common.model.IdTitle
copyTo, getGuiTitle, getTitle, setTitle, toIdTitleMethods inherited from class ru.bitel.common.model.Id
copyTo, equals, getId, hashCode, newIdList, newIdSet, newIdSet, newIdSet, newIdSet, newMap, setIdMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Field Details
-
code
protected java.lang.String code -
prefix
protected java.lang.String prefix -
range
protected java.lang.String[] range -
children
-
-
Constructor Details
-
AbstractGeographicCode
public AbstractGeographicCode()
-
-
Method Details
-
getCode
public java.lang.String getCode() -
getPrefix
public java.lang.String getPrefix() -
getRange
public java.lang.String[] getRange() -
setCode
public void setCode(java.lang.String code) -
getChildren
- Specified by:
getChildrenin interfaceTreeNode<N extends AbstractGeographicCode<N>>
-
setChildren
-
getDestinationId
public int getDestinationId() -
setDestinationId
public void setDestinationId(int destinationId) -
getDestination
public java.lang.String getDestination() -
setDestination
public void setDestination(java.lang.String destination) -
getComment
public java.lang.String getComment() -
setComment
public void setComment(java.lang.String comment) -
addChild
-
findCode
-
findCodeIterator
-
findCodePath
-
matches
-
toString
public java.lang.String toString()
-