public class Tag extends Object
Modifier and Type | Field and Description |
---|---|
static int |
END
This int represents a END tag
|
static int |
START
This int represents a START tag
|
Constructor and Description |
---|
Tag(String name,
int type)
Creates a new instance of Tag.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getName()
Gets the name of the tag
|
int |
getType()
Gets the type of the tag
|
int |
hashCode() |
void |
setName(String name)
Sets the name of the tag
|
void |
setType(int type)
Sets the type of the tag
|
String |
toString() |
public static int START
public static int END
public Tag(String name, int type)
name
- the name of the tagtype
- the type of the tagpublic String getName()
public void setName(String name)
name
- the name to setpublic int getType()
public void setType(int type)
type
- the type to setCopyright © 2003–2015 The Apache Software Foundation. All rights reserved.