1 24 package com.catcode.odf; 25 26 34 public class ElementPostProcess implements Comparable 35 { 36 protected String name; 37 protected char postProcess; 38 39 43 public ElementPostProcess( ) 44 { 45 this( "", '\0' ); 46 } 47 48 54 public ElementPostProcess( String name ) 55 { 56 this( name, '\0'); 57 } 58 59 66 public ElementPostProcess( String name, char postProcess ) 67 { 68 this.name = name; 69 this.postProcess = postProcess; 70 } 71 72 76 public char getPostProcess( ) 77 { 78 return postProcess; 79 } 80 81 85 public void setPostProcess( char postProcess ) 86 { 87 this.postProcess = postProcess; 88 } 89 90 94 public String getName( ) 95 { 96 return name; 97 } 98 99 103 public void setName( String name ) 104 { 105 this.name = name; 106 } 107 108 111 public int compareTo(Object o) 112 { 113 return this.name.compareTo( ((ElementPostProcess) o).name ); 114 } 115 } 116 117 | Popular Tags |