public class Tag
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
END
This int represents a END tag
|
private java.lang.String |
name
The name of the tag
|
static int |
START
This int represents a START tag
|
private int |
type
The type of the tag
|
| Constructor and Description |
|---|
Tag(java.lang.String name,
int type)
Creates a new instance of Tag.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getName()
Gets the name of the tag
|
int |
getType()
Gets the type of the tag
|
int |
hashCode() |
void |
setName(java.lang.String name)
Sets the name of the tag
|
void |
setType(int type)
Sets the type of the tag
|
java.lang.String |
toString() |
private java.lang.String name
private int type
public static final int START
public static final int END
public Tag(java.lang.String name,
int type)
name - the name of the tagtype - the type of the tagpublic java.lang.String getName()
public void setName(java.lang.String name)
name - the name to setpublic int getType()
public void setType(int type)
type - the type to setpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object