public class TaxonomyBean extends Object
Constructor and Description |
---|
TaxonomyBean() |
TaxonomyBean(String id,
String name) |
TaxonomyBean(String id,
String name,
TaxonomyBean parent) |
Modifier and Type | Method and Description |
---|---|
TaxonomyBean |
addChild(TaxonomyBean newChild,
String previousId) |
TaxonomyBean |
addChildAsFirst(TaxonomyBean child) |
TaxonomyBean |
addChildAsLast(TaxonomyBean child) |
List<TaxonomyBean> |
getAllChildren() |
List<TaxonomyBean> |
getChildren() |
String |
getId() |
Map<String,String> |
getLabels() |
int |
getLabelsSize() |
String |
getName() |
TaxonomyBean |
getParent() |
String |
getPath() |
Map<String,String> |
getPathLabels() |
boolean |
hasChild(String id) |
TaxonomyBean |
searchChildByName(String name) |
void |
setChildren(List<TaxonomyBean> children) |
void |
setId(String id) |
void |
setLabels(Map<String,String> labels) |
boolean |
setName(String name) |
void |
setParent(TaxonomyBean parent) |
String |
toString() |
boolean |
updateLabel(String lang,
String label) |
public TaxonomyBean()
public TaxonomyBean(String id, String name, TaxonomyBean parent)
public String getId()
public void setId(String id)
public String getName()
public boolean setName(String name)
public int getLabelsSize()
public List<TaxonomyBean> getChildren()
public List<TaxonomyBean> getAllChildren()
public TaxonomyBean searchChildByName(String name)
public void setChildren(List<TaxonomyBean> children)
public TaxonomyBean addChildAsFirst(TaxonomyBean child)
public TaxonomyBean addChildAsLast(TaxonomyBean child)
public TaxonomyBean addChild(TaxonomyBean newChild, String previousId)
public boolean hasChild(String id)
public TaxonomyBean getParent()
public void setParent(TaxonomyBean parent)
public String getPath()
Copyright © 2012-2018. All Rights Reserved.