Project

General

Profile

« Previous | Next » 

Revision 9691cba9

Added by Andreas Müller over 3 years ago

cleanup

View differences:

cdmlib-remote/src/main/java/eu/etaxonomy/cdm/remote/dto/cdm/NameInformationRdf.java
32 32
 * This class is an RDF representation of the {@link eu.etaxonomy.cdm.remote.dto.namecatalogue.NameInformation NameInformation}
33 33
 *
34 34
 * @author c.mathew
35
 * @version 1.1.0
36 35
 * @since 25-Nov-2012
37 36
 */
38

  
39 37
@XmlAccessorType(XmlAccessType.FIELD)
40 38
@XmlType(name = "NameInformation", propOrder = {
41 39
		"scientificNameID",
......
48 46
})
49 47
@XmlRootElement(name = "NameInformation", namespace = "http://cybertaxonomy.eu/cdm/ontology/voc/NameInformation#")
50 48
public class NameInformationRdf extends BaseThing {
51
	
49

  
52 50
	@XmlElement(namespace = "http://rs.tdwg.org/dwc/terms/")
53 51
	private String scientificNameID;
54
	
52

  
55 53
	@XmlElement(namespace = "http://rs.tdwg.org/ontology/voc/TaxonName#")
56 54
	private String nameComplete;
57
	
55

  
58 56
	@XmlElement(namespace = "http://purl.org/dc/elements/1.1/")
59 57
	private String title;
60
	
58

  
61 59
	@XmlElement(namespace = "http://rs.tdwg.org/ontology/voc/TaxonName#")
62
	private String rankString;	
63
	
60
	private String rankString;
61

  
64 62
	@XmlElement(namespace = "http://purl.org/dc/terms/")
65 63
	private String references;
66 64

  
67 65
	@XmlElement(namespace = "http://rs.tdwg.org/dwc/terms/")
68 66
	private List<String> typeStatus;
69
	
67

  
70 68

  
71 69
	@XmlElement(name = "hasRelationship", namespace = "http://rs.tdwg.org/ontology/voc/TaxonConcept#")
72 70
	private Set<HasRelationship> hasRelationships = null;
73
	
71

  
74 72
	@XmlTransient
75 73
	private Set<String> taxonUuids;
76
	
77
	
74

  
75

  
78 76
	public Set<String> getTaxonUuids() {
79 77
		return taxonUuids;
80 78
	}
......
84 82
		Set<Relationship> relationships = new HashSet<Relationship>();
85 83
		Iterator<String> itr = taxonUuids.iterator();
86 84
		while(itr.hasNext()) {
87
			String uuid = itr.next();			
85
			String uuid = itr.next();
88 86
			try {
89 87
				TaxonConcept tc = new TaxonConcept();
90 88
				tc.setIdentifier(new URI("urn:uuid:" + uuid));
91 89
				Relationship rel = new Relationship();
92 90
				rel.setToTaxon(tc);
93 91
				relationships.add(rel);
94
				
92

  
95 93
			} catch (URISyntaxException e) {
96 94
				// TODO Auto-generated catch block
97 95
				//e.printStackTrace();
......
105 103
	public String getScientificNameID() {
106 104
		return scientificNameID;
107 105
	}
108
	
106

  
109 107
	public void setScientificNameID(String scientificNameID) {
110 108
		this.scientificNameID = scientificNameID;
111 109
	}
112
	
110

  
113 111
	public String getNameComplete() {
114 112
		return nameComplete;
115 113
	}
......
118 116
		this.nameComplete = nameComplete;
119 117
	}
120 118

  
121
	public String getTitle() {
119
	@Override
120
    public String getTitle() {
122 121
		return title;
123 122
	}
124 123

  
125
	public void setTitle(String title) {
124
	@Override
125
    public void setTitle(String title) {
126 126
		this.title = title;
127 127
	}
128 128

  
......
133 133
	public void setRankString(String rankString) {
134 134
		this.rankString = rankString;
135 135
	}
136
	
136

  
137 137
	public String getReferences() {
138 138
		return references;
139 139
	}
......
141 141
	public void setReferences(String references) {
142 142
		this.references = references;
143 143
	}
144
	
144

  
145 145
	public List<String> getTypeStatus() {
146 146
		return typeStatus;
147 147
	}

Also available in: Unified diff