public abstract class BaseProvider extends Object
Modifier and Type | Field and Description |
---|---|
protected static org.slf4j.Logger |
LOG
The logger.
|
Constructor and Description |
---|
BaseProvider(Set<String> propertyIds)
Construct a provider.
|
Modifier and Type | Method and Description |
---|---|
protected Set<String> |
checkConfigPropertyIds(Set<String> base,
String configCategory)
Checks for property ids that are not recognized by the provider.
|
Set<String> |
checkPropertyIds(Set<String> propertyIds) |
protected boolean |
containsArguments(String propertyId)
Check to see if the given property id contains replacement arguments (e.g.
|
Set<String> |
getPropertyIds()
Get the property ids supported by this property adapter.
|
protected List<String> |
getRegexGroups(String regExpKey,
String id)
Extracts set of matcher.group() from id
|
protected String |
getRegExpKey(String id) |
protected Set<String> |
getRequestPropertyIds(Request request,
Predicate predicate)
Get the set of property ids required to satisfy the given request.
|
protected boolean |
isPatternKey(String id) |
protected static boolean |
setResourceProperty(Resource resource,
String propertyId,
Object value,
Set<String> requestedIds)
Set a property value on the given resource for the given id and value.
|
protected Set<String> checkConfigPropertyIds(Set<String> base, String configCategory)
base
- the base set of propertiesconfigCategory
- the config category that would have a desired_config
element.protected Set<String> getRequestPropertyIds(Request request, Predicate predicate)
request
- the requestpredicate
- the predicateprotected List<String> getRegexGroups(String regExpKey, String id)
regExpKey
- id
- protected boolean isPatternKey(String id)
protected boolean containsArguments(String propertyId)
propertyId
- the property id to checkprotected static boolean setResourceProperty(Resource resource, String propertyId, Object value, Set<String> requestedIds)
resource
- the resourcepropertyId
- the property idvalue
- the value to setrequestedIds
- the requested set of property idsCopyright © 2017. All rights reserved.