1 17 18 19 20 package org.apache.fop.fo.properties; 21 22 import org.apache.fop.fo.FObj; 23 import org.apache.fop.fo.PropertyList; 24 25 28 public class CharacterProperty extends Property { 29 30 33 public static class Maker extends PropertyMaker { 34 35 38 public Maker(int propId) { 39 super(propId); 40 } 41 42 public Property make(PropertyList propertyList, String value, 43 FObj fo) { 44 char c = value.charAt(0); 45 return new CharacterProperty(c); 46 } 47 48 } 50 private char character; 51 52 55 public CharacterProperty(char character) { 56 this.character = character; 57 } 58 59 62 public Object getObject() { 63 return new Character (character); 64 } 65 66 69 public char getCharacter() { 70 return this.character; 71 } 72 73 76 public String getString() { 77 return new Character (character).toString(); 78 } 79 80 } 81 | Popular Tags |