public final class PropertyDescriptors extends Object
PropertyDescriptor
instances.Modifier and Type | Method and Description |
---|---|
static PropertyDescriptor<String,String> |
attributeWithDefault(String name,
String defaultValue)
Creates a descriptor for an attribute of the component's root element
with a non-null default value.
|
static PropertyDescriptor<String,String> |
attributeWithDefault(String name,
String defaultValue,
boolean removeDefault)
Creates a descriptor for an attribute of the component's root element
with a non-null default value.
|
static PropertyDescriptor<String,Optional<String>> |
optionalAttributeWithDefault(String name,
String defaultValue)
Creates a descriptor for an optional attribute of the component's root
element with a non-null default value.
|
static PropertyDescriptor<String,Optional<String>> |
optionalAttributeWithDefault(String name,
String defaultValue,
boolean removeDefault)
Creates a descriptor for an optional attribute of the component's root
element with a non-null default value.
|
static PropertyDescriptor<Boolean,Boolean> |
propertyWithDefault(String name,
Boolean defaultValue)
Creates a descriptor for a property of the component's root element with
a non-null default value.
|
static PropertyDescriptor<Double,Double> |
propertyWithDefault(String name,
Double defaultValue)
Creates a descriptor for a property of the component's root element with
a non-null default value.
|
static PropertyDescriptor<Integer,Integer> |
propertyWithDefault(String name,
Integer defaultValue)
Creates a descriptor for a property of the component's root element with
a non-null default value.
|
static PropertyDescriptor<String,String> |
propertyWithDefault(String name,
String defaultValue)
Creates a descriptor for a property of the component's root element with
a non-null default value.
|
public static PropertyDescriptor<String,String> propertyWithDefault(String name, String defaultValue)
name
- the name of the element property, not null
defaultValue
- the default value of the property, not null
null
public static PropertyDescriptor<Integer,Integer> propertyWithDefault(String name, Integer defaultValue)
name
- the name of the element property, not null
defaultValue
- the default value of the property, not null
null
public static PropertyDescriptor<Double,Double> propertyWithDefault(String name, Double defaultValue)
name
- the name of the element property, not null
defaultValue
- the default value of the property, not null
null
public static PropertyDescriptor<Boolean,Boolean> propertyWithDefault(String name, Boolean defaultValue)
name
- the name of the element property, not null
defaultValue
- the default value of the property, not null
null
public static PropertyDescriptor<String,String> attributeWithDefault(String name, String defaultValue)
name
- the name of the element attribute, not null
defaultValue
- the default value of the property, not null
null
public static PropertyDescriptor<String,String> attributeWithDefault(String name, String defaultValue, boolean removeDefault)
name
- the name of the element attribute, not null
defaultValue
- the default value of the property, not null
removeDefault
- if true
then attribute with default value will be
removed, otherwise attribute with the default value will be
kept as isnull
public static PropertyDescriptor<String,Optional<String>> optionalAttributeWithDefault(String name, String defaultValue)
name
- the name of the element attribute, not null
defaultValue
- the default value of the property, not null
null
public static PropertyDescriptor<String,Optional<String>> optionalAttributeWithDefault(String name, String defaultValue, boolean removeDefault)
name
- the name of the element attribute, not null
defaultValue
- the default value of the property, not null
removeDefault
- if true
then attribute with default value will be
removed, otherwise attribute with the default value will be
kept as isnull
Copyright © 2020. All rights reserved.