Constructor and Description |
---|
PropertyBuilder() |
Modifier and Type | Method and Description |
---|---|
Property |
create()
Creates the property object
|
Property.PropertyBuilder |
fromProperty(Property property)
Convenience Method That Facilitates Making Copies Of A Property
|
Property.PropertyBuilder |
setAccessControl(AccessControl accessControl)
Sets the access control that contains information of a property
|
Property.PropertyBuilder |
setMax(Object max)
Sets the max value of this property we are about to build
|
Property.PropertyBuilder |
setMetaData(String metaData)
Sets the meta data information that contains the property information of the property we are about to build
|
Property.PropertyBuilder |
setMin(Object min)
Sets the min value of this property we are about to build
|
Property.PropertyBuilder |
setName(String name)
Sets name of property we are about to build
|
Property.PropertyBuilder |
setType(String type)
Sets the type of the property we are about to build
|
Property.PropertyBuilder |
setValue(String value)
Set the value of the property we are about to build
|
public Property.PropertyBuilder setName(String name)
name
- Property NameProperty.PropertyBuilder
NullPointerException
- if name is null;public Property.PropertyBuilder setType(String type)
type
- Property typeProperty.PropertyBuilder
NullPointerException
- if type is nullpublic Property.PropertyBuilder setValue(String value)
value
- Property valueProperty.PropertyBuilder
NullPointerException
- if value is nullpublic Property.PropertyBuilder setMin(Object min)
min
- value as a stringProperty.PropertyBuilder
public Property.PropertyBuilder setMax(Object max)
max
- value as a stringProperty.PropertyBuilder
public Property.PropertyBuilder setMetaData(String metaData)
metaData
- information of this propertyProperty.PropertyBuilder
public Property.PropertyBuilder setAccessControl(AccessControl accessControl)
accessControl
- information of this propertyProperty.PropertyBuilder
NullPointerException
- if accessControl
is nullpublic Property.PropertyBuilder fromProperty(Property property)
property
- Property to copyNullPointerException
- if property name, type, or value is nullpublic Property create()
Property
objectIllegalStateException
- if no name, type, or value is providedCopyright © 2019. All rights reserved.