Project

General

Profile

« Previous | Next » 

Revision 4d68581f

Added by Katja Luther over 3 years ago

ref #8774: further implementations for using term dtos in editor

View differences:

cdmlib-model/src/main/java/eu/etaxonomy/cdm/model/term/TermNode.java
179 179
	 */
180 180
	@Override
181 181
    public List<TermNode<T>> getChildNodes() {
182
	    removeNullValueFromChildren();
183 182
	    return children;
184 183
	}
185 184

  
......
575 574
		return terms;
576 575
	}
577 576

  
577

  
578
	public String getPath(){
579
	    String result = "";
580
	    if (parent != null && parent.getTerm() != null){
581
	        result = parent.getPath() + "/" + parent.getTerm().getLabel();
582
	    }
583
	    if (getTerm()!= null){
584
	        result += getTerm().getLabel();
585
	    }
586
	    return result;
587
	}
578 588
    /**
579 589
     * Returns all terms that are contained in this node or a child node
580 590
     * as long as this node or the child nodes are not {@link #isDependent() dependent}

Also available in: Unified diff