sofie.parsing
Class Token.CommonIndividual

java.lang.Object
  extended by sofie.parsing.Token
      extended by sofie.parsing.Token.CommonIndividual
All Implemented Interfaces:
java.lang.Comparable<Token>
Direct Known Subclasses:
Token.ProperName, Token.WikiLink
Enclosing class:
Token

public static class Token.CommonIndividual
extends Token

Superclass for common individuals


Nested Class Summary
 
Nested classes/interfaces inherited from class sofie.parsing.Token
Token.AnyName, Token.CanonicProperName, Token.CommonIndividual, Token.Company, Token.Date, Token.Functional, Token.Literal, Token.NameType, Token.Number, Token.Person, Token.ProperName, Token.Punctuation, Token.Repeat, Token.SemiCanonicProperName, Token.Separator, Token.StartCommentToken, Token.StopWord, Token.Title, Token.URL, Token.USState, Token.WikiLink, Token.Word
 
Field Summary
protected  Token.NameType nameType
          Type of the token
 
Fields inherited from class sofie.parsing.Token
CATEGORY, HTMLCOMMENT, IGNORE, INFOBOXBAR, INFOBOXHEAD, original, REF, REVISION, SEPARATOR, STARTARTICLE, STARTBRACES, STARTINFOBOX, STARTSCRIPT, token
 
Constructor Summary
Token.CommonIndividual(java.lang.String s)
           
 
Method Summary
 void disambiguateAs(java.lang.String n)
          Marks this token as disambiguated
 void makePolysem(int docId)
          Marks this token as polysemous
 void makeVoid()
          Marks this token as meaningless
 Token.NameType nameType()
          Returns the type
 void redirectTo(Token.CommonIndividual t)
          Redirects this token to the given token
 boolean replaceMe()
          Tells whether the token shall be replaced by '@' in a pattern
 java.lang.String toString()
           
 
Methods inherited from class sofie.parsing.Token
compareTo, equals, hashCode, isInteresting, isMultiWord, original, token
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

nameType

protected Token.NameType nameType
Type of the token

Constructor Detail

Token.CommonIndividual

public Token.CommonIndividual(java.lang.String s)
Method Detail

nameType

public Token.NameType nameType()
Returns the type


replaceMe

public boolean replaceMe()
Description copied from class: Token
Tells whether the token shall be replaced by '@' in a pattern

Overrides:
replaceMe in class Token

disambiguateAs

public void disambiguateAs(java.lang.String n)
Marks this token as disambiguated


makePolysem

public void makePolysem(int docId)
Marks this token as polysemous


makeVoid

public void makeVoid()
Marks this token as meaningless


toString

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

redirectTo

public void redirectTo(Token.CommonIndividual t)
Redirects this token to the given token