Class ScopeBuilder
java.lang.Object
se.swedenconnect.opensaml.common.builder.AbstractSAMLObjectBuilder<XMLObject>
se.swedenconnect.opensaml.saml2.metadata.build.ScopeBuilder
- All Implemented Interfaces:
SAMLObjectBuilder<XMLObject>
Builder for
Scope elements.
Since this class is also defined in Shibboleth's idp-saml-api and idp-saml-impl libraries we create only a
SAMLObject and depending on if the user has Shibboleth in the classpath an object of the
net.shibboleth.idp.saml.xmlobject.Scope or se.swedenconnect.opensaml.saml2.metadata.scope.Scope is
created.
- Author:
- Martin Lindström (martin@idsec.se)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> TBuilds and casts to the correct Scope type.static ScopeBuilderbuilder()Creates a newScopeBuilderinstance.protected QNameGets the default element name for the object.Returns the object type.Assigns theregexpattribute.Assigns the value.Methods inherited from class se.swedenconnect.opensaml.common.builder.AbstractSAMLObjectBuilder
build, object
-
Constructor Details
-
ScopeBuilder
public ScopeBuilder()
-
-
Method Details
-
builder
Creates a newScopeBuilderinstance.- Returns:
- a ScopeBuilder instance
-
regexp
Assigns theregexpattribute.- Parameters:
regexp- the regexp attribute- Returns:
- the builder
-
value
Assigns the value.- Parameters:
value- the value- Returns:
- the builder
-
build
Builds and casts to the correct Scope type.- Type Parameters:
T- the Scope type to cast to- Parameters:
clazz- the Scope type to cast to- Returns:
- a Scope object
-
getObjectType
Returns the object type.- Specified by:
getObjectTypein classAbstractSAMLObjectBuilder<XMLObject>- Returns:
- the object type
-
getDefaultElementName
Gets the default element name for the object.- Overrides:
getDefaultElementNamein classAbstractSAMLObjectBuilder<XMLObject>- Returns:
- a QName
-