de.fh_mannheim.mm.dms.framework
Class Stopword

java.lang.Object
  extended byde.fh_mannheim.mm.dms.framework.Stopword
All Implemented Interfaces:
IElement

public class Stopword
extends java.lang.Object
implements IElement

Describes a stopword.

Version:
$Revision: 1.1 $
Author:
Jan Löffler, mail@jlsoft.de

Constructor Summary
Stopword()
          Constructor.
Stopword(java.lang.String strName)
          Constructor.
Stopword(java.lang.String strName, int nLanguage)
          Constructor.
 
Method Summary
 boolean equals(java.lang.Object other)
          Compares two stopword objects.
 int getLanguage()
          Get language of stopword.
 java.lang.String getName()
          Get name of stopword.
 void setLanguage(int nLanguage)
          Set language of stopword.
 void setName(java.lang.String strName)
          Set name of stopword.
 org.w3c.dom.Element toElement(org.w3c.dom.Document doc)
          Write information of stopword in a xml element.
 org.w3c.dom.Element toElement(org.w3c.dom.Element element, org.w3c.dom.Document doc)
          Write information of stopword in a xml element.
 java.lang.String toString()
          Write information of stopword in a string.
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Stopword

public Stopword()
Constructor.


Stopword

public Stopword(java.lang.String strName)
Constructor.

Parameters:
strName - Name of stopword

Stopword

public Stopword(java.lang.String strName,
                int nLanguage)
Constructor.

Parameters:
strName - Name of stopword
nLanguage - Language
Method Detail

equals

public boolean equals(java.lang.Object other)
Compares two stopword objects.

Parameters:
other - Stopword to compare
Returns:
true, if equal

getLanguage

public int getLanguage()
Get language of stopword.

Returns:
Language of stopword

getName

public java.lang.String getName()
Get name of stopword.

Returns:
name of stopword

setName

public void setName(java.lang.String strName)
Set name of stopword.

Parameters:
strName - Name of stopword

setLanguage

public void setLanguage(int nLanguage)
Set language of stopword.

Parameters:
nLanguage - Language of stopword

toElement

public org.w3c.dom.Element toElement(org.w3c.dom.Document doc)
Write information of stopword in a xml element.

Specified by:
toElement in interface IElement
Parameters:
doc - XML Document
Returns:
element

toElement

public org.w3c.dom.Element toElement(org.w3c.dom.Element element,
                                     org.w3c.dom.Document doc)
Write information of stopword in a xml element.

Specified by:
toElement in interface IElement
Parameters:
element - Root element
doc - XML Document
Returns:
element

toString

public java.lang.String toString()
Write information of stopword in a string.

Specified by:
toString in interface IElement
Returns:
information