Class SourceValue
java.lang.Object
net.shibboleth.shared.component.AbstractInitializableComponent
net.shibboleth.idp.attribute.resolver.ad.mapped.impl.SourceValue
- All Implemented Interfaces:
Component,DestructableComponent,InitializableComponent
Represents incoming attribute values and rules used for matching them. The value may include regular expressions.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidget the compiled pattern.getValue()Gets the value string.booleanGets whether matching should be case sensitive.booleanGets whether partial matches should be allowed.voidsetCaseSensitive(boolean theCaseSensitive) Set whether case is sensitive.voidsetPartialMatch(boolean thePartialMatch) Set whether partial matches should be allowed.voidSet the value string.toString()Methods inherited from class net.shibboleth.shared.component.AbstractInitializableComponent
checkComponentActive, checkSetterPreconditions, destroy, doDestroy, ifDestroyedThrowDestroyedComponentException, ifInitializedThrowUnmodifiabledComponentException, ifNotInitializedThrowUninitializedComponentException, initialize, isDestroyed, isInitialized
-
Field Details
-
value
Value string. This may contain regular expressions. -
caseSensitive
private boolean caseSensitiveWhether case should be taken into account when matching. -
pattern
In the regexp case this contains the compiled pattern. -
partialMatch
private boolean partialMatchWhether partial matches should be allowed.
-
-
Constructor Details
-
SourceValue
public SourceValue()
-
-
Method Details
-
doInitialize
- Overrides:
doInitializein classAbstractInitializableComponent- Throws:
ComponentInitializationException
-
setCaseSensitive
public void setCaseSensitive(boolean theCaseSensitive) Set whether case is sensitive.- Parameters:
theCaseSensitive- whether case should be ignored when matching. Null taken as default;
-
isCaseSensitive
public boolean isCaseSensitive()Gets whether matching should be case sensitive.- Returns:
- whether case should be ignored when matching
-
setPartialMatch
public void setPartialMatch(boolean thePartialMatch) Set whether partial matches should be allowed.- Parameters:
thePartialMatch- whether partial matches should be allowed. Null defaults to false;
-
isPartialMatch
public boolean isPartialMatch()Gets whether partial matches should be allowed.- Returns:
- whether partial matches should be allowed
-
setValue
Set the value string.- Parameters:
theValue- value string This may contain regular expressions.
-
getValue
Gets the value string.- Returns:
- the value string.
-
getPattern
get the compiled pattern. This is compiled in init and hence there is a guard.- Returns:
- Returns the pattern.
-
toString
-