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 void
addChild(N child)
N
findCode(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.String
getCode()
java.lang.String
getComment()
java.lang.String
getDestination()
int
getDestinationId()
java.lang.String
getPrefix()
java.lang.String[]
getRange()
protected static boolean
matches(java.lang.String code, AbstractGeographicCode<?> child)
void
setChildren(java.util.List<N> children)
void
setCode(java.lang.String code)
void
setComment(java.lang.String comment)
void
setDestination(java.lang.String destination)
void
setDestinationId(int destinationId)
java.lang.String
toString()
Methods inherited from class ru.bitel.common.model.IdTitle
copyTo, getGuiTitle, getTitle, setTitle, toIdTitle
Methods inherited from class ru.bitel.common.model.Id
copyTo, equals, getId, hashCode, newIdList, newIdSet, newIdSet, newIdSet, newIdSet, newMap, setId
Methods 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:
getChildren
in 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()
-