public static interface AffordanceModel.PropertyMetadata extends AffordanceModel.Named
Modifier and Type | Method and Description |
---|---|
String |
getInputType()
Returns the input type of the property.
|
default Number |
getMax()
Return the maximum value allowed for a numeric type.
|
default Long |
getMaxLength()
Return the maximum length allowed for a string type.
|
default Number |
getMin()
Return the minimum value allowed for a numeric type.
|
default Long |
getMinLength()
Return the minimum length allowed for a string type.
|
String |
getName()
The name of the property.
|
Optional<String> |
getPattern()
Returns the (regular expression) pattern the property has to adhere to.
|
ResolvableType |
getType()
Return the type of the property.
|
default boolean |
hasName(String name)
Whether the property has the given name.
|
boolean |
isReadOnly()
Whether the property is read only, i.e. must not be manipulated in requests modifying state.
|
boolean |
isRequired()
Whether the property is required to be submitted or always present in the representation returned.
|
String getName()
getName
in interface AffordanceModel.Named
default boolean hasName(String name)
name
- must not be null or empty.boolean isRequired()
boolean isReadOnly()
Optional<String> getPattern()
ResolvableType getType()
Object
.@Nullable default Number getMin()
@Nullable default Number getMax()
@Nullable default Long getMinLength()
@Nullable default Long getMaxLength()
Copyright © 2011–2021 Pivotal, Inc.. All rights reserved.