use of com.xpn.xwiki.objects.FloatProperty in project xwiki-platform by xwiki.
the class NumberClass method newProperty.
@Override
public BaseProperty newProperty() {
String ntype = getNumberType();
BaseProperty property;
if (ntype.equals("integer")) {
property = new IntegerProperty();
} else if (ntype.equals("float")) {
property = new FloatProperty();
} else if (ntype.equals("double")) {
property = new DoubleProperty();
} else {
property = new LongProperty();
}
property.setName(getName());
return property;
}
Aggregations