public class GeographicCode extends java.lang.Object implements TreeNode<GeographicCode>
Constructor and Description |
---|
GeographicCode() |
Modifier and Type | Method and Description |
---|---|
void |
addChild(GeographicCode child) |
GeographicCode |
findCode(java.lang.String code) |
GeographicCode |
findCode(java.lang.String code,
int startLevel,
int endLevel) |
GeographicCode |
findCodeMatch(java.lang.String code) |
GeographicCode |
findParent(java.lang.String code) |
java.util.List<GeographicCode> |
getChildren() |
java.lang.String |
getCode() |
java.lang.String |
getDestination() |
int |
getDestinationId() |
int |
getEndLevel() |
int |
getLevel() |
int |
getStartLevel() |
void |
setChildren(java.util.List<GeographicCode> children) |
void |
setCode(java.lang.String code) |
void |
setDestination(java.lang.String destination) |
void |
setDestinationId(int destinationId) |
void |
setEndLevel(int endLevel) |
void |
setLevel(int level) |
void |
setStartLevel(int startLevel) |
java.lang.String |
toString() |
public java.lang.String getCode()
public void setCode(java.lang.String code)
public java.util.List<GeographicCode> getChildren()
getChildren
in interface TreeNode<GeographicCode>
public void setChildren(java.util.List<GeographicCode> children)
public int getDestinationId()
public void setDestinationId(int destinationId)
public java.lang.String getDestination()
public void setDestination(java.lang.String destination)
public int getLevel()
public void setLevel(int level)
public int getStartLevel()
public void setStartLevel(int startLevel)
public int getEndLevel()
public void setEndLevel(int endLevel)
public GeographicCode findCodeMatch(java.lang.String code)
public GeographicCode findParent(java.lang.String code)
public GeographicCode findCode(java.lang.String code)
public GeographicCode findCode(java.lang.String code, int startLevel, int endLevel)
public void addChild(GeographicCode child)
public java.lang.String toString()
toString
in class java.lang.Object