1 17 18 19 20 package org.apache.fop.fo.properties; 21 22 import org.apache.fop.fo.Constants; 23 import org.apache.fop.fo.PropertyList; 24 import org.apache.fop.fo.expr.PropertyException; 25 26 31 public class CommonHyphenation { 32 35 public String language; 36 37 40 public String country; 41 42 45 public String script; 46 47 50 public int hyphenate; 51 52 55 public char hyphenationCharacter; 56 57 60 public int hyphenationPushCharacterCount; 61 62 65 public int hyphenationRemainCharacterCount; 66 67 71 public CommonHyphenation(PropertyList pList) throws PropertyException { 72 language = pList.get(Constants.PR_LANGUAGE).getString(); 73 country = pList.get(Constants.PR_COUNTRY).getString(); 74 script = pList.get(Constants.PR_SCRIPT).getString(); 75 hyphenate = pList.get(Constants.PR_HYPHENATE).getEnum(); 76 hyphenationCharacter = pList.get(Constants.PR_HYPHENATION_CHARACTER).getCharacter(); 77 hyphenationPushCharacterCount = 78 pList.get(Constants.PR_HYPHENATION_PUSH_CHARACTER_COUNT).getNumber().intValue(); 79 hyphenationRemainCharacterCount = 80 pList.get(Constants.PR_HYPHENATION_REMAIN_CHARACTER_COUNT).getNumber().intValue(); 81 82 } 83 84 } 85 | Popular Tags |