org.apache.directory.api.dsmlv2
Class Tag

java.lang.Object
  extended by org.apache.directory.api.dsmlv2.Tag

public class Tag
extends Object

This class represents a XML tag.
A XML tag is defined with :

Author:
Apache Directory Project

Field Summary
static int END
          This int represents a END tag
static int START
          This int represents a START tag
 
Constructor Summary
Tag(String name, int type)
          Creates a new instance of Tag.
 
Method Summary
 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()
          
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

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 tag
type - 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

equals

public boolean equals(Object obj)

Overrides:
equals in class Object

hashCode

public int hashCode()

Overrides:
hashCode in class Object

toString

public String toString()

Overrides:
toString in class Object


Copyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.