Package org.daisy.dotify.hyphenator.impl
Class AbstractHyphenator
- java.lang.Object
-
- org.daisy.dotify.hyphenator.impl.AbstractHyphenator
-
- All Implemented Interfaces:
HyphenatorInterface
public abstract class AbstractHyphenator extends Object implements HyphenatorInterface
Provides an abstract base for hyphenators. The abstract implementation provides getters and setters for simple properties of the hyphenator interface, reducing the amount of code in the concrete implementation with a few lines.
-
-
Field Summary
Fields Modifier and Type Field Description protected int
beginLimit
protected int
endLimit
-
Constructor Summary
Constructors Constructor Description AbstractHyphenator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getBeginLimit()
Gets the begin limit.int
getEndLimit()
Gets the end limit.void
setBeginLimit(int beginLimit)
Sets the begin limit.void
setEndLimit(int endLimit)
Sets the end limit.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.daisy.dotify.api.hyphenator.HyphenatorInterface
hyphenate
-
-
-
-
Method Detail
-
getBeginLimit
public int getBeginLimit()
Description copied from interface:HyphenatorInterface
Gets the begin limit. In other words, the number of unbreakable characters at the beginning of each word.- Specified by:
getBeginLimit
in interfaceHyphenatorInterface
- Returns:
- returns the begin limit
-
setBeginLimit
public void setBeginLimit(int beginLimit)
Description copied from interface:HyphenatorInterface
Sets the begin limit. In other words, the number of unbreakable characters at the beginning of each word.- Specified by:
setBeginLimit
in interfaceHyphenatorInterface
- Parameters:
beginLimit
- the begin limit
-
getEndLimit
public int getEndLimit()
Description copied from interface:HyphenatorInterface
Gets the end limit. In other words, the number of unbreakable characters at the end of each word.- Specified by:
getEndLimit
in interfaceHyphenatorInterface
- Returns:
- returns the end limit
-
setEndLimit
public void setEndLimit(int endLimit)
Description copied from interface:HyphenatorInterface
Sets the end limit. In other words, the number of unbreakable characters at the end of each word.- Specified by:
setEndLimit
in interfaceHyphenatorInterface
- Parameters:
endLimit
- the end limit
-
-