public final class ItemMetadata extends Object implements Comparable<ItemMetadata>
ConfigurationMetadata
.ConfigurationMetadata
Modifier and Type | Class and Description |
---|---|
static class |
ItemMetadata.ItemType
The item type.
|
public boolean isOfItemType(ItemMetadata.ItemType itemType)
public boolean hasSameType(ItemMetadata metadata)
public String getName()
public void setName(String name)
public String getType()
public void setType(String type)
public String getDescription()
public void setDescription(String description)
public String getSourceType()
public void setSourceType(String sourceType)
public String getSourceMethod()
public void setSourceMethod(String sourceMethod)
public Object getDefaultValue()
public void setDefaultValue(Object defaultValue)
public ItemDeprecation getDeprecation()
public void setDeprecation(ItemDeprecation deprecation)
protected void buildToStringProperty(StringBuilder string, String property, Object value)
public int compareTo(ItemMetadata o)
compareTo
in interface Comparable<ItemMetadata>
public static ItemMetadata newGroup(String name, String type, String sourceType, String sourceMethod)
public static ItemMetadata newProperty(String prefix, String name, String type, String sourceType, String sourceMethod, String description, Object defaultValue, ItemDeprecation deprecation)