1 package com.thaiopensource.validate; 2 3 import com.thaiopensource.util.PropertyId; 4 import com.thaiopensource.util.PropertyMap; 5 import com.thaiopensource.util.PropertyMapBuilder; 6 7 13 14 public class StringPropertyId extends PropertyId { 15 public StringPropertyId(String name) { 16 super(name, String .class); 17 } 18 19 28 public String get(PropertyMap properties) { 29 return (String )properties.get(this); 30 } 31 32 44 public String put(PropertyMapBuilder builder, String value) { 45 return (String )builder.put(this, value); 46 } 47 } 48 | Popular Tags |