D
- the type of binding datapublic class BaseRegexContextMapper<D extends BindingData> extends BaseContextMapper<D> implements RegexContextMapper<D>
Constructor and Description |
---|
BaseRegexContextMapper() |
Modifier and Type | Method and Description |
---|---|
protected List<Pattern> |
getIncludeRegexes() |
void |
mapFrom(D source,
Context context)
Maps a source object's properties to the context.
|
void |
mapTo(Context context,
D target)
Maps a context's properties into a target object.
|
boolean |
matches(QName qname)
Decides if the specified qualified name passes the collective regex expressions.
|
boolean |
matches(String name)
Decides if the specified name passes the collective regex expressions.
|
boolean |
matches(String test,
List<Pattern> includes,
List<Pattern> excludes)
Check if the property name matches specified condition.
|
ContextMapper<D> |
setExcludeNamespaces(String excludeNamespaces)
Sets a comma-separated list of regex property namespace excludes.
|
ContextMapper<D> |
setExcludes(String excludes)
Sets a comma-separated list of regex property excludes.
|
ContextMapper<D> |
setIncludeNamespaces(String includeNamespaces)
Sets a comma-separated list of regex property namespace includes.
|
ContextMapper<D> |
setIncludes(String includes)
Sets a comma-separated list of regex property includes.
|
protected void |
setRegexPropagationList(Context context)
Set the list of regexes of properties that need to be propagated.
|
getModel, setModel
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getModel, setModel
public ContextMapper<D> setIncludes(String includes)
setIncludes
in interface RegexContextMapper<D extends BindingData>
includes
- the includespublic ContextMapper<D> setExcludes(String excludes)
setExcludes
in interface RegexContextMapper<D extends BindingData>
excludes
- the excludespublic ContextMapper<D> setIncludeNamespaces(String includeNamespaces)
setIncludeNamespaces
in interface RegexContextMapper<D extends BindingData>
includeNamespaces
- the namespace includespublic ContextMapper<D> setExcludeNamespaces(String excludeNamespaces)
setExcludeNamespaces
in interface RegexContextMapper<D extends BindingData>
excludeNamespaces
- the namespace excludespublic boolean matches(String name)
matches
in interface RegexContextMapper<D extends BindingData>
name
- the name to testpublic boolean matches(QName qname)
matches
in interface RegexContextMapper<D extends BindingData>
qname
- the qualified name to testpublic boolean matches(String test, List<Pattern> includes, List<Pattern> excludes)
test
- testincludes
- includesexcludes
- excludespublic void mapFrom(D source, Context context) throws Exception
mapFrom
in interface ContextMapper<D extends BindingData>
mapFrom
in class BaseContextMapper<D extends BindingData>
source
- the object to map fromcontext
- the context to map toException
- if there was a problempublic void mapTo(Context context, D target) throws Exception
mapTo
in interface ContextMapper<D extends BindingData>
mapTo
in class BaseContextMapper<D extends BindingData>
context
- the context to map fromtarget
- the target to map toException
- if there was a problemprotected void setRegexPropagationList(Context context)
context
- contextCopyright © 2013–2022 JBoss by Red Hat. All rights reserved.