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.Object
Described the needed informations of a template.
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Hashtable<java.lang.String,java.lang.String[]>
rules
private java.lang.String
templateName
-
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) void
addEnding(java.lang.String rule, java.lang.String ending)
Add a single ending to a rule.void
addWords(java.lang.String word, java.util.Properties props)
(package private) java.lang.String
getName()
Get the name of the template without the prefix "Шаблон:"(package private) int
getRuleCount()
get the count of found rules in the template.java.lang.String
toString()
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:
toString
in classjava.lang.Object
-
-