Class GlyphTable.Rule
java.lang.Object
org.docx4j.fonts.fop.complexscripts.fonts.GlyphTable.Rule
- Direct Known Subclasses:
GlyphTable.ClassSequenceRule,GlyphTable.CoverageSequenceRule,GlyphTable.GlyphSequenceRule
- Enclosing class:
- GlyphTable
public abstract static class GlyphTable.Rule
extends java.lang.Object
The
Rule class implements an array of rule lookup records.-
Constructor Summary
Constructors Modifier Constructor Description protectedRule(GlyphTable.RuleLookup[] lookups, int inputSequenceLength)Instantiate a Rule. -
Method Summary
Modifier and Type Method Description intgetInputSequenceLength()GlyphTable.RuleLookup[]getLookups()voidresolveLookupReferences(java.util.Map<java.lang.String,GlyphTable.LookupTable> lookupTables)Resolve references to lookup tables, e.g., in RuleLookup, to the lookup tables themselves.java.lang.StringtoString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
Rule
Instantiate a Rule.- Parameters:
lookups- the rule's lookupsinputSequenceLength- the number of glyphs in the input sequence for this rule
-
-
Method Details
-
getLookups
- Returns:
- the lookups
-
getInputSequenceLength
public int getInputSequenceLength()- Returns:
- the input sequence length
-
resolveLookupReferences
public void resolveLookupReferences(java.util.Map<java.lang.String,GlyphTable.LookupTable> lookupTables)Resolve references to lookup tables, e.g., in RuleLookup, to the lookup tables themselves.- Parameters:
lookupTables- map from lookup table identifers, e.g. "lu4", to lookup tables
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-