org.apache.directory.shared.dsmlv2
Class Tag

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

public class Tag
extends java.lang.Object

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

Version:
$Rev$, $Date$
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(java.lang.String name, int type)
          Creates a new instance of Tag.
 
Method Summary
 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()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

START

public static int START
This int represents a START tag


END

public static int END
This int represents a END tag

Constructor Detail

Tag

public Tag(java.lang.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 java.lang.String getName()
Gets the name of the tag

Returns:
the name of the tag

setName

public void setName(java.lang.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(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2003-2011 Apache Software Foundation. All Rights Reserved.