-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTag.java
46 lines (42 loc) · 899 Bytes
/
Tag.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
package photo_renamer;
/**
* A name used to describe who is in an image.
*
*/
public class Tag implements java.io.Serializable{
private static final long serialVersionUID = 1L; //eclipse said to put this here
/** This Tag's name. */
private String name;
/**
* Constructs a new Tag with name name.
* @param name
* the name that this tag represents.
*/
public Tag(String name){
this.name = name;
}
/**
* Returns this Tag's name
* @return the name
*
*/
public String getName() {
return name;
}
/**
* Set's this Tag's name to name
* @param name
* the name to set
*/
public void setName(String name) {
this.name = name;
}
/**
* Returns a string representation of this tag.
* @return the name associated with this tag.
*/
@Override
public String toString(){
return getName();
}
}