net.sf.jhunlang.jmorph
Class ExceptionEntry

java.lang.Object
  extended bynet.sf.jhunlang.jmorph.DictEntry
      extended bynet.sf.jhunlang.jmorph.ExceptionEntry
All Implemented Interfaces:
DictConstants, java.io.Serializable

public class ExceptionEntry
extends DictEntry
implements DictConstants

ExceptionEntry instances represent the dictionary definitions of exceptional solutions resolving exceptional words stored in XWordEntry instances..

See Also:
Serialized Form

Field Summary
protected  DictEntry flagEntry
          The entry for flags
protected  java.lang.String stem
          The solution given by this exception
 
Fields inherited from class net.sf.jhunlang.jmorph.DictEntry
ALL_CAPITALIZED, ALL_LOWER, capitalization, CAPITALIZED, CAPS, flags, FUNNY_CAPITALIZED, homonyms, inflexion, NO_HOMONYM, root, word
 
Fields inherited from interface net.sf.jhunlang.jmorph.parser.DictConstants
CHUNK_FLAG, EXCEPTION_START, EXCEPTIONAL_STRIP, FORBIDDEN_FLAG, ONLYROOT_FLAG, X_FLAG, YIJ_FLAG
 
Constructor Summary
ExceptionEntry(java.lang.String word, java.lang.String solution)
          Create an ExceptionEntry with the solution of an exceptional word.
 
Method Summary
 java.lang.String contentString()
          Return the internal String representation of the content of this instance
 java.lang.String getAbsoluteRootWord()
          Return the solution of DictEntry.word
 boolean hasFlag(int flag)
          Return if DictEntry.flags contains flag
 void setFlagEntry(DictEntry entry)
           
 
Methods inherited from class net.sf.jhunlang.jmorph.DictEntry
addHomonym, admitCapitalization, admitLowerCapitalization, capitalization, compound, derivatorString, derived, dictionaryDerivatorString, dictionaryWord, getAbsoluteRootEntry, getAccumulatedFlags, getCapitalization, getCaseEnding, getDictionaryRootEntry, getDictionaryRootWord, getFlags, getFlagString, getHomonyms, getInflexion, getPOS, getRelativeRootEntry, getRelativeRootWord, getRootEntry, getRootWord, getWord, hasFlag, inflex, inflex, inflexed, inflexionString, length, longContentString, morphString, setInflexion, setRoot, shortClassName, toLongString, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

stem

protected java.lang.String stem
The solution given by this exception


flagEntry

protected DictEntry flagEntry
The entry for flags

Constructor Detail

ExceptionEntry

public ExceptionEntry(java.lang.String word,
                      java.lang.String solution)
Create an ExceptionEntry with the solution of an exceptional word. Strips off the DictConstants.EXCEPTIONAL_STRIP from the beginning of solution as specified in huspell.

Parameters:
word - the word
solution - the solution
Method Detail

setFlagEntry

public void setFlagEntry(DictEntry entry)

getAbsoluteRootWord

public java.lang.String getAbsoluteRootWord()
Return the solution of DictEntry.word

Overrides:
getAbsoluteRootWord in class DictEntry
Returns:
the solution of word of this entry

hasFlag

public boolean hasFlag(int flag)
Description copied from class: DictEntry
Return if DictEntry.flags contains flag

Overrides:
hasFlag in class DictEntry
Parameters:
flag - the flag to check
Returns:
if flags contains flag

contentString

public java.lang.String contentString()
Return the internal String representation of the content of this instance

Overrides:
contentString in class DictEntry
Returns:
the internal String representation


Copyright © 2005 jmorph developers. All Rights Reserved.