Package org.opensaml.core.xml.config
Class XMLObjectProviderRegistrySupport
java.lang.Object
org.opensaml.core.xml.config.XMLObjectProviderRegistrySupport
Class for loading library configuration files and retrieving the configured components.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidderegisterIDAttribute(QName attributeName) Deregister an attribute as having a type of ID.static voidRemoves the builder, marshaller, and unmarshaller registered to the given key.static XMLObjectBuilderFactoryGets the XMLObject builder factory that has been configured with information from loaded configuration files.static QNameGets the QName for the object provider that will be used for XMLObjects that do not have a registered object provider.static MarshallerFactoryGets the XMLObject marshaller factory that has been configured with information from loaded configuration files.static ParserPoolGet the currently configured ParserPool instance.static UnmarshallerFactoryGets the XMLObject unmarshaller factory that has been configured with information from loaded configuration files.static booleanisIDAttribute(QName attributeName) Determine whether a given attribute is registered as having an ID type.static voidregisterIDAttribute(QName attributeName) Register an attribute as having a type of ID.static voidregisterObjectProvider(QName providerName, XMLObjectBuilder<?> builder, Marshaller marshaller, Unmarshaller unmarshaller) Adds an object provider to this configuration.static voidsetParserPool(ParserPool newParserPool) Set the currently configured ParserPool instance.
-
Constructor Details
-
XMLObjectProviderRegistrySupport
private XMLObjectProviderRegistrySupport()Constructor.
-
-
Method Details
-
getParserPool
Get the currently configured ParserPool instance.- Returns:
- the currently ParserPool
-
getDefaultProviderQName
Gets the QName for the object provider that will be used for XMLObjects that do not have a registered object provider.- Returns:
- the QName for the default object provider
-
registerObjectProvider
public static void registerObjectProvider(@Nonnull QName providerName, @Nonnull XMLObjectBuilder<?> builder, @Nonnull Marshaller marshaller, @Nonnull Unmarshaller unmarshaller) Adds an object provider to this configuration.- Parameters:
providerName- the name of the object provider, corresponding to the element name or type name that the builder, marshaller, and unmarshaller operate onbuilder- the builder for that given providermarshaller- the marshaller for the providerunmarshaller- the unmarshaller for the provider
-
deregisterObjectProvider
Removes the builder, marshaller, and unmarshaller registered to the given key.- Parameters:
key- the key of the builder, marshaller, and unmarshaller to be removed
-
getBuilderFactory
Gets the XMLObject builder factory that has been configured with information from loaded configuration files.- Returns:
- the XMLObject builder factory
-
getMarshallerFactory
Gets the XMLObject marshaller factory that has been configured with information from loaded configuration files.- Returns:
- the XMLObject marshaller factory
-
getUnmarshallerFactory
Gets the XMLObject unmarshaller factory that has been configured with information from loaded configuration files.- Returns:
- the XMLObject unmarshaller factory
-
registerIDAttribute
Register an attribute as having a type of ID.- Parameters:
attributeName- the QName of the ID attribute to be registered
-
deregisterIDAttribute
Deregister an attribute as having a type of ID.- Parameters:
attributeName- the QName of the ID attribute to be de-registered
-
isIDAttribute
Determine whether a given attribute is registered as having an ID type.- Parameters:
attributeName- the QName of the attribute to be checked for ID type.- Returns:
- true if attribute is registered as having an ID type.
-