|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectau.id.pbw.hyfo.hyph.Modifier
public class Modifier
This class represents the modification to a word which occurs when it is hyphenated.
| Field Summary | |
|---|---|
static byte |
DEFAULT_WEIGHT
The default modifier break weight. |
String |
nobreak
The text before line-breaking. |
String |
nobreak_post
The nobreak text following the breakpoint. |
String |
nobreak_pre
The nobreak text preceding the breakpoint. |
String |
postbreak
The text following the line-break, after line-breaking. |
String |
prebreak
The text preceding the line-break, after line-breaking. |
byte |
weight
The weight associated with the modifier. |
| Constructor Summary | |
|---|---|
Modifier(Alphabet alphabet)
Constructs the default modifier. |
|
Modifier(Alphabet alphabet,
String nobreak,
String prebreak,
String postbreak)
Constructs a modifier with the given no-break, pre-break and post-break strings. |
|
| Method Summary | |
|---|---|
Modifier |
get_default_modifier()
Gets the default Modifier. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public final String nobreak
public final String prebreak
public final String postbreak
public final String nobreak_pre
public final String nobreak_post
public final byte weight
public static final byte DEFAULT_WEIGHT
| Constructor Detail |
|---|
public Modifier(Alphabet alphabet)
alphabet - the Alphabet applying to this modifier.
public Modifier(Alphabet alphabet,
String nobreak,
String prebreak,
String postbreak)
throws HyphenationException
alphabet - the Alphabet geverning tis modifier.nobreak - the no-break string.prebreak - the pre-break string.postbreak - the postbreak string.
HyphenationException - if the modifier data is incorrectly formatted.| Method Detail |
|---|
public Modifier get_default_modifier()
Modifier. This represents the usual hyphenation
practice. The no-break string is empty, the post-break string is empty,
and the pre-break string contains the default hyphen character.
Modifier.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||