Interface PropertyList
- All Known Implementing Classes:
PropertyListImpl
Listing of
Property instances.- Author:
- Daniel Sagenschneider
-
Method Summary
Modifier and TypeMethodDescriptionaddProperty(String name) Appends aPropertyto thisPropertyList.addProperty(String name, String label) Appends aPropertyto thisPropertyList.voidclear()Clears thePropertyList.voidconfigureProperties(PropertyConfigurable configurable) getOrAddProperty(String name) Obtains thePropertiespopulated with thePropertyvalues.getProperty(String name) Obtains the firstPropertyby the input name.String[]Obtains the names of thePropertyinstances in the order they were added.getPropertyValue(String name, String defaultValue) Convenience method to obtain thePropertyvalue.voidNormalises thePropertyinstances.voidremoveProperty(Property property) Removes thePropertyfrom thisPropertyList.voidsort(Comparator<? super Property> comparator) Enable sorting thePropertyinstances within thisPropertyList.Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
Method Details
-
addProperty
Appends aPropertyto thisPropertyList. -
addProperty
Appends aPropertyto thisPropertyList. -
removeProperty
Removes thePropertyfrom thisPropertyList.- Parameters:
property-Propertyto be removed.
-
getPropertyNames
String[] getPropertyNames()Obtains the names of thePropertyinstances in the order they were added.- Returns:
- Names of the
Propertyinstances.
-
getProperty
Obtains the firstPropertyby the input name. -
getOrAddProperty
-
getPropertyValue
Convenience method to obtain thePropertyvalue. -
getProperties
Properties getProperties()Obtains thePropertiespopulated with thePropertyvalues.- Returns:
- Populated
Properties.
-
clear
void clear()Clears thePropertyList. -
sort
Enable sorting thePropertyinstances within thisPropertyList.- Parameters:
comparator-Comparatorto provide comparisons for sorting.
-
normalise
void normalise() -
configureProperties
- Parameters:
configurable-PropertyConfigurableto be configured with thePropertyvalues.
-