public class PropertyUtils extends Object
Constructor and Description |
---|
PropertyUtils() |
Modifier and Type | Method and Description |
---|---|
static String |
getI18NName(String prefix,
String propertyName)
Creates a I18N name, which can be use in localization files.
|
static String |
getPropertyI18NDescription(String key)
Retrieves the I18N description for the localizer for the Property.
|
static boolean |
isPropertyOfDerivedPropertyType(Property<?> property)
Evaluates if the
PropertyType of a Property is a DerivedPropertyType or and extensions thereof. |
static boolean |
isPropertyOfEnumPropertyType(Property<?> property)
Evaluates if the
PropertyType of a Property implements the interface EnumPropertyType . |
static boolean |
isPropertyOfMarkerListPropertyType(Property<?> property)
Evaluates if the
PropertyType of a Property implements the interface MarkerListPropertyType . |
static boolean |
isPropertyOfMarkerPasswordPropertyType(Property<?> property)
Evaluates if the
PropertyType of a Property implements the interface MarkerPasswordPropertyType . |
static boolean |
isPropertyOfMarkerPathPropertyType(Property<?> property)
Evaluates if the
PropertyType of a Property implements the interface MarkerPathPropertyType . |
static boolean |
isPropertyOfMarkerProxyDependentPropertyType(Property<?> property)
Evaluates if the
PropertyType of a Property implements the interface MarkerProxyDependent . |
static boolean |
isPropertyOfMarkerSubPropertyType(Property<?> property)
Evaluates if the
PropertyType of a Property implements the interface MarkerSubPropertyType . |
static void |
setAllowNullForAllProperties(PropertyCollection collection,
boolean allowNull)
Set the allowNull value for all Property's in a Collection.
|
public static final boolean isPropertyOfMarkerPasswordPropertyType(Property<?> property)
PropertyType
of a Property
implements the interface MarkerPasswordPropertyType
.property
- the propertyPropertyType
of the Property
implements MarkerPasswordPropertyType
than true
is returned, otherwise false
.public static final boolean isPropertyOfMarkerPathPropertyType(Property<?> property)
PropertyType
of a Property
implements the interface MarkerPathPropertyType
.property
- the propertyPropertyType
of the Property
implements MarkerPathPropertyType
than true
is returned, otherwise false
.public static final boolean isPropertyOfMarkerSubPropertyType(Property<?> property)
PropertyType
of a Property
implements the interface MarkerSubPropertyType
.property
- the propertyPropertyType
of the Property
implements MarkerSubPropertyTypeO
than true
is returned, otherwise false
.public static final boolean isPropertyOfMarkerProxyDependentPropertyType(Property<?> property)
PropertyType
of a Property
implements the interface MarkerProxyDependent
.property
- the propertyPropertyType
of the Property
implements MarkerProxyDependent
than true
is returned, otherwise false
.public static final boolean isPropertyOfMarkerListPropertyType(Property<?> property)
PropertyType
of a Property
implements the interface MarkerListPropertyType
.property
- the propertyPropertyType
of the Property
implements MarkerListPropertyType
than true
is returned, otherwise false
.public static final boolean isPropertyOfEnumPropertyType(Property<?> property)
PropertyType
of a Property
implements the interface EnumPropertyType
.property
- the propertyPropertyType
of the Property
implements EnumPropertyType
than true
is returned, otherwise false
.public static final boolean isPropertyOfDerivedPropertyType(Property<?> property)
PropertyType
of a Property
is a DerivedPropertyType
or and extensions thereof.property
- the propertyPropertyType
of the Property
extends DerivedPropertyType
than true
is returned, otherwise false
.public static final String getI18NName(String prefix, String propertyName) throws NullPointerException, IllegalArgumentException
prefix
- the which will preappend to the name, with a "." as seperator.propertyName
- the name of the property, or other types.NullPointerException
- if either prefix or name is null
.IllegalArgumentException
- if either prefix or name is an empty string after trimming.public static final String getPropertyI18NDescription(String key)
null
key
- the key for descriptionnull
is returned.public static final void setAllowNullForAllProperties(PropertyCollection collection, boolean allowNull)
collection
- the collection.allowNull
- if null
is allowed as value or not.