1 19 package org.jahia.data.fields; 20 21 import java.io.Serializable ; 22 23 24 25 public class JahiaFieldSubDefinition implements Serializable { 26 27 28 private int ID; 29 private int fieldDefID; 30 private int pageDefID; 31 private String title; 32 private int type; 33 private String defaultValue; 34 35 36 41 public JahiaFieldSubDefinition( int ID, 42 int fieldDefID, 43 int pageDefID, 44 String title, 45 int type, 46 String defaultValue ) 47 { 48 this.ID = ID; 49 this.fieldDefID = fieldDefID; 50 this.pageDefID = pageDefID; 51 this.title = title; 52 this.type = type; 53 this.defaultValue = defaultValue; 54 } 56 57 60 protected JahiaFieldSubDefinition() { 61 62 } 63 64 69 public int getID() { return ID; } 70 public int getFieldDefID() { return fieldDefID; } 71 public int getPageDefID() { return pageDefID; } 72 public String getTitle() { return title; } 73 public int getType() { return type; } 74 public String getDefaultValue() { return defaultValue; } 75 76 public void setID( int ID ) { this.ID = ID; } 77 public void setFieldDefID(int id) { this.fieldDefID = id; } 78 public void setTitle( String value ) { this.title = value; } 79 public void setType( int value ) { this.type = value; } 80 public void setDefaultValue( String value ) { this.defaultValue = value; } 81 83 84 85 90 public String toString () 91 { 92 StringBuffer output = new StringBuffer ("Detail of fieldSubDef ["+getID()+"]\n"); 93 output.append (" - id ["+Integer.toString (getID())+"]\n"); 94 output.append (" - fieldDef ["+getFieldDefID()+"]\n"); 95 output.append (" - pageDef ["+getPageDefID()+"]\n"); 96 output.append (" - title ["+getTitle()+"]\n"); 97 output.append (" - type ["+getType()+"]\n"); 98 output.append (" - defaultValue ["+getDefaultValue()+"]\n"); 99 100 return output.toString(); 101 } 102 103 104 } | Popular Tags |