1 51 package org.apache.fop.fo; 52 53 public class CharacterProperty extends Property { 54 55 public static class Maker extends Property.Maker { 56 57 public Maker(String propName) { 58 super(propName); 59 } 60 61 public Property make(PropertyList propertyList, String value, 62 FObj fo) { 63 char c = value.charAt(0); 64 return new CharacterProperty(c); 65 } 66 67 } 69 private char character; 70 71 public CharacterProperty(char character) { 72 this.character = character; 73 } 74 75 public Object getObject() { 76 return new Character (character); 77 } 78 79 public char getCharacter() { 80 return this.character; 81 } 82 83 public String getString() { 84 return new Character (character).toString(); 85 } 86 87 } 88 | Popular Tags |