public class AbstractGeographicCode<N extends AbstractGeographicCode<N>> extends IdTitle implements TreeNode<N>
Modifier and Type | Field and Description |
---|---|
protected java.util.List<N> |
children |
protected java.lang.String |
code |
protected java.lang.String |
prefix |
protected java.lang.String[] |
range |
Constructor and Description |
---|
AbstractGeographicCode() |
Modifier and Type | Method and 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() |
equals, getId, hashCode, newIdList, newIdSet, newIdSet, newIdSet, newIdSet, newMap, setId
protected java.lang.String code
protected java.lang.String prefix
protected java.lang.String[] range
protected java.util.List<N extends AbstractGeographicCode<N>> children
public java.lang.String getCode()
public java.lang.String getPrefix()
public java.lang.String[] getRange()
public void setCode(java.lang.String code)
public java.util.List<N> getChildren()
getChildren
in interface TreeNode<N extends AbstractGeographicCode<N>>
public void setChildren(java.util.List<N> children)
public int getDestinationId()
public void setDestinationId(int destinationId)
public java.lang.String getDestination()
public void setDestination(java.lang.String destination)
public java.lang.String getComment()
public void setComment(java.lang.String comment)
public void addChild(N child)
public N findCode(java.lang.String code)
public java.lang.Iterable<N> findCodeIterator(java.lang.String code)
public N[] findCodePath(java.lang.String code)
protected static boolean matches(java.lang.String code, AbstractGeographicCode<?> child)