public class StaticPropertyConfigurationImmutable extends Object implements StaticPropertyConfiguration
EMPTY_PROPERTY_LIST| Constructor and Description |
|---|
StaticPropertyConfigurationImmutable(NamingStrategy namingStrategy,
List<GroupProxy> groupList,
List<Property<?>> properties,
Map<GroupProxy,List<Property<?>>> propertiesByGroup,
Map<String,Property<?>> propertiesByAnyName,
Map<Property<?>,List<EffectiveName>> aliasesByProperty,
Map<Property<?>,String> canonicalNameByProperty,
List<ExportGroup> exportGroups) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsUserGroups()
Returns true if any of the registered groups are user groups.
|
List<EffectiveName> |
getAliases(Property<?> property)
Returns all aliases (in and out) for a property.
|
String |
getCanonicalName(Property<?> prop)
Returns the canonical name of a registered property.
|
List<ExportGroup> |
getExportGroups()
The list of ExportGroups, which handles exporting property values for use
outside the AndHow framework.
|
GroupProxy |
getGroupForProperty(Property<?> prop)
Finds the Group containing the specified Property.
|
NamingStrategy |
getNamingStrategy()
Defines how names are created for Properties.
|
List<Property<?>> |
getProperties()
Returns a complete list of all registered properties.
|
List<Property<?>> |
getPropertiesForGroup(GroupProxy group)
Returns a list of Properties registered in the passed group.
|
Property<?> |
getProperty(String classpathStyleName)
Finds a registered property by any recognized classpath style name,
including the canonical name or 'in' aliases.
|
List<GroupProxy> |
getPropertyGroups()
Returns a list of all registered groups.
|
public StaticPropertyConfigurationImmutable(NamingStrategy namingStrategy, List<GroupProxy> groupList, List<Property<?>> properties, Map<GroupProxy,List<Property<?>>> propertiesByGroup, Map<String,Property<?>> propertiesByAnyName, Map<Property<?>,List<EffectiveName>> aliasesByProperty, Map<Property<?>,String> canonicalNameByProperty, List<ExportGroup> exportGroups)
public Property<?> getProperty(String classpathStyleName)
StaticPropertyConfigurationmy.property and the URI style name, like my/property.
The URI style name is just a means of reading properties in another system -
for AndHow the URI style name is not considered an actual name.getProperty in interface StaticPropertyConfigurationclasspathStyleName - A path to a property in the classpath style.public List<EffectiveName> getAliases(Property<?> property)
StaticPropertyConfigurationgetAliases in interface StaticPropertyConfigurationproperty - The property to fetch naming information forpublic String getCanonicalName(Property<?> prop)
StaticPropertyConfigurationgetCanonicalName in interface StaticPropertyConfigurationprop - The property to get the canonical name forpublic List<Property<?>> getProperties()
StaticPropertyConfigurationgetProperties in interface StaticPropertyConfigurationpublic List<GroupProxy> getPropertyGroups()
StaticPropertyConfigurationgetPropertyGroups in interface StaticPropertyConfigurationpublic boolean containsUserGroups()
StaticPropertyConfigurationcontainsUserGroups in interface StaticPropertyConfigurationpublic List<Property<?>> getPropertiesForGroup(GroupProxy group)
StaticPropertyConfigurationgetPropertiesForGroup in interface StaticPropertyConfigurationgroup - The group to get Properties forpublic GroupProxy getGroupForProperty(Property<?> prop)
StaticPropertyConfigurationgetGroupForProperty in interface StaticPropertyConfigurationprop - The property to get the PropertyGroup forpublic List<ExportGroup> getExportGroups()
StaticPropertyConfigurationgetExportGroups in interface StaticPropertyConfigurationpublic NamingStrategy getNamingStrategy()
StaticPropertyConfigurationgetNamingStrategy in interface StaticPropertyConfigurationCopyright © 2017. All rights reserved.