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 intbeginLimitprotected intendLimit
-
Constructor Summary
Constructors Constructor Description AbstractHyphenator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetBeginLimit()Gets the begin limit.intgetEndLimit()Gets the end limit.voidsetBeginLimit(int beginLimit)Sets the begin limit.voidsetEndLimit(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:HyphenatorInterfaceGets the begin limit. In other words, the number of unbreakable characters at the beginning of each word.- Specified by:
getBeginLimitin interfaceHyphenatorInterface- Returns:
- returns the begin limit
-
setBeginLimit
public void setBeginLimit(int beginLimit)
Description copied from interface:HyphenatorInterfaceSets the begin limit. In other words, the number of unbreakable characters at the beginning of each word.- Specified by:
setBeginLimitin interfaceHyphenatorInterface- Parameters:
beginLimit- the begin limit
-
getEndLimit
public int getEndLimit()
Description copied from interface:HyphenatorInterfaceGets the end limit. In other words, the number of unbreakable characters at the end of each word.- Specified by:
getEndLimitin interfaceHyphenatorInterface- Returns:
- returns the end limit
-
setEndLimit
public void setEndLimit(int endLimit)
Description copied from interface:HyphenatorInterfaceSets the end limit. In other words, the number of unbreakable characters at the end of each word.- Specified by:
setEndLimitin interfaceHyphenatorInterface- Parameters:
endLimit- the end limit
-
-