Class ExtensionsBuilder
java.lang.Object
se.swedenconnect.opensaml.common.builder.AbstractSAMLObjectBuilder<Extensions>
se.swedenconnect.opensaml.saml2.metadata.build.ExtensionsBuilder
- All Implemented Interfaces:
SAMLObjectBuilder<Extensions>
Builder for metadata
Extensions objects.- Author:
- Martin Lindström (martin@idsec.se)
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.ExtensionsBuilder(Extensions template, boolean clone) Constructor setting up the builder with a template object. -
Method Summary
Modifier and TypeMethodDescriptionstatic ExtensionsBuilderbuilder()Creates a builder instance.Adds one, or more, extensions to thisExtensionsobject.extensions(List<XMLObject> extensions) Adds the extensions (overwrites any previous extensions).extensions(XMLObject... extensions) Seeextensions(List).protected Class<Extensions> Returns the object type.Methods inherited from class se.swedenconnect.opensaml.common.builder.AbstractSAMLObjectBuilder
build, getDefaultElementName, object
-
Constructor Details
-
ExtensionsBuilder
public ExtensionsBuilder()Default constructor. -
ExtensionsBuilder
Constructor setting up the builder with a template object. Users of the instance may now change, add or delete, the elements and attributes of the template object using the assignment methods of the builder.The
cloneparameter tells whether the object should be cloned or not. If set totrue, any modifications will have no effect on the passed object.- Parameters:
template- the template objectclone- whether the template object should be cloned
-
-
Method Details
-
builder
Creates a builder instance.- Returns:
- a builder instance
-
extensions
Adds the extensions (overwrites any previous extensions).- Parameters:
extensions- the extension objects- Returns:
- the builder
-
extensions
Seeextensions(List).- Parameters:
extensions- the extension objects- Returns:
- the builder
-
extension
Adds one, or more, extensions to thisExtensionsobject.- Parameters:
extension- the extension(s) to add- Returns:
- the builder
-
getObjectType
Returns the object type.- Specified by:
getObjectTypein classAbstractSAMLObjectBuilder<Extensions>- Returns:
- the object type
-