Package com.inet.jorthodictionaries
Class BookGenerator_ru.Template
- java.lang.Object
-
- com.inet.jorthodictionaries.BookGenerator_ru.Template
-
- Enclosing class:
- BookGenerator_ru
public class BookGenerator_ru.Template extends java.lang.ObjectDescribed the needed informations of a template.
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Hashtable<java.lang.String,java.lang.String[]>rulesprivate java.lang.StringtemplateName
-
Constructor Summary
Constructors Constructor Description Template(java.lang.String templateName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) voidaddEnding(java.lang.String rule, java.lang.String ending)Add a single ending to a rule.voidaddWords(java.lang.String word, java.util.Properties props)(package private) java.lang.StringgetName()Get the name of the template without the prefix "Шаблон:"(package private) intgetRuleCount()get the count of found rules in the template.java.lang.StringtoString()Create a Java source code representation of this template.
-
-
-
Method Detail
-
addWords
public void addWords(java.lang.String word, java.util.Properties props)
-
getRuleCount
int getRuleCount()
get the count of found rules in the template. Only templates with rules make sence.
-
getName
java.lang.String getName()
Get the name of the template without the prefix "Шаблон:"
-
addEnding
void addEnding(java.lang.String rule, java.lang.String ending)Add a single ending to a rule.
-
toString
public java.lang.String toString()
Create a Java source code representation of this template. Currently obsolet.- Overrides:
toStringin classjava.lang.Object
-
-