Project

General

Profile

Download (910 Bytes) Statistics
| Branch: | Tag: | Revision:
1
/**
2
* Copyright (C) 2011 EDIT
3
* European Distributed Institute of Taxonomy
4
* http://www.e-taxonomy.eu
5
*
6
* The contents of this file are subject to the Mozilla Public License Version 1.1
7
* See LICENSE.TXT at the top of this package for the full license terms.
8
*/
9
package eu.etaxonomy.dataportal.elements;
10

    
11
import org.openqa.selenium.By;
12
import org.openqa.selenium.WebElement;
13

    
14
/**
15
 * @author andreas
16
 * @since Aug 29, 2011
17
 *
18
 */
19
public class TaxonListElement extends BaseElement {
20

    
21
	private TaxonType type;
22

    
23
	private String fullTaxonName;
24

    
25

    
26
	/**
27
	 * @param element
28
	 */
29
	public TaxonListElement(WebElement element) {
30
		super(element);
31
		type = TaxonType.valueOf( element.getAttribute("class").replace("item ", "") );
32
		fullTaxonName = element.findElement(By.tagName("span")).getText();
33
	}
34

    
35

    
36
	public TaxonType getType() {
37
		return type;
38
	}
39

    
40

    
41
	public String getFullTaxonName() {
42
		return fullTaxonName;
43
	}
44

    
45

    
46

    
47

    
48
}
(17-17/21)