Package org.apache.directory.api.dsmlv2
Class Tag
- java.lang.Object
-
- org.apache.directory.api.dsmlv2.Tag
-
public class Tag extends Object
This class represents a XML tag.
A XML tag is defined with :- a name
- a type (START tag or END tag)
- Author:
- Apache Directory Project
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)StringgetName()Gets the name of the tagintgetType()Gets the type of the taginthashCode()voidsetName(String name)Sets the name of the tagvoidsetType(int type)Sets the type of the tagStringtoString()
-
-
-
Field Detail
-
START
public static final int START
This int represents a START tag- See Also:
- Constant Field Values
-
END
public static final int END
This int represents a END tag- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Tag
public Tag(String name, int type)
Creates a new instance of Tag.- Parameters:
name- the name of the tagtype- the type of the tag
-
-
Method Detail
-
getName
public String getName()
Gets the name of the tag- Returns:
- the name of the tag
-
setName
public void setName(String name)
Sets the name of the tag- Parameters:
name- the name to set
-
getType
public int getType()
Gets the type of the tag- Returns:
- the type of the tag
-
setType
public void setType(int type)
Sets the type of the tag- Parameters:
type- the type to set
-
-