public class PropertyParser extends Object
Modifier and Type | Class and Description |
---|---|
static class |
PropertyParser.Pair
This class implements the holder for the property sort key and suffix.
|
static interface |
PropertyParser.Result
This interface represents a result of parsing that contains a paresed class and a set of properties.
|
protected static class |
PropertyParser.ValueHolder
This is a holder for a key-pair and the property value.
|
Constructor and Description |
---|
PropertyParser(String prefix)
Creates a new instance of this class initialized with a given prefix
|
Modifier and Type | Method and Description |
---|---|
protected List |
filterAndSortValidProperties(Properties properties)
This method filters out all properties that do not follow the required patter.
|
List |
parse(Properties properties)
Parses given properties and creates a list of PropertyParser.Result objects.
|
PropertyParser.Pair |
parseKey(String key)
Parses the property with a given name and returns pair containing the sort key and suffix if any found.
|
public PropertyParser(String prefix)
prefix
- property name prefixpublic List parse(Properties properties)
properties
- properties to parseprotected List filterAndSortValidProperties(Properties properties)
properties
- properties to filter and sortpublic PropertyParser.Pair parseKey(String key)
key
- property keyCopyright © 2013 Atlassian. All Rights Reserved.