Class ItemMetadata
java.lang.Object
org.springframework.boot.configurationprocessor.metadata.ItemMetadata
- All Implemented Interfaces:
Comparable<ItemMetadata>
A group or property meta-data item from some
ConfigurationMetadata
.- Since:
- 1.2.0
- See Also:
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
buildToStringProperty
(StringBuilder string, String property, Object value) int
boolean
getName()
getType()
int
hashCode()
boolean
hasSameType
(ItemMetadata metadata) boolean
isOfItemType
(ItemMetadata.ItemType itemType) static ItemMetadata
static String
newItemMetadataPrefix
(String prefix, String suffix) static ItemMetadata
newProperty
(String prefix, String name, String type, String sourceType, String sourceMethod, String description, Object defaultValue, ItemDeprecation deprecation) void
setDefaultValue
(Object defaultValue) void
setDeprecation
(ItemDeprecation deprecation) void
setDescription
(String description) void
void
setSourceMethod
(String sourceMethod) void
setSourceType
(String sourceType) void
toString()
-
Method Details
-
isOfItemType
-
hasSameType
-
getName
-
setName
-
getType
-
setType
-
getDescription
-
setDescription
-
getSourceType
-
setSourceType
-
getSourceMethod
-
setSourceMethod
-
getDefaultValue
-
setDefaultValue
-
getDeprecation
-
setDeprecation
-
equals
-
hashCode
public int hashCode() -
toString
-
buildToStringProperty
-
compareTo
- Specified by:
compareTo
in interfaceComparable<ItemMetadata>
-
newGroup
public static ItemMetadata newGroup(String name, String type, String sourceType, String sourceMethod) -
newProperty
public static ItemMetadata newProperty(String prefix, String name, String type, String sourceType, String sourceMethod, String description, Object defaultValue, ItemDeprecation deprecation) -
newItemMetadataPrefix
-