@Deprecated public class DefaultPropertyUtil extends Object
Constructor and Description |
---|
DefaultPropertyUtil()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static boolean |
canConvertStringValue(Class<?> type)
Deprecated.
DefaultPropertyUtil mainly provides string-based conversion to JCR common property types.
|
static Object |
createTypedValue(Class<?> type,
String defaultValue)
Deprecated.
Create a custom Field Object based on the Type and defaultValue.
|
static Object |
createTypedValue(String fieldType,
String defaultValue)
Deprecated.
since 5.1. use
createTypedValue(Class, String) instead. |
static Class<?> |
getFieldTypeClass(int fieldType)
Deprecated.
Return the related Class for a desired Type.
|
static Class<?> |
getFieldTypeClass(String fieldType)
Deprecated.
Return the related Class for a desired Type by String.
|
static boolean |
isKnownJcrTypeName(String typeName)
Deprecated.
|
static <T> DefaultProperty<T> |
newDefaultProperty(Class<T> type,
String defaultValue)
Deprecated.
since 5.4.12, use
newProperty(String, Class) instead |
static DefaultProperty |
newDefaultProperty(int fieldType,
Object value)
Deprecated.
since 5.1. use
newDefaultProperty(Class, String) instead. |
static DefaultProperty |
newDefaultProperty(String fieldType,
String stringValue)
Deprecated.
since 5.1. use
newDefaultProperty(Class, String) instead. |
static <T> com.vaadin.v7.data.Property<T> |
newProperty(String value,
Class<T> type)
Deprecated.
Create a default Vaadin Property and set the value after conversion.
|
public static <T> com.vaadin.v7.data.Property<T> newProperty(String value, Class<T> type)
@Deprecated public static <T> DefaultProperty<T> newDefaultProperty(Class<T> type, String defaultValue)
newProperty(String, Class)
instead@Deprecated public static DefaultProperty newDefaultProperty(String fieldType, String stringValue) throws NumberFormatException
newDefaultProperty(Class, String)
instead.NumberFormatException
@Deprecated public static DefaultProperty newDefaultProperty(int fieldType, Object value) throws NumberFormatException
newDefaultProperty(Class, String)
instead.PropertyType
.NumberFormatException
@Deprecated public static Object createTypedValue(String fieldType, String defaultValue) throws NumberFormatException
createTypedValue(Class, String)
instead.NumberFormatException
- In case of the default value could not be parsed to the desired class.public static Object createTypedValue(Class<?> type, String defaultValue) throws NumberFormatException
NumberFormatException
- In case of the default value could not be parsed to the desired class.public static boolean canConvertStringValue(Class<?> type)
createTypedValue(Class, String)
public static boolean isKnownJcrTypeName(String typeName)
public static Class<?> getFieldTypeClass(String fieldType)
PropertyType
to read the type from the String.
If no fieldType is defined, the default is String.IllegalArgumentException
- if the Type is not supported.public static Class<?> getFieldTypeClass(int fieldType)
IllegalArgumentException
- if the Type is not supported.Copyright © 2020 Magnolia International Ltd.. All rights reserved.