1 22 23 24 package com.mchange.v2.codegen.bean; 25 26 import java.lang.reflect.Modifier ; 27 28 public class SimpleProperty implements Property 29 { 30 int variable_modifiers; 31 String name; 32 String simpleTypeName; 33 String defensiveCopyExpression; 34 String defaultValueExpression; 35 int getter_modifiers; 36 int setter_modifiers; 37 boolean is_read_only; 38 boolean is_bound; 39 boolean is_constrained; 40 41 public int getVariableModifiers() { return variable_modifiers; } 42 public String getName() { return name; } 43 public String getSimpleTypeName() { return simpleTypeName; } 44 public String getDefensiveCopyExpression() { return defensiveCopyExpression; } 45 public String getDefaultValueExpression() { return defaultValueExpression; } 46 public int getGetterModifiers() { return getter_modifiers; } 47 public int getSetterModifiers() { return setter_modifiers; } 48 public boolean isReadOnly() { return is_read_only; } 49 public boolean isBound() { return is_bound; } 50 public boolean isConstrained() { return is_constrained; } 51 52 public SimpleProperty( int variable_modifiers, 53 String name, 54 String simpleTypeName, 55 String defensiveCopyExpression, 56 String defaultValueExpression, 57 int getter_modifiers, 58 int setter_modifiers, 59 boolean is_read_only, 60 boolean is_bound, 61 boolean is_constrained ) 62 { 63 this.variable_modifiers = variable_modifiers; 64 this.name = name; 65 this.simpleTypeName = simpleTypeName; 66 this.defensiveCopyExpression = defensiveCopyExpression; 67 this.defaultValueExpression = defaultValueExpression; 68 this.getter_modifiers = getter_modifiers; 69 this.setter_modifiers = setter_modifiers; 70 this.is_read_only = is_read_only; 71 this.is_bound = is_bound; 72 this.is_constrained = is_constrained; 73 } 74 75 public SimpleProperty( String name, 76 String simpleTypeName, 77 String defensiveCopyExpression, 78 String defaultValueExpression, 79 boolean is_read_only, 80 boolean is_bound, 81 boolean is_constrained ) 82 { 83 this ( Modifier.PRIVATE, 84 name, 85 simpleTypeName, 86 defensiveCopyExpression, 87 defaultValueExpression, 88 Modifier.PUBLIC, 89 Modifier.PUBLIC, 90 is_read_only, 91 is_bound, 92 is_constrained ); 93 } 94 } 95 | Popular Tags |