|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.crowd.integration.osuser.PropertyParser
public class PropertyParser
Parses properties and groups them based on a prefix.
Nested Class Summary | |
---|---|
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 Summary | |
---|---|
PropertyParser(String prefix)
Creates a new instance of this class initialized with a given prefix |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PropertyParser(String prefix)
prefix
- property name prefixMethod Detail |
---|
public List parse(Properties properties)
properties
- properties to parse
protected List filterAndSortValidProperties(Properties properties)
properties
- properties to filter and sort
public PropertyParser.Pair parseKey(String key)
key
- property key
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |