public Builder(MSimpleParameter p) { super(p); this.secret = p.isSecret(); this.type = (MSimpleType)p.type; this.defaultValue = p.defaultValue; this.minLength = p.minLength; this.maxLength = p.maxLength; this.minValue = p.minValue; this.maxValue = p.maxValue; this.pattern = p.pattern == null ? null : p.pattern.getName(); }