|
||||||||||
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(java.lang.String prefix)
Creates a new instance of this class initialized with a given prefix |
Method Summary | |
---|---|
protected java.util.List |
filterAndSortValidProperties(java.util.Properties properties)
This method filters out all properties that do not follow the required patter. |
java.util.List |
parse(java.util.Properties properties)
Parses given properties and creates a list of PropertyParser.Result objects. |
PropertyParser.Pair |
parseKey(java.lang.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(java.lang.String prefix)
prefix
- property name prefixMethod Detail |
---|
public java.util.List parse(java.util.Properties properties)
properties
- properties to parse
protected java.util.List filterAndSortValidProperties(java.util.Properties properties)
properties
- properties to filter and sort
public PropertyParser.Pair parseKey(java.lang.String key)
key
- property key
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |