setType(desc.getType().toString());
}
public RegistrationPropertyDescription toRegistrationPropertyDescription()
{
RegistrationPropertyDescription desc = new RegistrationPropertyDescription(getName(), QName.valueOf(getType()));
desc.setPersistentKey(getPersistentKey());
String description = getDescription();
if (!ParameterValidation.isNullOrEmpty(description))
{
desc.setDefaultDescription(description);
}
String hint = getHint();
if (!ParameterValidation.isNullOrEmpty(hint))
{
desc.setHint(new LocalizedString(hint));
}
String label = getLabel();
if (!ParameterValidation.isNullOrEmpty(label))
{
desc.setLabel(new LocalizedString(label));
}
return desc;
}