public EmailProperty(StringProperty prop) { this(); this._enum = prop.getEnum(); this.minLength = prop.getMinLength(); this.maxLength = prop.getMaxLength(); this.pattern = prop.getPattern(); this.name = prop.getName(); this.type = prop.getType(); this.example = prop.getExample(); this._default = prop.getDefault(); this.xml = prop.getXml(); this.required = prop.getRequired(); this.position = prop.getPosition(); this.description = prop.getDescription(); this.title = prop.getTitle(); this.readOnly = prop.getReadOnly(); }